You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Description:** Wait for the specified text to appear on the selected page.
193
+
**Description:** Wait for the specified text to appear on the selected page. You can provide a single text value or a list of texts; the tool resolves when any text appears.
194
194
195
195
**Parameters:**
196
196
197
-
-**text** (string) **(required)**: Text to appear on the page
197
+
-**text** (string | array of string) **(required)**: Text to appear on the page, or a non-empty list of texts. Resolves when any value appears.
198
198
-**timeout** (integer) _(optional)_: Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
Copy file name to clipboardExpand all lines: src/tools/snapshot.ts
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,17 @@ in the DevTools Elements panel (if any).`,
43
43
44
44
exportconstwaitFor=defineTool({
45
45
name: 'wait_for',
46
-
description: `Wait for the specified text to appear on the selected page.`,
46
+
description: `Wait for the specified text to appear on the selected page. You can provide a single text value or a list of texts; the tool resolves when any text appears.`,
47
47
annotations: {
48
48
category: ToolCategory.NAVIGATION,
49
49
readOnlyHint: true,
50
50
},
51
51
schema: {
52
-
text: zod.string().describe('Text to appear on the page'),
0 commit comments