@1outres/dsh-bot-connector-browser 0.0.0-stage → 0.3.0

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.
@@ -0,0 +1,1033 @@
1
+ {
2
+ "package": "@playwright/mcp",
3
+ "version": "0.0.86",
4
+ "server": {
5
+ "name": "Playwright",
6
+ "version": "1.66.0-alpha-2026-11-18"
7
+ },
8
+ "arguments": ["--caps", "vision,pdf", "--no-webmcp"],
9
+ "tools": [
10
+ {
11
+ "name": "browser_close",
12
+ "description": "Close the browser and all open tabs.",
13
+ "inputSchema": {
14
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
15
+ "type": "object",
16
+ "properties": {},
17
+ "additionalProperties": false
18
+ },
19
+ "annotations": {
20
+ "title": "Close browser",
21
+ "readOnlyHint": false,
22
+ "destructiveHint": true,
23
+ "openWorldHint": true
24
+ }
25
+ },
26
+ {
27
+ "name": "browser_resize",
28
+ "description": "Resize the browser window",
29
+ "inputSchema": {
30
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
31
+ "type": "object",
32
+ "properties": {
33
+ "width": {
34
+ "type": "number",
35
+ "description": "Width of the browser window"
36
+ },
37
+ "height": {
38
+ "type": "number",
39
+ "description": "Height of the browser window"
40
+ }
41
+ },
42
+ "required": ["width", "height"],
43
+ "additionalProperties": false
44
+ },
45
+ "annotations": {
46
+ "title": "Resize browser window",
47
+ "readOnlyHint": false,
48
+ "destructiveHint": true,
49
+ "openWorldHint": true
50
+ }
51
+ },
52
+ {
53
+ "name": "browser_console_messages",
54
+ "description": "Returns all console messages",
55
+ "inputSchema": {
56
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
57
+ "type": "object",
58
+ "properties": {
59
+ "level": {
60
+ "default": "info",
61
+ "description": "Level of the console messages to return. Each level includes the messages of more severe levels. Defaults to \"info\".",
62
+ "type": "string",
63
+ "enum": ["error", "warning", "info", "debug"]
64
+ },
65
+ "all": {
66
+ "description": "Return all console messages since the beginning of the session, not just since the last navigation. Defaults to false.",
67
+ "type": "boolean"
68
+ },
69
+ "filename": {
70
+ "description": "File name to save the console messages to. Relative file names are resolved against the workspace root. If not provided, messages are returned as text.",
71
+ "type": "string"
72
+ }
73
+ },
74
+ "required": ["level"],
75
+ "additionalProperties": false
76
+ },
77
+ "annotations": {
78
+ "title": "Get console messages",
79
+ "readOnlyHint": true,
80
+ "destructiveHint": false,
81
+ "openWorldHint": true
82
+ }
83
+ },
84
+ {
85
+ "name": "browser_handle_dialog",
86
+ "description": "Handle a dialog",
87
+ "inputSchema": {
88
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
89
+ "type": "object",
90
+ "properties": {
91
+ "accept": {
92
+ "type": "boolean",
93
+ "description": "Whether to accept the dialog."
94
+ },
95
+ "promptText": {
96
+ "description": "The text of the prompt in case of a prompt dialog.",
97
+ "type": "string"
98
+ }
99
+ },
100
+ "required": ["accept"],
101
+ "additionalProperties": false
102
+ },
103
+ "annotations": {
104
+ "title": "Handle a dialog",
105
+ "readOnlyHint": false,
106
+ "destructiveHint": true,
107
+ "openWorldHint": true
108
+ }
109
+ },
110
+ {
111
+ "name": "browser_emulate_media",
112
+ "description": "Emulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted parameters are left unchanged; null clears an override.",
113
+ "inputSchema": {
114
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
115
+ "type": "object",
116
+ "properties": {
117
+ "colorScheme": {
118
+ "description": "Emulates the prefers-color-scheme media feature",
119
+ "anyOf": [
120
+ {
121
+ "type": "string",
122
+ "enum": ["light", "dark"]
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ]
128
+ },
129
+ "reducedMotion": {
130
+ "description": "Emulates the prefers-reduced-motion media feature",
131
+ "anyOf": [
132
+ {
133
+ "type": "string",
134
+ "enum": ["reduce", "no-preference"]
135
+ },
136
+ {
137
+ "type": "null"
138
+ }
139
+ ]
140
+ },
141
+ "forcedColors": {
142
+ "description": "Emulates the forced-colors media feature",
143
+ "anyOf": [
144
+ {
145
+ "type": "string",
146
+ "enum": ["active", "none"]
147
+ },
148
+ {
149
+ "type": "null"
150
+ }
151
+ ]
152
+ },
153
+ "contrast": {
154
+ "description": "Emulates the prefers-contrast media feature",
155
+ "anyOf": [
156
+ {
157
+ "type": "string",
158
+ "enum": ["more", "no-preference"]
159
+ },
160
+ {
161
+ "type": "null"
162
+ }
163
+ ]
164
+ },
165
+ "media": {
166
+ "description": "Changes the CSS media type of the page",
167
+ "anyOf": [
168
+ {
169
+ "type": "string",
170
+ "enum": ["screen", "print"]
171
+ },
172
+ {
173
+ "type": "null"
174
+ }
175
+ ]
176
+ }
177
+ },
178
+ "additionalProperties": false
179
+ },
180
+ "annotations": {
181
+ "title": "Emulate media features",
182
+ "readOnlyHint": false,
183
+ "destructiveHint": true,
184
+ "openWorldHint": true
185
+ }
186
+ },
187
+ {
188
+ "name": "browser_evaluate",
189
+ "description": "Evaluate JavaScript expression on page or element",
190
+ "inputSchema": {
191
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
192
+ "type": "object",
193
+ "properties": {
194
+ "element": {
195
+ "description": "Human-readable element description used to obtain permission to interact with the element",
196
+ "type": "string"
197
+ },
198
+ "target": {
199
+ "description": "Exact target element reference from the page snapshot, or a unique element selector",
200
+ "type": "string"
201
+ },
202
+ "function": {
203
+ "type": "string",
204
+ "description": "() => { /* code */ } or (element) => { /* code */ } when element is provided"
205
+ },
206
+ "filename": {
207
+ "description": "File name to save the result to. Relative file names are resolved against the workspace root. If not provided, result is returned as text.",
208
+ "type": "string"
209
+ }
210
+ },
211
+ "required": ["function"],
212
+ "additionalProperties": false
213
+ },
214
+ "annotations": {
215
+ "title": "Evaluate JavaScript",
216
+ "readOnlyHint": false,
217
+ "destructiveHint": true,
218
+ "openWorldHint": true
219
+ }
220
+ },
221
+ {
222
+ "name": "browser_file_upload",
223
+ "description": "Upload one or multiple files",
224
+ "inputSchema": {
225
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
226
+ "type": "object",
227
+ "properties": {
228
+ "paths": {
229
+ "description": "The absolute paths to the files to upload. Can be single file or multiple files. If omitted, file chooser is cancelled.",
230
+ "type": "array",
231
+ "items": {
232
+ "type": "string"
233
+ }
234
+ }
235
+ },
236
+ "additionalProperties": false
237
+ },
238
+ "annotations": {
239
+ "title": "Upload files",
240
+ "readOnlyHint": false,
241
+ "destructiveHint": true,
242
+ "openWorldHint": true
243
+ }
244
+ },
245
+ {
246
+ "name": "browser_drop",
247
+ "description": "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.",
248
+ "inputSchema": {
249
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
250
+ "type": "object",
251
+ "properties": {
252
+ "element": {
253
+ "description": "Human-readable element description used to obtain permission to interact with the element",
254
+ "type": "string"
255
+ },
256
+ "target": {
257
+ "type": "string",
258
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
259
+ },
260
+ "paths": {
261
+ "description": "Absolute paths to files to drop onto the element.",
262
+ "type": "array",
263
+ "items": {
264
+ "type": "string"
265
+ }
266
+ },
267
+ "data": {
268
+ "description": "Data to drop, as a map of MIME type to string value (e.g. {\"text/plain\": \"hello\", \"text/uri-list\": \"https://example.com\"}).",
269
+ "type": "object",
270
+ "propertyNames": {
271
+ "type": "string"
272
+ },
273
+ "additionalProperties": {
274
+ "type": "string"
275
+ }
276
+ }
277
+ },
278
+ "required": ["target"],
279
+ "additionalProperties": false
280
+ },
281
+ "annotations": {
282
+ "title": "Drop files or data onto an element",
283
+ "readOnlyHint": false,
284
+ "destructiveHint": true,
285
+ "openWorldHint": true
286
+ }
287
+ },
288
+ {
289
+ "name": "browser_find",
290
+ "description": "Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.",
291
+ "inputSchema": {
292
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
293
+ "type": "object",
294
+ "properties": {
295
+ "text": {
296
+ "description": "Plain text to search for in the page snapshot (case-insensitive substring match). Provide either text or regex, not both.",
297
+ "type": "string"
298
+ },
299
+ "regex": {
300
+ "description": "Regular expression to search for in the page snapshot. Matching is case-sensitive by default; wrap the pattern in slashes to add flags, e.g. \"/error/i\" for case-insensitive. Provide either text or regex, not both.",
301
+ "type": "string"
302
+ },
303
+ "maxResults": {
304
+ "description": "Maximum number of matching items to return. Defaults to returning all matches.",
305
+ "type": "number"
306
+ },
307
+ "filename": {
308
+ "description": "Save results to a file instead of returning them in the response. Relative file names are resolved against the workspace root.",
309
+ "type": "string"
310
+ }
311
+ },
312
+ "additionalProperties": false
313
+ },
314
+ "annotations": {
315
+ "title": "Find in page snapshot",
316
+ "readOnlyHint": true,
317
+ "destructiveHint": false,
318
+ "openWorldHint": true
319
+ }
320
+ },
321
+ {
322
+ "name": "browser_fill_form",
323
+ "description": "Fill multiple form fields",
324
+ "inputSchema": {
325
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
326
+ "type": "object",
327
+ "properties": {
328
+ "fields": {
329
+ "type": "array",
330
+ "items": {
331
+ "type": "object",
332
+ "properties": {
333
+ "element": {
334
+ "description": "Human-readable element description used to obtain permission to interact with the element",
335
+ "type": "string"
336
+ },
337
+ "target": {
338
+ "type": "string",
339
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
340
+ },
341
+ "name": {
342
+ "type": "string",
343
+ "description": "Human-readable field name"
344
+ },
345
+ "type": {
346
+ "type": "string",
347
+ "enum": ["textbox", "checkbox", "radio", "combobox", "slider"],
348
+ "description": "Type of the field"
349
+ },
350
+ "value": {
351
+ "type": "string",
352
+ "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."
353
+ }
354
+ },
355
+ "required": ["target", "name", "type", "value"],
356
+ "additionalProperties": false
357
+ },
358
+ "description": "Fields to fill in"
359
+ }
360
+ },
361
+ "required": ["fields"],
362
+ "additionalProperties": false
363
+ },
364
+ "annotations": {
365
+ "title": "Fill form",
366
+ "readOnlyHint": false,
367
+ "destructiveHint": true,
368
+ "openWorldHint": true
369
+ }
370
+ },
371
+ {
372
+ "name": "browser_press_key",
373
+ "description": "Press a key on the keyboard",
374
+ "inputSchema": {
375
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
376
+ "type": "object",
377
+ "properties": {
378
+ "key": {
379
+ "type": "string",
380
+ "description": "Name of the key to press or a character to generate, such as `ArrowLeft` or `a`"
381
+ }
382
+ },
383
+ "required": ["key"],
384
+ "additionalProperties": false
385
+ },
386
+ "annotations": {
387
+ "title": "Press a key",
388
+ "readOnlyHint": false,
389
+ "destructiveHint": true,
390
+ "openWorldHint": true
391
+ }
392
+ },
393
+ {
394
+ "name": "browser_type",
395
+ "description": "Type text into editable element",
396
+ "inputSchema": {
397
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
398
+ "type": "object",
399
+ "properties": {
400
+ "element": {
401
+ "description": "Human-readable element description used to obtain permission to interact with the element",
402
+ "type": "string"
403
+ },
404
+ "target": {
405
+ "type": "string",
406
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
407
+ },
408
+ "text": {
409
+ "type": "string",
410
+ "description": "Text to type into the element"
411
+ },
412
+ "submit": {
413
+ "description": "Whether to submit entered text (press Enter after)",
414
+ "type": "boolean"
415
+ },
416
+ "slowly": {
417
+ "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.",
418
+ "type": "boolean"
419
+ }
420
+ },
421
+ "required": ["target", "text"],
422
+ "additionalProperties": false
423
+ },
424
+ "annotations": {
425
+ "title": "Type text",
426
+ "readOnlyHint": false,
427
+ "destructiveHint": true,
428
+ "openWorldHint": true
429
+ }
430
+ },
431
+ {
432
+ "name": "browser_mouse_move_xy",
433
+ "description": "Move mouse to a given position",
434
+ "inputSchema": {
435
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
436
+ "type": "object",
437
+ "properties": {
438
+ "x": {
439
+ "type": "number",
440
+ "description": "X coordinate"
441
+ },
442
+ "y": {
443
+ "type": "number",
444
+ "description": "Y coordinate"
445
+ }
446
+ },
447
+ "required": ["x", "y"],
448
+ "additionalProperties": false
449
+ },
450
+ "annotations": {
451
+ "title": "Move mouse",
452
+ "readOnlyHint": false,
453
+ "destructiveHint": true,
454
+ "openWorldHint": true
455
+ }
456
+ },
457
+ {
458
+ "name": "browser_mouse_click_xy",
459
+ "description": "Click mouse button at a given position",
460
+ "inputSchema": {
461
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
462
+ "type": "object",
463
+ "properties": {
464
+ "x": {
465
+ "type": "number",
466
+ "description": "X coordinate"
467
+ },
468
+ "y": {
469
+ "type": "number",
470
+ "description": "Y coordinate"
471
+ },
472
+ "button": {
473
+ "description": "Button to click, defaults to left",
474
+ "type": "string",
475
+ "enum": ["left", "right", "middle"]
476
+ },
477
+ "clickCount": {
478
+ "description": "Number of clicks, defaults to 1",
479
+ "type": "number"
480
+ },
481
+ "delay": {
482
+ "description": "Time to wait between mouse down and mouse up in milliseconds, defaults to 0",
483
+ "type": "number"
484
+ }
485
+ },
486
+ "required": ["x", "y"],
487
+ "additionalProperties": false
488
+ },
489
+ "annotations": {
490
+ "title": "Click",
491
+ "readOnlyHint": false,
492
+ "destructiveHint": true,
493
+ "openWorldHint": true
494
+ }
495
+ },
496
+ {
497
+ "name": "browser_mouse_drag_xy",
498
+ "description": "Drag left mouse button to a given position",
499
+ "inputSchema": {
500
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
501
+ "type": "object",
502
+ "properties": {
503
+ "startX": {
504
+ "type": "number",
505
+ "description": "Start X coordinate"
506
+ },
507
+ "startY": {
508
+ "type": "number",
509
+ "description": "Start Y coordinate"
510
+ },
511
+ "endX": {
512
+ "type": "number",
513
+ "description": "End X coordinate"
514
+ },
515
+ "endY": {
516
+ "type": "number",
517
+ "description": "End Y coordinate"
518
+ }
519
+ },
520
+ "required": ["startX", "startY", "endX", "endY"],
521
+ "additionalProperties": false
522
+ },
523
+ "annotations": {
524
+ "title": "Drag mouse",
525
+ "readOnlyHint": false,
526
+ "destructiveHint": true,
527
+ "openWorldHint": true
528
+ }
529
+ },
530
+ {
531
+ "name": "browser_mouse_down",
532
+ "description": "Press mouse down",
533
+ "inputSchema": {
534
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
535
+ "type": "object",
536
+ "properties": {
537
+ "button": {
538
+ "description": "Button to press, defaults to left",
539
+ "type": "string",
540
+ "enum": ["left", "right", "middle"]
541
+ }
542
+ },
543
+ "additionalProperties": false
544
+ },
545
+ "annotations": {
546
+ "title": "Press mouse down",
547
+ "readOnlyHint": false,
548
+ "destructiveHint": true,
549
+ "openWorldHint": true
550
+ }
551
+ },
552
+ {
553
+ "name": "browser_mouse_up",
554
+ "description": "Press mouse up",
555
+ "inputSchema": {
556
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
557
+ "type": "object",
558
+ "properties": {
559
+ "button": {
560
+ "description": "Button to press, defaults to left",
561
+ "type": "string",
562
+ "enum": ["left", "right", "middle"]
563
+ }
564
+ },
565
+ "additionalProperties": false
566
+ },
567
+ "annotations": {
568
+ "title": "Press mouse up",
569
+ "readOnlyHint": false,
570
+ "destructiveHint": true,
571
+ "openWorldHint": true
572
+ }
573
+ },
574
+ {
575
+ "name": "browser_mouse_wheel",
576
+ "description": "Scroll mouse wheel",
577
+ "inputSchema": {
578
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
579
+ "type": "object",
580
+ "properties": {
581
+ "deltaX": {
582
+ "default": 0,
583
+ "description": "X delta",
584
+ "type": "number"
585
+ },
586
+ "deltaY": {
587
+ "default": 0,
588
+ "description": "Y delta",
589
+ "type": "number"
590
+ }
591
+ },
592
+ "required": ["deltaX", "deltaY"],
593
+ "additionalProperties": false
594
+ },
595
+ "annotations": {
596
+ "title": "Scroll mouse wheel",
597
+ "readOnlyHint": false,
598
+ "destructiveHint": true,
599
+ "openWorldHint": true
600
+ }
601
+ },
602
+ {
603
+ "name": "browser_navigate",
604
+ "description": "Navigate to a URL",
605
+ "inputSchema": {
606
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
607
+ "type": "object",
608
+ "properties": {
609
+ "url": {
610
+ "type": "string",
611
+ "description": "The URL to navigate to"
612
+ }
613
+ },
614
+ "required": ["url"],
615
+ "additionalProperties": false
616
+ },
617
+ "annotations": {
618
+ "title": "Navigate to a URL",
619
+ "readOnlyHint": false,
620
+ "destructiveHint": true,
621
+ "openWorldHint": true
622
+ }
623
+ },
624
+ {
625
+ "name": "browser_navigate_back",
626
+ "description": "Go back to the previous page in the history",
627
+ "inputSchema": {
628
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
629
+ "type": "object",
630
+ "properties": {},
631
+ "additionalProperties": false
632
+ },
633
+ "annotations": {
634
+ "title": "Go back",
635
+ "readOnlyHint": false,
636
+ "destructiveHint": true,
637
+ "openWorldHint": true
638
+ }
639
+ },
640
+ {
641
+ "name": "browser_network_requests",
642
+ "description": "Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.",
643
+ "inputSchema": {
644
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
645
+ "type": "object",
646
+ "properties": {
647
+ "static": {
648
+ "default": false,
649
+ "description": "Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false.",
650
+ "type": "boolean"
651
+ },
652
+ "filter": {
653
+ "description": "Only return requests whose URL matches this regexp (e.g. \"/api/.*user\").",
654
+ "type": "string"
655
+ },
656
+ "all": {
657
+ "description": "Return all network requests since the beginning of the session, not just since the last navigation. Defaults to false.",
658
+ "type": "boolean"
659
+ },
660
+ "filename": {
661
+ "description": "File name to save the network requests to. Relative file names are resolved against the workspace root. If not provided, requests are returned as text.",
662
+ "type": "string"
663
+ }
664
+ },
665
+ "required": ["static"],
666
+ "additionalProperties": false
667
+ },
668
+ "annotations": {
669
+ "title": "List network requests",
670
+ "readOnlyHint": true,
671
+ "destructiveHint": false,
672
+ "openWorldHint": true
673
+ }
674
+ },
675
+ {
676
+ "name": "browser_network_request",
677
+ "description": "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.",
678
+ "inputSchema": {
679
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
680
+ "type": "object",
681
+ "properties": {
682
+ "index": {
683
+ "type": "integer",
684
+ "minimum": 1,
685
+ "maximum": 9007199254740991,
686
+ "description": "1-based index of the request, as printed by browser_network_requests."
687
+ },
688
+ "part": {
689
+ "description": "Return only this part of the request. Omit to return full details.",
690
+ "type": "string",
691
+ "enum": ["request-headers", "request-body", "response-headers", "response-body"]
692
+ },
693
+ "filename": {
694
+ "description": "File name to save the result to. Relative file names are resolved against the workspace root. If not provided, output is returned as text.",
695
+ "type": "string"
696
+ }
697
+ },
698
+ "required": ["index"],
699
+ "additionalProperties": false
700
+ },
701
+ "annotations": {
702
+ "title": "Show network request details",
703
+ "readOnlyHint": true,
704
+ "destructiveHint": false,
705
+ "openWorldHint": true
706
+ }
707
+ },
708
+ {
709
+ "name": "browser_pdf_save",
710
+ "description": "Save page as PDF",
711
+ "inputSchema": {
712
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
713
+ "type": "object",
714
+ "properties": {
715
+ "filename": {
716
+ "description": "File name to save the pdf to. Relative file names are resolved against the workspace root. If not specified, the pdf is saved into the output directory as `page-{timestamp}.pdf`.",
717
+ "type": "string"
718
+ }
719
+ },
720
+ "additionalProperties": false
721
+ },
722
+ "annotations": {
723
+ "title": "Save as PDF",
724
+ "readOnlyHint": true,
725
+ "destructiveHint": false,
726
+ "openWorldHint": true
727
+ }
728
+ },
729
+ {
730
+ "name": "browser_run_code_unsafe",
731
+ "description": "Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.",
732
+ "inputSchema": {
733
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
734
+ "type": "object",
735
+ "properties": {
736
+ "code": {
737
+ "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(); }`",
738
+ "type": "string"
739
+ },
740
+ "filename": {
741
+ "description": "Load code from the specified file. Relative file names are resolved against the workspace root. If both code and filename are provided, code will be ignored.",
742
+ "type": "string"
743
+ }
744
+ },
745
+ "additionalProperties": false
746
+ },
747
+ "annotations": {
748
+ "title": "Run Playwright code (unsafe)",
749
+ "readOnlyHint": false,
750
+ "destructiveHint": true,
751
+ "openWorldHint": true
752
+ }
753
+ },
754
+ {
755
+ "name": "browser_take_screenshot",
756
+ "description": "Take a screenshot of the current page. Use browser_snapshot for actions by default. With the vision capability enabled, use screenshot coordinates with the coordinate-based mouse tools for elements not exposed in the accessibility snapshot.",
757
+ "inputSchema": {
758
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
759
+ "type": "object",
760
+ "properties": {
761
+ "element": {
762
+ "description": "Human-readable element description used to obtain permission to interact with the element",
763
+ "type": "string"
764
+ },
765
+ "target": {
766
+ "description": "Exact target element reference from the page snapshot, or a unique element selector",
767
+ "type": "string"
768
+ },
769
+ "type": {
770
+ "description": "Image format for the screenshot. If unset, inferred from the filename extension, otherwise png.",
771
+ "type": "string",
772
+ "enum": ["png", "jpeg", "webp"]
773
+ },
774
+ "filename": {
775
+ "description": "File name to save the screenshot to. Relative file names are resolved against the workspace root. If not specified, the screenshot is saved into the output directory as `page-{timestamp}.{png|jpeg|webp}`.",
776
+ "type": "string"
777
+ },
778
+ "fullPage": {
779
+ "description": "When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.",
780
+ "type": "boolean"
781
+ },
782
+ "scale": {
783
+ "default": "css",
784
+ "description": "Image resolution scale. \"css\" produces a screenshot sized in CSS pixels (smaller, consistent across devices). \"device\" produces a high-resolution screenshot using device pixels (larger, accounts for the device pixel ratio). Default is css.",
785
+ "type": "string",
786
+ "enum": ["css", "device"]
787
+ }
788
+ },
789
+ "required": ["scale"],
790
+ "additionalProperties": false
791
+ },
792
+ "annotations": {
793
+ "title": "Take a screenshot",
794
+ "readOnlyHint": true,
795
+ "destructiveHint": false,
796
+ "openWorldHint": true
797
+ }
798
+ },
799
+ {
800
+ "name": "browser_snapshot",
801
+ "description": "Capture accessibility snapshot of the current page, this is better than screenshot",
802
+ "inputSchema": {
803
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
804
+ "type": "object",
805
+ "properties": {
806
+ "target": {
807
+ "description": "Exact target element reference from the page snapshot, or a unique element selector",
808
+ "type": "string"
809
+ },
810
+ "filename": {
811
+ "description": "Save snapshot to a file instead of returning it in the response. Relative file names are resolved against the workspace root.",
812
+ "type": "string"
813
+ },
814
+ "depth": {
815
+ "description": "Limit the depth of the snapshot tree",
816
+ "type": "number"
817
+ },
818
+ "boxes": {
819
+ "description": "Include each element's bounding box as [box=x,y,width,height] in the snapshot. Coordinates are viewport-relative, in CSS pixels (Element.getBoundingClientRect)",
820
+ "type": "boolean"
821
+ }
822
+ },
823
+ "additionalProperties": false
824
+ },
825
+ "annotations": {
826
+ "title": "Page snapshot",
827
+ "readOnlyHint": true,
828
+ "destructiveHint": false,
829
+ "openWorldHint": true
830
+ }
831
+ },
832
+ {
833
+ "name": "browser_click",
834
+ "description": "Perform click on a web page",
835
+ "inputSchema": {
836
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
837
+ "type": "object",
838
+ "properties": {
839
+ "element": {
840
+ "description": "Human-readable element description used to obtain permission to interact with the element",
841
+ "type": "string"
842
+ },
843
+ "target": {
844
+ "type": "string",
845
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
846
+ },
847
+ "doubleClick": {
848
+ "description": "Whether to perform a double click instead of a single click",
849
+ "type": "boolean"
850
+ },
851
+ "button": {
852
+ "description": "Button to click, defaults to left",
853
+ "type": "string",
854
+ "enum": ["left", "right", "middle"]
855
+ },
856
+ "modifiers": {
857
+ "description": "Modifier keys to press",
858
+ "type": "array",
859
+ "items": {
860
+ "type": "string",
861
+ "enum": ["Alt", "Control", "ControlOrMeta", "Meta", "Shift"]
862
+ }
863
+ }
864
+ },
865
+ "required": ["target"],
866
+ "additionalProperties": false
867
+ },
868
+ "annotations": {
869
+ "title": "Click",
870
+ "readOnlyHint": false,
871
+ "destructiveHint": true,
872
+ "openWorldHint": true
873
+ }
874
+ },
875
+ {
876
+ "name": "browser_drag",
877
+ "description": "Perform drag and drop between two elements",
878
+ "inputSchema": {
879
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
880
+ "type": "object",
881
+ "properties": {
882
+ "startElement": {
883
+ "description": "Human-readable source element description used to obtain the permission to interact with the element",
884
+ "type": "string"
885
+ },
886
+ "startTarget": {
887
+ "type": "string",
888
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
889
+ },
890
+ "endElement": {
891
+ "description": "Human-readable target element description used to obtain the permission to interact with the element",
892
+ "type": "string"
893
+ },
894
+ "endTarget": {
895
+ "type": "string",
896
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
897
+ }
898
+ },
899
+ "required": ["startTarget", "endTarget"],
900
+ "additionalProperties": false
901
+ },
902
+ "annotations": {
903
+ "title": "Drag mouse",
904
+ "readOnlyHint": false,
905
+ "destructiveHint": true,
906
+ "openWorldHint": true
907
+ }
908
+ },
909
+ {
910
+ "name": "browser_hover",
911
+ "description": "Hover over element on page",
912
+ "inputSchema": {
913
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
914
+ "type": "object",
915
+ "properties": {
916
+ "element": {
917
+ "description": "Human-readable element description used to obtain permission to interact with the element",
918
+ "type": "string"
919
+ },
920
+ "target": {
921
+ "type": "string",
922
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
923
+ }
924
+ },
925
+ "required": ["target"],
926
+ "additionalProperties": false
927
+ },
928
+ "annotations": {
929
+ "title": "Hover mouse",
930
+ "readOnlyHint": false,
931
+ "destructiveHint": true,
932
+ "openWorldHint": true
933
+ }
934
+ },
935
+ {
936
+ "name": "browser_select_option",
937
+ "description": "Select an option in a dropdown",
938
+ "inputSchema": {
939
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
940
+ "type": "object",
941
+ "properties": {
942
+ "element": {
943
+ "description": "Human-readable element description used to obtain permission to interact with the element",
944
+ "type": "string"
945
+ },
946
+ "target": {
947
+ "type": "string",
948
+ "description": "Exact target element reference from the page snapshot, or a unique element selector"
949
+ },
950
+ "values": {
951
+ "type": "array",
952
+ "items": {
953
+ "type": "string"
954
+ },
955
+ "description": "Array of values to select in the dropdown. This can be a single value or multiple values."
956
+ }
957
+ },
958
+ "required": ["target", "values"],
959
+ "additionalProperties": false
960
+ },
961
+ "annotations": {
962
+ "title": "Select option",
963
+ "readOnlyHint": false,
964
+ "destructiveHint": true,
965
+ "openWorldHint": true
966
+ }
967
+ },
968
+ {
969
+ "name": "browser_tabs",
970
+ "description": "List, create, close, or select a browser tab.",
971
+ "inputSchema": {
972
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
973
+ "type": "object",
974
+ "properties": {
975
+ "action": {
976
+ "type": "string",
977
+ "enum": ["list", "new", "close", "select"],
978
+ "description": "Operation to perform"
979
+ },
980
+ "index": {
981
+ "description": "Tab index, used for close/select. If omitted for close, current tab is closed.",
982
+ "type": "number"
983
+ },
984
+ "url": {
985
+ "description": "URL to navigate to in the new tab, used for new.",
986
+ "type": "string"
987
+ },
988
+ "isolatedContext": {
989
+ "description": "Name of an isolated browser context to create the new tab in, used for new. Tabs in the same isolated context share cookies and storage, tabs in different contexts are fully isolated. If omitted or \"default\", the tab is created in the default context.",
990
+ "type": "string"
991
+ }
992
+ },
993
+ "required": ["action"],
994
+ "additionalProperties": false
995
+ },
996
+ "annotations": {
997
+ "title": "Manage tabs",
998
+ "readOnlyHint": false,
999
+ "destructiveHint": true,
1000
+ "openWorldHint": true
1001
+ }
1002
+ },
1003
+ {
1004
+ "name": "browser_wait_for",
1005
+ "description": "Wait for text to appear or disappear or a specified time to pass. When both text and textGone are provided, waits for the first one to happen",
1006
+ "inputSchema": {
1007
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "time": {
1011
+ "description": "The time to wait in seconds, at most 30. When combined with text or textGone, serves as a timeout for them instead of the default action timeout",
1012
+ "type": "number"
1013
+ },
1014
+ "text": {
1015
+ "description": "The text to wait for",
1016
+ "type": "string"
1017
+ },
1018
+ "textGone": {
1019
+ "description": "The text to wait for to disappear",
1020
+ "type": "string"
1021
+ }
1022
+ },
1023
+ "additionalProperties": false
1024
+ },
1025
+ "annotations": {
1026
+ "title": "Wait for",
1027
+ "readOnlyHint": true,
1028
+ "destructiveHint": false,
1029
+ "openWorldHint": true
1030
+ }
1031
+ }
1032
+ ]
1033
+ }