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
Copy file name to clipboardExpand all lines: docs/tool-reference.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,11 +191,11 @@
191
191
192
192
### `wait_for`
193
193
194
-
**Description:** Wait for the specified text to appear on the selected page.
194
+
**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.
195
195
196
196
**Parameters:**
197
197
198
-
-**text** (string) **(required)**: Text to appear on the page
198
+
-**text** (string | array of string) **(required)**: Text to appear on the page, or a non-empty list of texts. Resolves when any value appears.
199
199
-**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