fastbrowser_cli 1.0.30 → 1.0.33

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.
Files changed (56) hide show
  1. package/README.md +1 -2
  2. package/dist/fastbrowser_cli/fastbrowser_cli.js +11 -19
  3. package/dist/fastbrowser_cli/fastbrowser_cli.js.map +1 -1
  4. package/dist/fastbrowser_cli/libs/query-builder.d.ts +2 -0
  5. package/dist/fastbrowser_cli/libs/query-builder.d.ts.map +1 -1
  6. package/dist/fastbrowser_cli/libs/query-builder.js +4 -0
  7. package/dist/fastbrowser_cli/libs/query-builder.js.map +1 -1
  8. package/dist/fastbrowser_httpd/libs/tool-schemas.d.ts +2 -0
  9. package/dist/fastbrowser_httpd/libs/tool-schemas.d.ts.map +1 -1
  10. package/dist/fastbrowser_mcp/fastbrowser_mcp.d.ts.map +1 -1
  11. package/dist/fastbrowser_mcp/fastbrowser_mcp.js +147 -22
  12. package/dist/fastbrowser_mcp/fastbrowser_mcp.js.map +1 -1
  13. package/dist/fastbrowser_mcp/libs/mcp_my_client.d.ts.map +1 -1
  14. package/dist/fastbrowser_mcp/libs/mcp_my_client.js +8 -0
  15. package/dist/fastbrowser_mcp/libs/mcp_my_client.js.map +1 -1
  16. package/dist/fastbrowser_mcp/libs/mcp_target_helper.d.ts.map +1 -1
  17. package/dist/fastbrowser_mcp/libs/mcp_target_helper.js +15 -2
  18. package/dist/fastbrowser_mcp/libs/mcp_target_helper.js.map +1 -1
  19. package/dist/fastbrowser_mcp/libs/schemas.d.ts +4 -0
  20. package/dist/fastbrowser_mcp/libs/schemas.d.ts.map +1 -1
  21. package/dist/fastbrowser_mcp/libs/schemas.js +6 -0
  22. package/dist/fastbrowser_mcp/libs/schemas.js.map +1 -1
  23. package/dist/shared/logger.d.ts +86 -0
  24. package/dist/shared/logger.d.ts.map +1 -0
  25. package/dist/shared/logger.js +269 -0
  26. package/dist/shared/logger.js.map +1 -0
  27. package/docs/brainstorm_scrap_by_ai.md +1 -1
  28. package/docs/feature_support_cli.md +7 -8
  29. package/docs/target_tools/target_tools_chrome_devtools.md +963 -0
  30. package/docs/target_tools/target_tools_playwright.md +763 -0
  31. package/examples/linkedin_cli/linked_dm.sh +16 -0
  32. package/examples/linkedin_cli/linked_post.sh +13 -0
  33. package/examples/linkedin_cli/linkedin.snapshot.txt +1245 -0
  34. package/examples/todomvc/todomvc.a11y.txt +44 -0
  35. package/examples/todomvc/todomvc.sh +11 -0
  36. package/examples/wttj_cli/fastbrowser_helper.ts +39 -0
  37. package/examples/wttj_cli/wttf_job-original.a11y.txt +652 -0
  38. package/examples/wttj_cli/wttf_job.a11y.txt +317 -0
  39. package/examples/{welcometothejungle/wttj-job.ts → wttj_cli/wttj_job copy.ts } +60 -11
  40. package/examples/wttj_cli/wttj_job.ts +179 -0
  41. package/examples/wttj_cli/wttj_search.ts +162 -0
  42. package/package.json +10 -4
  43. package/skills/fastbrowser/SKILL.md +10 -11
  44. package/skills/fastbrowser-script/SKILL.md +4 -4
  45. package/src/fastbrowser_cli/fastbrowser_cli.ts +14 -25
  46. package/src/fastbrowser_cli/libs/query-builder.ts +6 -0
  47. package/src/fastbrowser_mcp/fastbrowser_mcp.ts +181 -26
  48. package/src/fastbrowser_mcp/libs/mcp_my_client.ts +17 -0
  49. package/src/fastbrowser_mcp/libs/mcp_target_helper.ts +15 -2
  50. package/src/fastbrowser_mcp/libs/schemas.ts +6 -0
  51. package/src/shared/logger.ts +317 -0
  52. package/test.a11y.txt +828 -0
  53. package/tests/query-builder.test.ts +51 -11
  54. package/examples/welcometothejungle/fastbrowser_helper.ts +0 -39
  55. package/examples/welcometothejungle/wttj-search.ts +0 -82
  56. /package/examples/{post-to-x.sh → twitter_cli/twitter_post.sh} +0 -0
@@ -0,0 +1,763 @@
1
+ # Tools available on MCP target 'playwright' (23)
2
+
3
+ ## browser_close
4
+
5
+ ### Description
6
+ Close the page
7
+
8
+ ### Input schema
9
+ ```
10
+ {
11
+ "type": "object",
12
+ "properties": {},
13
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
14
+ "additionalProperties": false
15
+ }
16
+ ```
17
+
18
+ ## browser_resize
19
+
20
+ ### Description
21
+ Resize the browser window
22
+
23
+ ### Input schema
24
+ ```
25
+ {
26
+ "type": "object",
27
+ "properties": {
28
+ "width": {
29
+ "type": "number",
30
+ "description": "Width of the browser window"
31
+ },
32
+ "height": {
33
+ "type": "number",
34
+ "description": "Height of the browser window"
35
+ }
36
+ },
37
+ "required": [
38
+ "width",
39
+ "height"
40
+ ],
41
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
42
+ "additionalProperties": false
43
+ }
44
+ ```
45
+
46
+ ## browser_console_messages
47
+
48
+ ### Description
49
+ Returns all console messages
50
+
51
+ ### Input schema
52
+ ```
53
+ {
54
+ "type": "object",
55
+ "properties": {
56
+ "level": {
57
+ "default": "info",
58
+ "description": "Level of the console messages to return. Each level includes the messages of more severe levels. Defaults to \"info\".",
59
+ "type": "string",
60
+ "enum": [
61
+ "error",
62
+ "warning",
63
+ "info",
64
+ "debug"
65
+ ]
66
+ },
67
+ "all": {
68
+ "description": "Return all console messages since the beginning of the session, not just since the last navigation. Defaults to false.",
69
+ "type": "boolean"
70
+ },
71
+ "filename": {
72
+ "description": "Filename to save the console messages to. If not provided, messages are returned as text.",
73
+ "type": "string"
74
+ }
75
+ },
76
+ "required": [
77
+ "level"
78
+ ],
79
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
80
+ "additionalProperties": false
81
+ }
82
+ ```
83
+
84
+ ## browser_handle_dialog
85
+
86
+ ### Description
87
+ Handle a dialog
88
+
89
+ ### Input schema
90
+ ```
91
+ {
92
+ "type": "object",
93
+ "properties": {
94
+ "accept": {
95
+ "type": "boolean",
96
+ "description": "Whether to accept the dialog."
97
+ },
98
+ "promptText": {
99
+ "description": "The text of the prompt in case of a prompt dialog.",
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "accept"
105
+ ],
106
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
107
+ "additionalProperties": false
108
+ }
109
+ ```
110
+
111
+ ## browser_evaluate
112
+
113
+ ### Description
114
+ Evaluate JavaScript expression on page or element
115
+
116
+ ### Input schema
117
+ ```
118
+ {
119
+ "type": "object",
120
+ "properties": {
121
+ "element": {
122
+ "description": "Human-readable element description used to obtain permission to interact with the element",
123
+ "type": "string"
124
+ },
125
+ "target": {
126
+ "description": "Exact target element reference from the page snapshot, or a unique element selector",
127
+ "type": "string"
128
+ },
129
+ "function": {
130
+ "type": "string",
131
+ "description": "() => { /* code */ } or (element) => { /* code */ } when element is provided"
132
+ },
133
+ "filename": {
134
+ "description": "Filename to save the result to. If not provided, result is returned as text.",
135
+ "type": "string"
136
+ }
137
+ },
138
+ "required": [
139
+ "function"
140
+ ],
141
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
142
+ "additionalProperties": false
143
+ }
144
+ ```
145
+
146
+ ## browser_file_upload
147
+
148
+ ### Description
149
+ Upload one or multiple files
150
+
151
+ ### Input schema
152
+ ```
153
+ {
154
+ "type": "object",
155
+ "properties": {
156
+ "paths": {
157
+ "description": "The absolute paths to the files to upload. Can be single file or multiple files. If omitted, file chooser is cancelled.",
158
+ "type": "array",
159
+ "items": {
160
+ "type": "string"
161
+ }
162
+ }
163
+ },
164
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
165
+ "additionalProperties": false
166
+ }
167
+ ```
168
+
169
+ ## browser_drop
170
+
171
+ ### Description
172
+ Drop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.
173
+
174
+ ### Input schema
175
+ ```
176
+ {
177
+ "type": "object",
178
+ "properties": {
179
+ "element": {
180
+ "description": "Human-readable element description used to obtain permission to interact with the element",
181
+ "type": "string"
182
+ },
183
+ "target": {
184
+ "type": "string",
185
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
186
+ },
187
+ "paths": {
188
+ "description": "Absolute paths to files to drop onto the element.",
189
+ "type": "array",
190
+ "items": {
191
+ "type": "string"
192
+ }
193
+ },
194
+ "data": {
195
+ "description": "Data to drop, as a map of MIME type to string value (e.g. {\"text/plain\": \"hello\", \"text/uri-list\": \"https://example.com\"}).",
196
+ "type": "object",
197
+ "propertyNames": {
198
+ "type": "string"
199
+ },
200
+ "additionalProperties": {
201
+ "type": "string"
202
+ }
203
+ }
204
+ },
205
+ "required": [
206
+ "target"
207
+ ],
208
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
209
+ "additionalProperties": false
210
+ }
211
+ ```
212
+
213
+ ## browser_fill_form
214
+
215
+ ### Description
216
+ Fill multiple form fields
217
+
218
+ ### Input schema
219
+ ```
220
+ {
221
+ "type": "object",
222
+ "properties": {
223
+ "fields": {
224
+ "type": "array",
225
+ "items": {
226
+ "type": "object",
227
+ "properties": {
228
+ "element": {
229
+ "description": "Human-readable element description used to obtain permission to interact with the element",
230
+ "type": "string"
231
+ },
232
+ "target": {
233
+ "type": "string",
234
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
235
+ },
236
+ "name": {
237
+ "type": "string",
238
+ "description": "Human-readable field name"
239
+ },
240
+ "type": {
241
+ "type": "string",
242
+ "enum": [
243
+ "textbox",
244
+ "checkbox",
245
+ "radio",
246
+ "combobox",
247
+ "slider"
248
+ ],
249
+ "description": "Type of the field"
250
+ },
251
+ "value": {
252
+ "type": "string",
253
+ "description": "Value to fill in the field. If the field is a checkbox, the value should be `true` or `false`. If the field is a combobox, the value should be the text of the option."
254
+ }
255
+ },
256
+ "required": [
257
+ "target",
258
+ "name",
259
+ "type",
260
+ "value"
261
+ ],
262
+ "additionalProperties": false
263
+ },
264
+ "description": "Fields to fill in"
265
+ }
266
+ },
267
+ "required": [
268
+ "fields"
269
+ ],
270
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
271
+ "additionalProperties": false
272
+ }
273
+ ```
274
+
275
+ ## browser_press_key
276
+
277
+ ### Description
278
+ Press a key on the keyboard
279
+
280
+ ### Input schema
281
+ ```
282
+ {
283
+ "type": "object",
284
+ "properties": {
285
+ "key": {
286
+ "type": "string",
287
+ "description": "Name of the key to press or a character to generate, such as `ArrowLeft` or `a`"
288
+ }
289
+ },
290
+ "required": [
291
+ "key"
292
+ ],
293
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
294
+ "additionalProperties": false
295
+ }
296
+ ```
297
+
298
+ ## browser_type
299
+
300
+ ### Description
301
+ Type text into editable element
302
+
303
+ ### Input schema
304
+ ```
305
+ {
306
+ "type": "object",
307
+ "properties": {
308
+ "element": {
309
+ "description": "Human-readable element description used to obtain permission to interact with the element",
310
+ "type": "string"
311
+ },
312
+ "target": {
313
+ "type": "string",
314
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
315
+ },
316
+ "text": {
317
+ "type": "string",
318
+ "description": "Text to type into the element"
319
+ },
320
+ "submit": {
321
+ "description": "Whether to submit entered text (press Enter after)",
322
+ "type": "boolean"
323
+ },
324
+ "slowly": {
325
+ "description": "Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.",
326
+ "type": "boolean"
327
+ }
328
+ },
329
+ "required": [
330
+ "target",
331
+ "text"
332
+ ],
333
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
334
+ "additionalProperties": false
335
+ }
336
+ ```
337
+
338
+ ## browser_navigate
339
+
340
+ ### Description
341
+ Navigate to a URL
342
+
343
+ ### Input schema
344
+ ```
345
+ {
346
+ "type": "object",
347
+ "properties": {
348
+ "url": {
349
+ "type": "string",
350
+ "description": "The URL to navigate to"
351
+ }
352
+ },
353
+ "required": [
354
+ "url"
355
+ ],
356
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
357
+ "additionalProperties": false
358
+ }
359
+ ```
360
+
361
+ ## browser_navigate_back
362
+
363
+ ### Description
364
+ Go back to the previous page in the history
365
+
366
+ ### Input schema
367
+ ```
368
+ {
369
+ "type": "object",
370
+ "properties": {},
371
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
372
+ "additionalProperties": false
373
+ }
374
+ ```
375
+
376
+ ## browser_network_requests
377
+
378
+ ### Description
379
+ Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.
380
+
381
+ ### Input schema
382
+ ```
383
+ {
384
+ "type": "object",
385
+ "properties": {
386
+ "static": {
387
+ "default": false,
388
+ "description": "Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false.",
389
+ "type": "boolean"
390
+ },
391
+ "filter": {
392
+ "description": "Only return requests whose URL matches this regexp (e.g. \"/api/.*user\").",
393
+ "type": "string"
394
+ },
395
+ "filename": {
396
+ "description": "Filename to save the network requests to. If not provided, requests are returned as text.",
397
+ "type": "string"
398
+ }
399
+ },
400
+ "required": [
401
+ "static"
402
+ ],
403
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
404
+ "additionalProperties": false
405
+ }
406
+ ```
407
+
408
+ ## browser_network_request
409
+
410
+ ### Description
411
+ Returns full details (headers and body) of a single network request, or a single part if `part` is set. Use the number from browser_network_requests.
412
+
413
+ ### Input schema
414
+ ```
415
+ {
416
+ "type": "object",
417
+ "properties": {
418
+ "index": {
419
+ "type": "integer",
420
+ "minimum": 1,
421
+ "maximum": 9007199254740991,
422
+ "description": "1-based index of the request, as printed by browser_network_requests."
423
+ },
424
+ "part": {
425
+ "description": "Return only this part of the request. Omit to return full details.",
426
+ "type": "string",
427
+ "enum": [
428
+ "request-headers",
429
+ "request-body",
430
+ "response-headers",
431
+ "response-body"
432
+ ]
433
+ },
434
+ "filename": {
435
+ "description": "Filename to save the result to. If not provided, output is returned as text.",
436
+ "type": "string"
437
+ }
438
+ },
439
+ "required": [
440
+ "index"
441
+ ],
442
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
443
+ "additionalProperties": false
444
+ }
445
+ ```
446
+
447
+ ## browser_run_code_unsafe
448
+
449
+ ### Description
450
+ Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.
451
+
452
+ ### Input schema
453
+ ```
454
+ {
455
+ "type": "object",
456
+ "properties": {
457
+ "code": {
458
+ "description": "A JavaScript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction. For example: `async (page) => { await page.getByRole('button', { name: 'Submit' }).click(); return await page.title(); }`",
459
+ "type": "string"
460
+ },
461
+ "filename": {
462
+ "description": "Load code from the specified file. If both code and filename are provided, code will be ignored.",
463
+ "type": "string"
464
+ }
465
+ },
466
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
467
+ "additionalProperties": false
468
+ }
469
+ ```
470
+
471
+ ## browser_take_screenshot
472
+
473
+ ### Description
474
+ Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.
475
+
476
+ ### Input schema
477
+ ```
478
+ {
479
+ "type": "object",
480
+ "properties": {
481
+ "element": {
482
+ "description": "Human-readable element description used to obtain permission to interact with the element",
483
+ "type": "string"
484
+ },
485
+ "target": {
486
+ "description": "Exact target element reference from the page snapshot, or a unique element selector",
487
+ "type": "string"
488
+ },
489
+ "type": {
490
+ "default": "png",
491
+ "description": "Image format for the screenshot. Default is png.",
492
+ "type": "string",
493
+ "enum": [
494
+ "png",
495
+ "jpeg"
496
+ ]
497
+ },
498
+ "filename": {
499
+ "description": "File name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified. Prefer relative file names to stay within the output directory.",
500
+ "type": "string"
501
+ },
502
+ "fullPage": {
503
+ "description": "When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.",
504
+ "type": "boolean"
505
+ }
506
+ },
507
+ "required": [
508
+ "type"
509
+ ],
510
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
511
+ "additionalProperties": false
512
+ }
513
+ ```
514
+
515
+ ## browser_snapshot
516
+
517
+ ### Description
518
+ Capture accessibility snapshot of the current page, this is better than screenshot
519
+
520
+ ### Input schema
521
+ ```
522
+ {
523
+ "type": "object",
524
+ "properties": {
525
+ "target": {
526
+ "description": "Exact target element reference from the page snapshot, or a unique element selector",
527
+ "type": "string"
528
+ },
529
+ "filename": {
530
+ "description": "Save snapshot to markdown file instead of returning it in the response.",
531
+ "type": "string"
532
+ },
533
+ "depth": {
534
+ "description": "Limit the depth of the snapshot tree",
535
+ "type": "number"
536
+ },
537
+ "boxes": {
538
+ "description": "Include each element's bounding box as [box=x,y,width,height] in the snapshot",
539
+ "type": "boolean"
540
+ }
541
+ },
542
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
543
+ "additionalProperties": false
544
+ }
545
+ ```
546
+
547
+ ## browser_click
548
+
549
+ ### Description
550
+ Perform click on a web page
551
+
552
+ ### Input schema
553
+ ```
554
+ {
555
+ "type": "object",
556
+ "properties": {
557
+ "element": {
558
+ "description": "Human-readable element description used to obtain permission to interact with the element",
559
+ "type": "string"
560
+ },
561
+ "target": {
562
+ "type": "string",
563
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
564
+ },
565
+ "doubleClick": {
566
+ "description": "Whether to perform a double click instead of a single click",
567
+ "type": "boolean"
568
+ },
569
+ "button": {
570
+ "description": "Button to click, defaults to left",
571
+ "type": "string",
572
+ "enum": [
573
+ "left",
574
+ "right",
575
+ "middle"
576
+ ]
577
+ },
578
+ "modifiers": {
579
+ "description": "Modifier keys to press",
580
+ "type": "array",
581
+ "items": {
582
+ "type": "string",
583
+ "enum": [
584
+ "Alt",
585
+ "Control",
586
+ "ControlOrMeta",
587
+ "Meta",
588
+ "Shift"
589
+ ]
590
+ }
591
+ }
592
+ },
593
+ "required": [
594
+ "target"
595
+ ],
596
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
597
+ "additionalProperties": false
598
+ }
599
+ ```
600
+
601
+ ## browser_drag
602
+
603
+ ### Description
604
+ Perform drag and drop between two elements
605
+
606
+ ### Input schema
607
+ ```
608
+ {
609
+ "type": "object",
610
+ "properties": {
611
+ "startElement": {
612
+ "description": "Human-readable source element description used to obtain the permission to interact with the element",
613
+ "type": "string"
614
+ },
615
+ "startTarget": {
616
+ "type": "string",
617
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
618
+ },
619
+ "endElement": {
620
+ "description": "Human-readable target element description used to obtain the permission to interact with the element",
621
+ "type": "string"
622
+ },
623
+ "endTarget": {
624
+ "type": "string",
625
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
626
+ }
627
+ },
628
+ "required": [
629
+ "startTarget",
630
+ "endTarget"
631
+ ],
632
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
633
+ "additionalProperties": false
634
+ }
635
+ ```
636
+
637
+ ## browser_hover
638
+
639
+ ### Description
640
+ Hover over element on page
641
+
642
+ ### Input schema
643
+ ```
644
+ {
645
+ "type": "object",
646
+ "properties": {
647
+ "element": {
648
+ "description": "Human-readable element description used to obtain permission to interact with the element",
649
+ "type": "string"
650
+ },
651
+ "target": {
652
+ "type": "string",
653
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
654
+ }
655
+ },
656
+ "required": [
657
+ "target"
658
+ ],
659
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
660
+ "additionalProperties": false
661
+ }
662
+ ```
663
+
664
+ ## browser_select_option
665
+
666
+ ### Description
667
+ Select an option in a dropdown
668
+
669
+ ### Input schema
670
+ ```
671
+ {
672
+ "type": "object",
673
+ "properties": {
674
+ "element": {
675
+ "description": "Human-readable element description used to obtain permission to interact with the element",
676
+ "type": "string"
677
+ },
678
+ "target": {
679
+ "type": "string",
680
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
681
+ },
682
+ "values": {
683
+ "type": "array",
684
+ "items": {
685
+ "type": "string"
686
+ },
687
+ "description": "Array of values to select in the dropdown. This can be a single value or multiple values."
688
+ }
689
+ },
690
+ "required": [
691
+ "target",
692
+ "values"
693
+ ],
694
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
695
+ "additionalProperties": false
696
+ }
697
+ ```
698
+
699
+ ## browser_tabs
700
+
701
+ ### Description
702
+ List, create, close, or select a browser tab.
703
+
704
+ ### Input schema
705
+ ```
706
+ {
707
+ "type": "object",
708
+ "properties": {
709
+ "action": {
710
+ "type": "string",
711
+ "enum": [
712
+ "list",
713
+ "new",
714
+ "close",
715
+ "select"
716
+ ],
717
+ "description": "Operation to perform"
718
+ },
719
+ "index": {
720
+ "description": "Tab index, used for close/select. If omitted for close, current tab is closed.",
721
+ "type": "number"
722
+ },
723
+ "url": {
724
+ "description": "URL to navigate to in the new tab, used for new.",
725
+ "type": "string"
726
+ }
727
+ },
728
+ "required": [
729
+ "action"
730
+ ],
731
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
732
+ "additionalProperties": false
733
+ }
734
+ ```
735
+
736
+ ## browser_wait_for
737
+
738
+ ### Description
739
+ Wait for text to appear or disappear or a specified time to pass
740
+
741
+ ### Input schema
742
+ ```
743
+ {
744
+ "type": "object",
745
+ "properties": {
746
+ "time": {
747
+ "description": "The time to wait in seconds",
748
+ "type": "number"
749
+ },
750
+ "text": {
751
+ "description": "The text to wait for",
752
+ "type": "string"
753
+ },
754
+ "textGone": {
755
+ "description": "The text to wait for to disappear",
756
+ "type": "string"
757
+ }
758
+ },
759
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
760
+ "additionalProperties": false
761
+ }
762
+ ```
763
+