@cotestdev/mcp_playwright 0.0.56 → 0.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,14 +24,13 @@ module.exports = __toCommonJS(verify_exports);
24
24
  var import_mcpBundle = require("../../../mcpBundle");
25
25
  var import_utils = require("playwright-core/lib/utils");
26
26
  var import_tool = require("./tool");
27
- var import_schema = require("./schema");
28
27
  const verifyElement = (0, import_tool.defineTabTool)({
29
28
  capability: "testing",
30
29
  schema: {
31
30
  name: "browser_verify_element_visible",
32
31
  title: "Verify element visible",
33
32
  description: "Verify element is visible on the page",
34
- inputSchema: import_schema.baseSchema.extend({
33
+ inputSchema: import_mcpBundle.z.object({
35
34
  role: import_mcpBundle.z.string().describe('ROLE of the element. Can be found in the snapshot like this: `- {ROLE} "Accessible Name":`'),
36
35
  accessibleName: import_mcpBundle.z.string().describe('ACCESSIBLE_NAME of the element. Can be found in the snapshot like this: `- role "{ACCESSIBLE_NAME}"`')
37
36
  }),
@@ -53,7 +52,7 @@ const verifyText = (0, import_tool.defineTabTool)({
53
52
  name: "browser_verify_text_visible",
54
53
  title: "Verify text visible",
55
54
  description: `Verify text is visible on the page. Prefer ${verifyElement.schema.name} if possible.`,
56
- inputSchema: import_schema.baseSchema.extend({
55
+ inputSchema: import_mcpBundle.z.object({
57
56
  text: import_mcpBundle.z.string().describe('TEXT to verify. Can be found in the snapshot like this: `- role "Accessible Name": {TEXT}` or like this: `- text: {TEXT}`')
58
57
  }),
59
58
  type: "assertion"
@@ -74,7 +73,7 @@ const verifyList = (0, import_tool.defineTabTool)({
74
73
  name: "browser_verify_list_visible",
75
74
  title: "Verify list visible",
76
75
  description: "Verify list is visible on the page",
77
- inputSchema: import_schema.baseSchema.extend({
76
+ inputSchema: import_mcpBundle.z.object({
78
77
  element: import_mcpBundle.z.string().describe("Human-readable list description"),
79
78
  ref: import_mcpBundle.z.string().describe("Exact target element reference that points to the list"),
80
79
  items: import_mcpBundle.z.array(import_mcpBundle.z.string()).describe("Items to verify")
@@ -106,7 +105,7 @@ const verifyValue = (0, import_tool.defineTabTool)({
106
105
  name: "browser_verify_value",
107
106
  title: "Verify value",
108
107
  description: "Verify element value",
109
- inputSchema: import_schema.baseSchema.extend({
108
+ inputSchema: import_mcpBundle.z.object({
110
109
  type: import_mcpBundle.z.enum(["textbox", "checkbox", "radio", "combobox", "slider"]).describe("Type of the element"),
111
110
  element: import_mcpBundle.z.string().describe("Human-readable element description"),
112
111
  ref: import_mcpBundle.z.string().describe("Exact target element reference that points to the element"),
@@ -23,14 +23,13 @@ __export(wait_exports, {
23
23
  module.exports = __toCommonJS(wait_exports);
24
24
  var import_mcpBundle = require("../../../mcpBundle");
25
25
  var import_tool = require("./tool");
26
- var import_schema = require("./schema");
27
26
  const wait = (0, import_tool.defineTool)({
28
27
  capability: "core",
29
28
  schema: {
30
29
  name: "browser_wait_for",
31
30
  title: "Wait for",
32
31
  description: "Wait for text to appear or disappear or a specified time to pass",
33
- inputSchema: import_schema.baseSchema.extend({
32
+ inputSchema: import_mcpBundle.z.object({
34
33
  time: import_mcpBundle.z.number().optional().describe("The time to wait in seconds"),
35
34
  text: import_mcpBundle.z.string().optional().describe("The text to wait for"),
36
35
  textGone: import_mcpBundle.z.string().optional().describe("The text to wait for to disappear")