fastbrowser_cli 1.0.31 → 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 +9 -3
  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,963 @@
1
+ # Tools available on MCP target 'chrome_devtools' (29)
2
+
3
+ ## click
4
+
5
+ ### Description
6
+ Clicks on the provided element
7
+
8
+ ### Input schema
9
+ ```
10
+ {
11
+ "type": "object",
12
+ "properties": {
13
+ "uid": {
14
+ "type": "string",
15
+ "description": "The uid of an element on the page from the page content snapshot"
16
+ },
17
+ "dblClick": {
18
+ "type": "boolean",
19
+ "description": "Set to true for double clicks. Default is false."
20
+ },
21
+ "includeSnapshot": {
22
+ "type": "boolean",
23
+ "description": "Whether to include a snapshot in the response. Default is false."
24
+ }
25
+ },
26
+ "required": [
27
+ "uid"
28
+ ],
29
+ "additionalProperties": false,
30
+ "$schema": "http://json-schema.org/draft-07/schema#"
31
+ }
32
+ ```
33
+
34
+ ## close_page
35
+
36
+ ### Description
37
+ Closes the page by its index. The last open page cannot be closed.
38
+
39
+ ### Input schema
40
+ ```
41
+ {
42
+ "type": "object",
43
+ "properties": {
44
+ "pageId": {
45
+ "type": "number",
46
+ "description": "The ID of the page to close. Call list_pages to list pages."
47
+ }
48
+ },
49
+ "required": [
50
+ "pageId"
51
+ ],
52
+ "additionalProperties": false,
53
+ "$schema": "http://json-schema.org/draft-07/schema#"
54
+ }
55
+ ```
56
+
57
+ ## drag
58
+
59
+ ### Description
60
+ Drag an element onto another element
61
+
62
+ ### Input schema
63
+ ```
64
+ {
65
+ "type": "object",
66
+ "properties": {
67
+ "from_uid": {
68
+ "type": "string",
69
+ "description": "The uid of the element to drag"
70
+ },
71
+ "to_uid": {
72
+ "type": "string",
73
+ "description": "The uid of the element to drop into"
74
+ },
75
+ "includeSnapshot": {
76
+ "type": "boolean",
77
+ "description": "Whether to include a snapshot in the response. Default is false."
78
+ }
79
+ },
80
+ "required": [
81
+ "from_uid",
82
+ "to_uid"
83
+ ],
84
+ "additionalProperties": false,
85
+ "$schema": "http://json-schema.org/draft-07/schema#"
86
+ }
87
+ ```
88
+
89
+ ## emulate
90
+
91
+ ### Description
92
+ Emulates various features on the selected page.
93
+
94
+ ### Input schema
95
+ ```
96
+ {
97
+ "type": "object",
98
+ "properties": {
99
+ "networkConditions": {
100
+ "type": "string",
101
+ "enum": [
102
+ "Offline",
103
+ "Slow 3G",
104
+ "Fast 3G",
105
+ "Slow 4G",
106
+ "Fast 4G"
107
+ ],
108
+ "description": "Throttle network. Omit to disable throttling."
109
+ },
110
+ "cpuThrottlingRate": {
111
+ "type": "number",
112
+ "minimum": 1,
113
+ "maximum": 20,
114
+ "description": "Represents the CPU slowdown factor. Omit or set the rate to 1 to disable throttling"
115
+ },
116
+ "geolocation": {
117
+ "type": "string",
118
+ "description": "Geolocation (`<latitude>x<longitude>`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit to clear the geolocation override."
119
+ },
120
+ "userAgent": {
121
+ "type": "string",
122
+ "description": "User agent to emulate. Set to empty string to clear the user agent override."
123
+ },
124
+ "colorScheme": {
125
+ "type": "string",
126
+ "enum": [
127
+ "dark",
128
+ "light",
129
+ "auto"
130
+ ],
131
+ "description": "Emulate the dark or the light mode. Set to \"auto\" to reset to the default."
132
+ },
133
+ "viewport": {
134
+ "type": "string",
135
+ "description": "Emulate device viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode."
136
+ }
137
+ },
138
+ "additionalProperties": false,
139
+ "$schema": "http://json-schema.org/draft-07/schema#"
140
+ }
141
+ ```
142
+
143
+ ## evaluate_script
144
+
145
+ ### Description
146
+ Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON,
147
+ so returned values have to be JSON-serializable.
148
+
149
+ ### Input schema
150
+ ```
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "function": {
155
+ "type": "string",
156
+ "description": "A JavaScript function declaration to be executed by the tool in the currently selected page.\nExample without arguments: `() => {\n return document.title\n}` or `async () => {\n return await fetch(\"example.com\")\n}`.\nExample with arguments: `(el) => {\n return el.innerText;\n}`\n"
157
+ },
158
+ "args": {
159
+ "type": "array",
160
+ "items": {
161
+ "type": "string",
162
+ "description": "The uid of an element on the page from the page content snapshot"
163
+ },
164
+ "description": "An optional list of arguments to pass to the function."
165
+ },
166
+ "dialogAction": {
167
+ "type": "string",
168
+ "description": "Handle dialogs while execution. \"accept\", \"dismiss\", or string for response of window.prompt. Defaults to accept."
169
+ }
170
+ },
171
+ "required": [
172
+ "function"
173
+ ],
174
+ "additionalProperties": false,
175
+ "$schema": "http://json-schema.org/draft-07/schema#"
176
+ }
177
+ ```
178
+
179
+ ## fill
180
+
181
+ ### Description
182
+ Type text into an input, text area or select an option from a <select> element.
183
+
184
+ ### Input schema
185
+ ```
186
+ {
187
+ "type": "object",
188
+ "properties": {
189
+ "uid": {
190
+ "type": "string",
191
+ "description": "The uid of an element on the page from the page content snapshot"
192
+ },
193
+ "value": {
194
+ "type": "string",
195
+ "description": "The value to fill in"
196
+ },
197
+ "includeSnapshot": {
198
+ "type": "boolean",
199
+ "description": "Whether to include a snapshot in the response. Default is false."
200
+ }
201
+ },
202
+ "required": [
203
+ "uid",
204
+ "value"
205
+ ],
206
+ "additionalProperties": false,
207
+ "$schema": "http://json-schema.org/draft-07/schema#"
208
+ }
209
+ ```
210
+
211
+ ## fill_form
212
+
213
+ ### Description
214
+ Fill out multiple form elements at once
215
+
216
+ ### Input schema
217
+ ```
218
+ {
219
+ "type": "object",
220
+ "properties": {
221
+ "elements": {
222
+ "type": "array",
223
+ "items": {
224
+ "type": "object",
225
+ "properties": {
226
+ "uid": {
227
+ "type": "string",
228
+ "description": "The uid of the element to fill out"
229
+ },
230
+ "value": {
231
+ "type": "string",
232
+ "description": "Value for the element"
233
+ }
234
+ },
235
+ "required": [
236
+ "uid",
237
+ "value"
238
+ ],
239
+ "additionalProperties": false
240
+ },
241
+ "description": "Elements from snapshot to fill out."
242
+ },
243
+ "includeSnapshot": {
244
+ "type": "boolean",
245
+ "description": "Whether to include a snapshot in the response. Default is false."
246
+ }
247
+ },
248
+ "required": [
249
+ "elements"
250
+ ],
251
+ "additionalProperties": false,
252
+ "$schema": "http://json-schema.org/draft-07/schema#"
253
+ }
254
+ ```
255
+
256
+ ## get_console_message
257
+
258
+ ### Description
259
+ Gets a console message by its ID. You can get all messages by calling list_console_messages.
260
+
261
+ ### Input schema
262
+ ```
263
+ {
264
+ "type": "object",
265
+ "properties": {
266
+ "msgid": {
267
+ "type": "number",
268
+ "description": "The msgid of a console message on the page from the listed console messages"
269
+ }
270
+ },
271
+ "required": [
272
+ "msgid"
273
+ ],
274
+ "additionalProperties": false,
275
+ "$schema": "http://json-schema.org/draft-07/schema#"
276
+ }
277
+ ```
278
+
279
+ ## get_network_request
280
+
281
+ ### Description
282
+ Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel.
283
+
284
+ ### Input schema
285
+ ```
286
+ {
287
+ "type": "object",
288
+ "properties": {
289
+ "reqid": {
290
+ "type": "number",
291
+ "description": "The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel."
292
+ },
293
+ "requestFilePath": {
294
+ "type": "string",
295
+ "description": "The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline."
296
+ },
297
+ "responseFilePath": {
298
+ "type": "string",
299
+ "description": "The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline."
300
+ }
301
+ },
302
+ "additionalProperties": false,
303
+ "$schema": "http://json-schema.org/draft-07/schema#"
304
+ }
305
+ ```
306
+
307
+ ## handle_dialog
308
+
309
+ ### Description
310
+ If a browser dialog was opened, use this command to handle it
311
+
312
+ ### Input schema
313
+ ```
314
+ {
315
+ "type": "object",
316
+ "properties": {
317
+ "action": {
318
+ "type": "string",
319
+ "enum": [
320
+ "accept",
321
+ "dismiss"
322
+ ],
323
+ "description": "Whether to dismiss or accept the dialog"
324
+ },
325
+ "promptText": {
326
+ "type": "string",
327
+ "description": "Optional prompt text to enter into the dialog."
328
+ }
329
+ },
330
+ "required": [
331
+ "action"
332
+ ],
333
+ "additionalProperties": false,
334
+ "$schema": "http://json-schema.org/draft-07/schema#"
335
+ }
336
+ ```
337
+
338
+ ## hover
339
+
340
+ ### Description
341
+ Hover over the provided element
342
+
343
+ ### Input schema
344
+ ```
345
+ {
346
+ "type": "object",
347
+ "properties": {
348
+ "uid": {
349
+ "type": "string",
350
+ "description": "The uid of an element on the page from the page content snapshot"
351
+ },
352
+ "includeSnapshot": {
353
+ "type": "boolean",
354
+ "description": "Whether to include a snapshot in the response. Default is false."
355
+ }
356
+ },
357
+ "required": [
358
+ "uid"
359
+ ],
360
+ "additionalProperties": false,
361
+ "$schema": "http://json-schema.org/draft-07/schema#"
362
+ }
363
+ ```
364
+
365
+ ## lighthouse_audit
366
+
367
+ ### Description
368
+ Get Lighthouse score and reports for accessibility, SEO and best practices. This excludes performance. For performance audits, run performance_start_trace
369
+
370
+ ### Input schema
371
+ ```
372
+ {
373
+ "type": "object",
374
+ "properties": {
375
+ "mode": {
376
+ "type": "string",
377
+ "enum": [
378
+ "navigation",
379
+ "snapshot"
380
+ ],
381
+ "default": "navigation",
382
+ "description": "\"navigation\" reloads & audits. \"snapshot\" analyzes current state."
383
+ },
384
+ "device": {
385
+ "type": "string",
386
+ "enum": [
387
+ "desktop",
388
+ "mobile"
389
+ ],
390
+ "default": "desktop",
391
+ "description": "Device to emulate."
392
+ },
393
+ "outputDirPath": {
394
+ "type": "string",
395
+ "description": "Directory for reports. If omitted, uses temporary files."
396
+ }
397
+ },
398
+ "additionalProperties": false,
399
+ "$schema": "http://json-schema.org/draft-07/schema#"
400
+ }
401
+ ```
402
+
403
+ ## list_console_messages
404
+
405
+ ### Description
406
+ List all console messages for the currently selected page since the last navigation.
407
+
408
+ ### Input schema
409
+ ```
410
+ {
411
+ "type": "object",
412
+ "properties": {
413
+ "pageSize": {
414
+ "type": "integer",
415
+ "exclusiveMinimum": 0,
416
+ "description": "Maximum number of messages to return. When omitted, returns all messages."
417
+ },
418
+ "pageIdx": {
419
+ "type": "integer",
420
+ "minimum": 0,
421
+ "description": "Page number to return (0-based). When omitted, returns the first page."
422
+ },
423
+ "types": {
424
+ "type": "array",
425
+ "items": {
426
+ "type": "string",
427
+ "enum": [
428
+ "log",
429
+ "debug",
430
+ "info",
431
+ "error",
432
+ "warn",
433
+ "dir",
434
+ "dirxml",
435
+ "table",
436
+ "trace",
437
+ "clear",
438
+ "startGroup",
439
+ "startGroupCollapsed",
440
+ "endGroup",
441
+ "assert",
442
+ "profile",
443
+ "profileEnd",
444
+ "count",
445
+ "timeEnd",
446
+ "verbose",
447
+ "issue"
448
+ ]
449
+ },
450
+ "description": "Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages."
451
+ },
452
+ "includePreservedMessages": {
453
+ "type": "boolean",
454
+ "default": false,
455
+ "description": "Set to true to return the preserved messages over the last 3 navigations."
456
+ }
457
+ },
458
+ "additionalProperties": false,
459
+ "$schema": "http://json-schema.org/draft-07/schema#"
460
+ }
461
+ ```
462
+
463
+ ## list_network_requests
464
+
465
+ ### Description
466
+ List all requests for the currently selected page since the last navigation.
467
+
468
+ ### Input schema
469
+ ```
470
+ {
471
+ "type": "object",
472
+ "properties": {
473
+ "pageSize": {
474
+ "type": "integer",
475
+ "exclusiveMinimum": 0,
476
+ "description": "Maximum number of requests to return. When omitted, returns all requests."
477
+ },
478
+ "pageIdx": {
479
+ "type": "integer",
480
+ "minimum": 0,
481
+ "description": "Page number to return (0-based). When omitted, returns the first page."
482
+ },
483
+ "resourceTypes": {
484
+ "type": "array",
485
+ "items": {
486
+ "type": "string",
487
+ "enum": [
488
+ "document",
489
+ "stylesheet",
490
+ "image",
491
+ "media",
492
+ "font",
493
+ "script",
494
+ "texttrack",
495
+ "xhr",
496
+ "fetch",
497
+ "prefetch",
498
+ "eventsource",
499
+ "websocket",
500
+ "manifest",
501
+ "signedexchange",
502
+ "ping",
503
+ "cspviolationreport",
504
+ "preflight",
505
+ "fedcm",
506
+ "other"
507
+ ]
508
+ },
509
+ "description": "Filter requests to only return requests of the specified resource types. When omitted or empty, returns all requests."
510
+ },
511
+ "includePreservedRequests": {
512
+ "type": "boolean",
513
+ "default": false,
514
+ "description": "Set to true to return the preserved requests over the last 3 navigations."
515
+ }
516
+ },
517
+ "additionalProperties": false,
518
+ "$schema": "http://json-schema.org/draft-07/schema#"
519
+ }
520
+ ```
521
+
522
+ ## list_pages
523
+
524
+ ### Description
525
+ Get a list of pages open in the browser.
526
+
527
+ ### Input schema
528
+ ```
529
+ {
530
+ "type": "object",
531
+ "properties": {},
532
+ "$schema": "http://json-schema.org/draft-07/schema#"
533
+ }
534
+ ```
535
+
536
+ ## navigate_page
537
+
538
+ ### Description
539
+ Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.
540
+
541
+ ### Input schema
542
+ ```
543
+ {
544
+ "type": "object",
545
+ "properties": {
546
+ "type": {
547
+ "type": "string",
548
+ "enum": [
549
+ "url",
550
+ "back",
551
+ "forward",
552
+ "reload"
553
+ ],
554
+ "description": "Navigate the page by URL, back or forward in history, or reload."
555
+ },
556
+ "url": {
557
+ "type": "string",
558
+ "description": "Target URL (only type=url)"
559
+ },
560
+ "ignoreCache": {
561
+ "type": "boolean",
562
+ "description": "Whether to ignore cache on reload."
563
+ },
564
+ "handleBeforeUnload": {
565
+ "type": "string",
566
+ "enum": [
567
+ "accept",
568
+ "decline"
569
+ ],
570
+ "description": "Whether to auto accept or beforeunload dialogs triggered by this navigation. Default is accept."
571
+ },
572
+ "initScript": {
573
+ "type": "string",
574
+ "description": "A JavaScript script to be executed on each new document before any other scripts for the next navigation."
575
+ },
576
+ "timeout": {
577
+ "type": "integer",
578
+ "description": "Maximum wait time in milliseconds. If set to 0, the default timeout will be used."
579
+ }
580
+ },
581
+ "additionalProperties": false,
582
+ "$schema": "http://json-schema.org/draft-07/schema#"
583
+ }
584
+ ```
585
+
586
+ ## new_page
587
+
588
+ ### Description
589
+ Open a new tab and load a URL. Use project URL if not specified otherwise.
590
+
591
+ ### Input schema
592
+ ```
593
+ {
594
+ "type": "object",
595
+ "properties": {
596
+ "url": {
597
+ "type": "string",
598
+ "description": "URL to load in a new page."
599
+ },
600
+ "background": {
601
+ "type": "boolean",
602
+ "description": "Whether to open the page in the background without bringing it to the front. Default is false (foreground)."
603
+ },
604
+ "isolatedContext": {
605
+ "type": "string",
606
+ "description": "If specified, the page is created in an isolated browser context with the given name. Pages in the same browser context share cookies and storage. Pages in different browser contexts are fully isolated."
607
+ },
608
+ "timeout": {
609
+ "type": "integer",
610
+ "description": "Maximum wait time in milliseconds. If set to 0, the default timeout will be used."
611
+ }
612
+ },
613
+ "required": [
614
+ "url"
615
+ ],
616
+ "additionalProperties": false,
617
+ "$schema": "http://json-schema.org/draft-07/schema#"
618
+ }
619
+ ```
620
+
621
+ ## performance_analyze_insight
622
+
623
+ ### Description
624
+ Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.
625
+
626
+ ### Input schema
627
+ ```
628
+ {
629
+ "type": "object",
630
+ "properties": {
631
+ "insightSetId": {
632
+ "type": "string",
633
+ "description": "The id for the specific insight set. Only use the ids given in the \"Available insight sets\" list."
634
+ },
635
+ "insightName": {
636
+ "type": "string",
637
+ "description": "The name of the Insight you want more information on. For example: \"DocumentLatency\" or \"LCPBreakdown\""
638
+ }
639
+ },
640
+ "required": [
641
+ "insightSetId",
642
+ "insightName"
643
+ ],
644
+ "additionalProperties": false,
645
+ "$schema": "http://json-schema.org/draft-07/schema#"
646
+ }
647
+ ```
648
+
649
+ ## performance_start_trace
650
+
651
+ ### Description
652
+ Start a performance trace on the selected webpage. Use to find frontend performance issues, Core Web Vitals (LCP, INP, CLS), and improve page load speed.
653
+
654
+ ### Input schema
655
+ ```
656
+ {
657
+ "type": "object",
658
+ "properties": {
659
+ "reload": {
660
+ "type": "boolean",
661
+ "default": true,
662
+ "description": "Determines if, once tracing has started, the current selected page should be automatically reloaded. Navigate the page to the right URL using the navigate_page tool BEFORE starting the trace if reload or autoStop is set to true."
663
+ },
664
+ "autoStop": {
665
+ "type": "boolean",
666
+ "default": true,
667
+ "description": "Determines if the trace recording should be automatically stopped."
668
+ },
669
+ "filePath": {
670
+ "type": "string",
671
+ "description": "The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed)."
672
+ }
673
+ },
674
+ "additionalProperties": false,
675
+ "$schema": "http://json-schema.org/draft-07/schema#"
676
+ }
677
+ ```
678
+
679
+ ## performance_stop_trace
680
+
681
+ ### Description
682
+ Stop the active performance trace recording on the selected webpage.
683
+
684
+ ### Input schema
685
+ ```
686
+ {
687
+ "type": "object",
688
+ "properties": {
689
+ "filePath": {
690
+ "type": "string",
691
+ "description": "The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed)."
692
+ }
693
+ },
694
+ "additionalProperties": false,
695
+ "$schema": "http://json-schema.org/draft-07/schema#"
696
+ }
697
+ ```
698
+
699
+ ## press_key
700
+
701
+ ### Description
702
+ Press a key or key combination. Use this when other input methods like fill() cannot be used (e.g., keyboard shortcuts, navigation keys, or special key combinations).
703
+
704
+ ### Input schema
705
+ ```
706
+ {
707
+ "type": "object",
708
+ "properties": {
709
+ "key": {
710
+ "type": "string",
711
+ "description": "A key or a combination (e.g., \"Enter\", \"Control+A\", \"Control++\", \"Control+Shift+R\"). Modifiers: Control, Shift, Alt, Meta"
712
+ },
713
+ "includeSnapshot": {
714
+ "type": "boolean",
715
+ "description": "Whether to include a snapshot in the response. Default is false."
716
+ }
717
+ },
718
+ "required": [
719
+ "key"
720
+ ],
721
+ "additionalProperties": false,
722
+ "$schema": "http://json-schema.org/draft-07/schema#"
723
+ }
724
+ ```
725
+
726
+ ## resize_page
727
+
728
+ ### Description
729
+ Resizes the selected page's window so that the page has specified dimension
730
+
731
+ ### Input schema
732
+ ```
733
+ {
734
+ "type": "object",
735
+ "properties": {
736
+ "width": {
737
+ "type": "number",
738
+ "description": "Page width"
739
+ },
740
+ "height": {
741
+ "type": "number",
742
+ "description": "Page height"
743
+ }
744
+ },
745
+ "required": [
746
+ "width",
747
+ "height"
748
+ ],
749
+ "additionalProperties": false,
750
+ "$schema": "http://json-schema.org/draft-07/schema#"
751
+ }
752
+ ```
753
+
754
+ ## select_page
755
+
756
+ ### Description
757
+ Select a page as a context for future tool calls.
758
+
759
+ ### Input schema
760
+ ```
761
+ {
762
+ "type": "object",
763
+ "properties": {
764
+ "pageId": {
765
+ "type": "number",
766
+ "description": "The ID of the page to select. Call list_pages to get available pages."
767
+ },
768
+ "bringToFront": {
769
+ "type": "boolean",
770
+ "description": "Whether to focus the page and bring it to the top."
771
+ }
772
+ },
773
+ "required": [
774
+ "pageId"
775
+ ],
776
+ "additionalProperties": false,
777
+ "$schema": "http://json-schema.org/draft-07/schema#"
778
+ }
779
+ ```
780
+
781
+ ## take_memory_snapshot
782
+
783
+ ### Description
784
+ Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.
785
+
786
+ ### Input schema
787
+ ```
788
+ {
789
+ "type": "object",
790
+ "properties": {
791
+ "filePath": {
792
+ "type": "string",
793
+ "description": "A path to a .heapsnapshot file to save the heapsnapshot to."
794
+ }
795
+ },
796
+ "required": [
797
+ "filePath"
798
+ ],
799
+ "additionalProperties": false,
800
+ "$schema": "http://json-schema.org/draft-07/schema#"
801
+ }
802
+ ```
803
+
804
+ ## take_screenshot
805
+
806
+ ### Description
807
+ Take a screenshot of the page or element.
808
+
809
+ ### Input schema
810
+ ```
811
+ {
812
+ "type": "object",
813
+ "properties": {
814
+ "format": {
815
+ "type": "string",
816
+ "enum": [
817
+ "png",
818
+ "jpeg",
819
+ "webp"
820
+ ],
821
+ "default": "png",
822
+ "description": "Type of format to save the screenshot as. Default is \"png\""
823
+ },
824
+ "quality": {
825
+ "type": "number",
826
+ "minimum": 0,
827
+ "maximum": 100,
828
+ "description": "Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format."
829
+ },
830
+ "uid": {
831
+ "type": "string",
832
+ "description": "The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot."
833
+ },
834
+ "fullPage": {
835
+ "type": "boolean",
836
+ "description": "If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid."
837
+ },
838
+ "filePath": {
839
+ "type": "string",
840
+ "description": "The absolute path, or a path relative to the current working directory, to save the screenshot to instead of attaching it to the response."
841
+ }
842
+ },
843
+ "additionalProperties": false,
844
+ "$schema": "http://json-schema.org/draft-07/schema#"
845
+ }
846
+ ```
847
+
848
+ ## take_snapshot
849
+
850
+ ### Description
851
+ Take a text snapshot of the currently selected page based on the a11y tree. The snapshot lists page elements along with a unique
852
+ identifier (uid). Always use the latest snapshot. Prefer taking a snapshot over taking a screenshot. The snapshot indicates the element selected
853
+ in the DevTools Elements panel (if any).
854
+
855
+ ### Input schema
856
+ ```
857
+ {
858
+ "type": "object",
859
+ "properties": {
860
+ "verbose": {
861
+ "type": "boolean",
862
+ "description": "Whether to include all possible information available in the full a11y tree. Default is false."
863
+ },
864
+ "filePath": {
865
+ "type": "string",
866
+ "description": "The absolute path, or a path relative to the current working directory, to save the snapshot to instead of attaching it to the response."
867
+ }
868
+ },
869
+ "additionalProperties": false,
870
+ "$schema": "http://json-schema.org/draft-07/schema#"
871
+ }
872
+ ```
873
+
874
+ ## type_text
875
+
876
+ ### Description
877
+ Type text using keyboard into a previously focused input
878
+
879
+ ### Input schema
880
+ ```
881
+ {
882
+ "type": "object",
883
+ "properties": {
884
+ "text": {
885
+ "type": "string",
886
+ "description": "The text to type"
887
+ },
888
+ "submitKey": {
889
+ "type": "string",
890
+ "description": "Optional key to press after typing. E.g., \"Enter\", \"Tab\", \"Escape\""
891
+ }
892
+ },
893
+ "required": [
894
+ "text"
895
+ ],
896
+ "additionalProperties": false,
897
+ "$schema": "http://json-schema.org/draft-07/schema#"
898
+ }
899
+ ```
900
+
901
+ ## upload_file
902
+
903
+ ### Description
904
+ Upload a file through a provided element.
905
+
906
+ ### Input schema
907
+ ```
908
+ {
909
+ "type": "object",
910
+ "properties": {
911
+ "uid": {
912
+ "type": "string",
913
+ "description": "The uid of the file input element or an element that will open file chooser on the page from the page content snapshot"
914
+ },
915
+ "filePath": {
916
+ "type": "string",
917
+ "description": "The local path of the file to upload"
918
+ },
919
+ "includeSnapshot": {
920
+ "type": "boolean",
921
+ "description": "Whether to include a snapshot in the response. Default is false."
922
+ }
923
+ },
924
+ "required": [
925
+ "uid",
926
+ "filePath"
927
+ ],
928
+ "additionalProperties": false,
929
+ "$schema": "http://json-schema.org/draft-07/schema#"
930
+ }
931
+ ```
932
+
933
+ ## wait_for
934
+
935
+ ### Description
936
+ Wait for the specified text to appear on the selected page.
937
+
938
+ ### Input schema
939
+ ```
940
+ {
941
+ "type": "object",
942
+ "properties": {
943
+ "text": {
944
+ "type": "array",
945
+ "items": {
946
+ "type": "string"
947
+ },
948
+ "minItems": 1,
949
+ "description": "Non-empty list of texts. Resolves when any value appears on the page."
950
+ },
951
+ "timeout": {
952
+ "type": "integer",
953
+ "description": "Maximum wait time in milliseconds. If set to 0, the default timeout will be used."
954
+ }
955
+ },
956
+ "required": [
957
+ "text"
958
+ ],
959
+ "additionalProperties": false,
960
+ "$schema": "http://json-schema.org/draft-07/schema#"
961
+ }
962
+ ```
963
+