cdp-toolkit 1.10.0 → 2.0.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.
- package/CHANGELOG.md +60 -0
- package/README.md +61 -12
- package/dist/cli.js +1233 -312
- package/dist/index.js +11 -11
- package/dist/mcp.js +1314 -320
- package/package.json +4 -2
- package/src/bidi/driver.ts +219 -29
- package/src/bidi/launch.ts +51 -1
- package/src/bidi/marionette.ts +276 -0
- package/src/bidi/session-lease.ts +265 -0
- package/src/cli.ts +10 -0
- package/src/install/browser.ts +211 -0
- package/src/install/harness.ts +224 -0
- package/src/install/wizard.ts +412 -0
- package/src/manifest.ts +297 -297
- package/src/mcp.ts +123 -11
- package/src/toolDocs.ts +468 -0
- package/src/toolGroups.ts +49 -0
- package/src/tools/navigation.ts +4 -2
package/src/manifest.ts
CHANGED
|
@@ -25,21 +25,21 @@ export interface ToolSpec {
|
|
|
25
25
|
export const MANIFEST: ToolSpec[] = [
|
|
26
26
|
{
|
|
27
27
|
"name": "list_pages",
|
|
28
|
-
"description": "
|
|
28
|
+
"description": "List browser page targets; optionally include non-page targets and probe responsiveness.",
|
|
29
29
|
"inputSchema": {
|
|
30
30
|
"type": "object",
|
|
31
31
|
"properties": {
|
|
32
32
|
"lease": {
|
|
33
33
|
"type": "string",
|
|
34
|
-
"description": "Lease token
|
|
34
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
35
35
|
},
|
|
36
36
|
"all": {
|
|
37
37
|
"type": "boolean",
|
|
38
|
-
"description": "Include non-page targets
|
|
38
|
+
"description": "Include non-page targets."
|
|
39
39
|
},
|
|
40
40
|
"probe": {
|
|
41
41
|
"type": "boolean",
|
|
42
|
-
"description": "
|
|
42
|
+
"description": "Probe renderer responsiveness."
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"required": [],
|
|
@@ -48,29 +48,29 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"name": "new_page",
|
|
51
|
-
"description": "Open a
|
|
51
|
+
"description": "Open a browser tab, optionally claim it; navigation is not awaited.",
|
|
52
52
|
"inputSchema": {
|
|
53
53
|
"type": "object",
|
|
54
54
|
"properties": {
|
|
55
55
|
"lease": {
|
|
56
56
|
"type": "string",
|
|
57
|
-
"description": "Lease token
|
|
57
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
58
58
|
},
|
|
59
59
|
"url": {
|
|
60
60
|
"type": "string",
|
|
61
|
-
"description": "URL
|
|
61
|
+
"description": "URL value."
|
|
62
62
|
},
|
|
63
63
|
"claim": {
|
|
64
64
|
"type": "boolean",
|
|
65
|
-
"description": "Claim the new tab
|
|
65
|
+
"description": "Claim the new tab."
|
|
66
66
|
},
|
|
67
67
|
"label": {
|
|
68
68
|
"type": "string",
|
|
69
|
-
"description": "Agent
|
|
69
|
+
"description": "Agent lease label."
|
|
70
70
|
},
|
|
71
71
|
"ttlMs": {
|
|
72
72
|
"type": "number",
|
|
73
|
-
"description": "
|
|
73
|
+
"description": "Lease TTL in milliseconds."
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"required": [],
|
|
@@ -79,17 +79,17 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"name": "close_page",
|
|
82
|
-
"description": "Close a page target
|
|
82
|
+
"description": "Close a selected page; target must resolve explicitly.",
|
|
83
83
|
"inputSchema": {
|
|
84
84
|
"type": "object",
|
|
85
85
|
"properties": {
|
|
86
86
|
"lease": {
|
|
87
87
|
"type": "string",
|
|
88
|
-
"description": "Lease token
|
|
88
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
89
89
|
},
|
|
90
90
|
"target": {
|
|
91
91
|
"type": "string",
|
|
92
|
-
"description": "Page selector
|
|
92
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"required": [
|
|
@@ -100,17 +100,17 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"name": "select_page",
|
|
103
|
-
"description": "
|
|
103
|
+
"description": "Focus a selected page and persist it as active; target must resolve explicitly.",
|
|
104
104
|
"inputSchema": {
|
|
105
105
|
"type": "object",
|
|
106
106
|
"properties": {
|
|
107
107
|
"lease": {
|
|
108
108
|
"type": "string",
|
|
109
|
-
"description": "Lease token
|
|
109
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
110
110
|
},
|
|
111
111
|
"target": {
|
|
112
112
|
"type": "string",
|
|
113
|
-
"description": "Page selector
|
|
113
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"required": [
|
|
@@ -121,25 +121,25 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"name": "navigate_page",
|
|
124
|
-
"description": "Navigate
|
|
124
|
+
"description": "Navigate, reload, or traverse page history; choose exactly one operation.",
|
|
125
125
|
"inputSchema": {
|
|
126
126
|
"type": "object",
|
|
127
127
|
"properties": {
|
|
128
128
|
"lease": {
|
|
129
129
|
"type": "string",
|
|
130
|
-
"description": "Lease token
|
|
130
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
131
131
|
},
|
|
132
132
|
"target": {
|
|
133
133
|
"type": "string",
|
|
134
|
-
"description": "Page selector
|
|
134
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
135
135
|
},
|
|
136
136
|
"url": {
|
|
137
137
|
"type": "string",
|
|
138
|
-
"description": "
|
|
138
|
+
"description": "URL value."
|
|
139
139
|
},
|
|
140
140
|
"reload": {
|
|
141
141
|
"type": "boolean",
|
|
142
|
-
"description": "Reload
|
|
142
|
+
"description": "Reload before capture."
|
|
143
143
|
},
|
|
144
144
|
"history": {
|
|
145
145
|
"type": "string",
|
|
@@ -147,11 +147,11 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
147
147
|
"back",
|
|
148
148
|
"forward"
|
|
149
149
|
],
|
|
150
|
-
"description": "
|
|
150
|
+
"description": "History direction."
|
|
151
151
|
},
|
|
152
152
|
"ignoreCache": {
|
|
153
153
|
"type": "boolean",
|
|
154
|
-
"description": "
|
|
154
|
+
"description": "Bypass cache on reload."
|
|
155
155
|
},
|
|
156
156
|
"waitUntil": {
|
|
157
157
|
"type": "string",
|
|
@@ -159,11 +159,11 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
159
159
|
"load",
|
|
160
160
|
"domcontentloaded"
|
|
161
161
|
],
|
|
162
|
-
"description": "
|
|
162
|
+
"description": "Load milestone."
|
|
163
163
|
},
|
|
164
164
|
"timeoutMs": {
|
|
165
165
|
"type": "number",
|
|
166
|
-
"description": "
|
|
166
|
+
"description": "Timeout in milliseconds."
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
"additionalProperties": false
|
|
@@ -171,29 +171,29 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"name": "wait_for",
|
|
174
|
-
"description": "
|
|
174
|
+
"description": "Wait for a text substring in document.body.innerText; timeout throws.",
|
|
175
175
|
"inputSchema": {
|
|
176
176
|
"type": "object",
|
|
177
177
|
"properties": {
|
|
178
178
|
"lease": {
|
|
179
179
|
"type": "string",
|
|
180
|
-
"description": "Lease token
|
|
180
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
181
181
|
},
|
|
182
182
|
"target": {
|
|
183
183
|
"type": "string",
|
|
184
|
-
"description": "Page selector
|
|
184
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
185
185
|
},
|
|
186
186
|
"text": {
|
|
187
187
|
"type": "string",
|
|
188
|
-
"description": "
|
|
188
|
+
"description": "Text substring."
|
|
189
189
|
},
|
|
190
190
|
"timeoutMs": {
|
|
191
191
|
"type": "number",
|
|
192
|
-
"description": "
|
|
192
|
+
"description": "Timeout in milliseconds."
|
|
193
193
|
},
|
|
194
194
|
"pollMs": {
|
|
195
195
|
"type": "number",
|
|
196
|
-
"description": "
|
|
196
|
+
"description": "Polling interval in milliseconds."
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
199
|
"required": [
|
|
@@ -204,37 +204,37 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
"name": "evaluate_script",
|
|
207
|
-
"description": "
|
|
207
|
+
"description": "Evaluate JavaScript in a page or Chrome worker; args require a function literal.",
|
|
208
208
|
"inputSchema": {
|
|
209
209
|
"type": "object",
|
|
210
210
|
"properties": {
|
|
211
211
|
"lease": {
|
|
212
212
|
"type": "string",
|
|
213
|
-
"description": "Lease token
|
|
213
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
214
214
|
},
|
|
215
215
|
"target": {
|
|
216
216
|
"type": "string",
|
|
217
|
-
"description": "Page selector
|
|
217
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
218
218
|
},
|
|
219
219
|
"wake": {
|
|
220
220
|
"type": "boolean",
|
|
221
|
-
"description": "
|
|
221
|
+
"description": "Wake worker before capture."
|
|
222
222
|
},
|
|
223
223
|
"expression": {
|
|
224
224
|
"type": "string",
|
|
225
|
-
"description": "JavaScript
|
|
225
|
+
"description": "JavaScript expression or function."
|
|
226
226
|
},
|
|
227
227
|
"awaitPromise": {
|
|
228
228
|
"type": "boolean",
|
|
229
|
-
"description": "Await
|
|
229
|
+
"description": "Await Promise results."
|
|
230
230
|
},
|
|
231
231
|
"args": {
|
|
232
232
|
"type": "array",
|
|
233
|
-
"description": "Positional JSON
|
|
233
|
+
"description": "Positional JSON arguments."
|
|
234
234
|
},
|
|
235
235
|
"savePath": {
|
|
236
236
|
"type": "string",
|
|
237
|
-
"description": "
|
|
237
|
+
"description": "Output file path."
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
240
|
"required": [
|
|
@@ -245,29 +245,29 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"name": "list_cookies",
|
|
248
|
-
"description": "Read
|
|
248
|
+
"description": "Read cookies for a selected page, including httpOnly values; savePath keeps values out of the response.",
|
|
249
249
|
"inputSchema": {
|
|
250
250
|
"type": "object",
|
|
251
251
|
"properties": {
|
|
252
252
|
"lease": {
|
|
253
253
|
"type": "string",
|
|
254
|
-
"description": "Lease token
|
|
254
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
255
255
|
},
|
|
256
256
|
"target": {
|
|
257
257
|
"type": "string",
|
|
258
|
-
"description": "Page selector
|
|
258
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
259
259
|
},
|
|
260
260
|
"domain": {
|
|
261
261
|
"type": "string",
|
|
262
|
-
"description": "
|
|
262
|
+
"description": "Cookie domain."
|
|
263
263
|
},
|
|
264
264
|
"name": {
|
|
265
265
|
"type": "string",
|
|
266
|
-
"description": "
|
|
266
|
+
"description": "Cookie name."
|
|
267
267
|
},
|
|
268
268
|
"savePath": {
|
|
269
269
|
"type": "string",
|
|
270
|
-
"description": "
|
|
270
|
+
"description": "Output file path."
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
"required": [],
|
|
@@ -276,49 +276,49 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"name": "set_cookie",
|
|
279
|
-
"description": "
|
|
279
|
+
"description": "Set one page cookie, including httpOnly or secure flags; provide url or domain.",
|
|
280
280
|
"inputSchema": {
|
|
281
281
|
"type": "object",
|
|
282
282
|
"properties": {
|
|
283
283
|
"lease": {
|
|
284
284
|
"type": "string",
|
|
285
|
-
"description": "Lease token
|
|
285
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
286
286
|
},
|
|
287
287
|
"target": {
|
|
288
288
|
"type": "string",
|
|
289
|
-
"description": "Page selector
|
|
289
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
290
290
|
},
|
|
291
291
|
"name": {
|
|
292
292
|
"type": "string",
|
|
293
|
-
"description": "Cookie name.
|
|
293
|
+
"description": "Cookie name."
|
|
294
294
|
},
|
|
295
295
|
"value": {
|
|
296
296
|
"type": "string",
|
|
297
|
-
"description": "Cookie value.
|
|
297
|
+
"description": "Cookie value."
|
|
298
298
|
},
|
|
299
299
|
"url": {
|
|
300
300
|
"type": "string",
|
|
301
|
-
"description": "URL
|
|
301
|
+
"description": "URL value."
|
|
302
302
|
},
|
|
303
303
|
"domain": {
|
|
304
304
|
"type": "string",
|
|
305
|
-
"description": "Cookie domain
|
|
305
|
+
"description": "Cookie domain."
|
|
306
306
|
},
|
|
307
307
|
"path": {
|
|
308
308
|
"type": "string",
|
|
309
|
-
"description": "Cookie path
|
|
309
|
+
"description": "Cookie path."
|
|
310
310
|
},
|
|
311
311
|
"expires": {
|
|
312
312
|
"type": "number",
|
|
313
|
-
"description": "Expiry
|
|
313
|
+
"description": "Expiry Unix time in seconds."
|
|
314
314
|
},
|
|
315
315
|
"httpOnly": {
|
|
316
316
|
"type": "boolean",
|
|
317
|
-
"description": "Set
|
|
317
|
+
"description": "Set HttpOnly flag."
|
|
318
318
|
},
|
|
319
319
|
"secure": {
|
|
320
320
|
"type": "boolean",
|
|
321
|
-
"description": "Set
|
|
321
|
+
"description": "Set Secure flag."
|
|
322
322
|
},
|
|
323
323
|
"sameSite": {
|
|
324
324
|
"type": "string",
|
|
@@ -328,7 +328,7 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
328
328
|
"none",
|
|
329
329
|
"default"
|
|
330
330
|
],
|
|
331
|
-
"description": "SameSite attribute
|
|
331
|
+
"description": "SameSite attribute."
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
"required": [
|
|
@@ -340,33 +340,33 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
"name": "delete_cookies",
|
|
343
|
-
"description": "Delete
|
|
343
|
+
"description": "Delete a named page cookie; provide name and url or domain.",
|
|
344
344
|
"inputSchema": {
|
|
345
345
|
"type": "object",
|
|
346
346
|
"properties": {
|
|
347
347
|
"lease": {
|
|
348
348
|
"type": "string",
|
|
349
|
-
"description": "Lease token
|
|
349
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
350
350
|
},
|
|
351
351
|
"target": {
|
|
352
352
|
"type": "string",
|
|
353
|
-
"description": "Page selector
|
|
353
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
354
354
|
},
|
|
355
355
|
"name": {
|
|
356
356
|
"type": "string",
|
|
357
|
-
"description": "
|
|
357
|
+
"description": "Cookie name."
|
|
358
358
|
},
|
|
359
359
|
"url": {
|
|
360
360
|
"type": "string",
|
|
361
|
-
"description": "
|
|
361
|
+
"description": "URL value."
|
|
362
362
|
},
|
|
363
363
|
"domain": {
|
|
364
364
|
"type": "string",
|
|
365
|
-
"description": "
|
|
365
|
+
"description": "Cookie domain."
|
|
366
366
|
},
|
|
367
367
|
"path": {
|
|
368
368
|
"type": "string",
|
|
369
|
-
"description": "
|
|
369
|
+
"description": "Cookie path."
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
372
|
"required": [
|
|
@@ -377,21 +377,21 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
"name": "take_snapshot",
|
|
380
|
-
"description": "
|
|
380
|
+
"description": "Capture the page accessibility tree with interaction UIDs.",
|
|
381
381
|
"inputSchema": {
|
|
382
382
|
"type": "object",
|
|
383
383
|
"properties": {
|
|
384
384
|
"lease": {
|
|
385
385
|
"type": "string",
|
|
386
|
-
"description": "Lease token
|
|
386
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
387
387
|
},
|
|
388
388
|
"target": {
|
|
389
389
|
"type": "string",
|
|
390
|
-
"description": "Page selector
|
|
390
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
391
391
|
},
|
|
392
392
|
"interactiveOnly": {
|
|
393
393
|
"type": "boolean",
|
|
394
|
-
"description": "
|
|
394
|
+
"description": "Only interactive nodes."
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
"required": [],
|
|
@@ -400,25 +400,25 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
"name": "click",
|
|
403
|
-
"description": "Click an element
|
|
403
|
+
"description": "Click an element by UID or CSS selector; provide exactly one.",
|
|
404
404
|
"inputSchema": {
|
|
405
405
|
"type": "object",
|
|
406
406
|
"properties": {
|
|
407
407
|
"lease": {
|
|
408
408
|
"type": "string",
|
|
409
|
-
"description": "Lease token
|
|
409
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
410
410
|
},
|
|
411
411
|
"target": {
|
|
412
412
|
"type": "string",
|
|
413
|
-
"description": "Page selector
|
|
413
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
414
414
|
},
|
|
415
415
|
"uid": {
|
|
416
416
|
"type": "number",
|
|
417
|
-
"description": "
|
|
417
|
+
"description": "Element backendDOMNodeId."
|
|
418
418
|
},
|
|
419
419
|
"selector": {
|
|
420
420
|
"type": "string",
|
|
421
|
-
"description": "CSS selector
|
|
421
|
+
"description": "CSS selector."
|
|
422
422
|
},
|
|
423
423
|
"button": {
|
|
424
424
|
"type": "string",
|
|
@@ -427,11 +427,11 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
427
427
|
"right",
|
|
428
428
|
"middle"
|
|
429
429
|
],
|
|
430
|
-
"description": "Mouse button
|
|
430
|
+
"description": "Mouse button."
|
|
431
431
|
},
|
|
432
432
|
"clickCount": {
|
|
433
433
|
"type": "number",
|
|
434
|
-
"description": "
|
|
434
|
+
"description": "Click count."
|
|
435
435
|
},
|
|
436
436
|
"modifiers": {
|
|
437
437
|
"type": "array",
|
|
@@ -444,7 +444,7 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
444
444
|
"Shift"
|
|
445
445
|
]
|
|
446
446
|
},
|
|
447
|
-
"description": "Modifier keys
|
|
447
|
+
"description": "Modifier keys: Control|Ctrl|Shift|Alt|Meta|Cmd."
|
|
448
448
|
}
|
|
449
449
|
},
|
|
450
450
|
"required": [],
|
|
@@ -453,25 +453,25 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
"name": "hover",
|
|
456
|
-
"description": "
|
|
456
|
+
"description": "Hover an element by UID or CSS selector; provide exactly one.",
|
|
457
457
|
"inputSchema": {
|
|
458
458
|
"type": "object",
|
|
459
459
|
"properties": {
|
|
460
460
|
"lease": {
|
|
461
461
|
"type": "string",
|
|
462
|
-
"description": "Lease token
|
|
462
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
463
463
|
},
|
|
464
464
|
"target": {
|
|
465
465
|
"type": "string",
|
|
466
|
-
"description": "Page selector
|
|
466
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
467
467
|
},
|
|
468
468
|
"uid": {
|
|
469
469
|
"type": "number",
|
|
470
|
-
"description": "
|
|
470
|
+
"description": "Element backendDOMNodeId."
|
|
471
471
|
},
|
|
472
472
|
"selector": {
|
|
473
473
|
"type": "string",
|
|
474
|
-
"description": "CSS selector
|
|
474
|
+
"description": "CSS selector."
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
477
|
"required": [],
|
|
@@ -480,67 +480,67 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
482
|
"name": "drag",
|
|
483
|
-
"description": "
|
|
483
|
+
"description": "Drag from an element to a destination or offset; html5 mode is Chrome-only.",
|
|
484
484
|
"inputSchema": {
|
|
485
485
|
"type": "object",
|
|
486
486
|
"properties": {
|
|
487
487
|
"lease": {
|
|
488
488
|
"type": "string",
|
|
489
|
-
"description": "Lease token
|
|
489
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
490
490
|
},
|
|
491
491
|
"target": {
|
|
492
492
|
"type": "string",
|
|
493
|
-
"description": "Page selector
|
|
493
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
494
494
|
},
|
|
495
495
|
"from": {
|
|
496
496
|
"type": "object",
|
|
497
|
-
"description": "
|
|
497
|
+
"description": "Drag source.",
|
|
498
498
|
"properties": {
|
|
499
499
|
"uid": {
|
|
500
500
|
"type": "number",
|
|
501
|
-
"description": "
|
|
501
|
+
"description": "Element backendDOMNodeId."
|
|
502
502
|
},
|
|
503
503
|
"selector": {
|
|
504
504
|
"type": "string",
|
|
505
|
-
"description": "CSS selector
|
|
505
|
+
"description": "CSS selector."
|
|
506
506
|
}
|
|
507
507
|
},
|
|
508
508
|
"additionalProperties": false
|
|
509
509
|
},
|
|
510
510
|
"to": {
|
|
511
511
|
"type": "object",
|
|
512
|
-
"description": "
|
|
512
|
+
"description": "Drag destination.",
|
|
513
513
|
"properties": {
|
|
514
514
|
"uid": {
|
|
515
515
|
"type": "number",
|
|
516
|
-
"description": "
|
|
516
|
+
"description": "Element backendDOMNodeId."
|
|
517
517
|
},
|
|
518
518
|
"selector": {
|
|
519
519
|
"type": "string",
|
|
520
|
-
"description": "CSS selector
|
|
520
|
+
"description": "CSS selector."
|
|
521
521
|
},
|
|
522
522
|
"x": {
|
|
523
523
|
"type": "number",
|
|
524
|
-
"description": "
|
|
524
|
+
"description": "Viewport x-coordinate."
|
|
525
525
|
},
|
|
526
526
|
"y": {
|
|
527
527
|
"type": "number",
|
|
528
|
-
"description": "
|
|
528
|
+
"description": "Viewport y-coordinate."
|
|
529
529
|
}
|
|
530
530
|
},
|
|
531
531
|
"additionalProperties": false
|
|
532
532
|
},
|
|
533
533
|
"by": {
|
|
534
534
|
"type": "object",
|
|
535
|
-
"description": "
|
|
535
|
+
"description": "Drag offset.",
|
|
536
536
|
"properties": {
|
|
537
537
|
"dx": {
|
|
538
538
|
"type": "number",
|
|
539
|
-
"description": "Horizontal offset
|
|
539
|
+
"description": "Horizontal drag offset."
|
|
540
540
|
},
|
|
541
541
|
"dy": {
|
|
542
542
|
"type": "number",
|
|
543
|
-
"description": "Vertical offset
|
|
543
|
+
"description": "Vertical drag offset."
|
|
544
544
|
}
|
|
545
545
|
},
|
|
546
546
|
"additionalProperties": false
|
|
@@ -551,11 +551,11 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
551
551
|
"mouse",
|
|
552
552
|
"html5"
|
|
553
553
|
],
|
|
554
|
-
"description": "
|
|
554
|
+
"description": "Drag mode."
|
|
555
555
|
},
|
|
556
556
|
"steps": {
|
|
557
557
|
"type": "number",
|
|
558
|
-
"description": "
|
|
558
|
+
"description": "Interpolation steps."
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
561
|
"required": [
|
|
@@ -566,41 +566,41 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
568
|
"name": "scroll",
|
|
569
|
-
"description": "
|
|
569
|
+
"description": "Dispatch a wheel event at an element or coordinate anchor; provide deltaX or deltaY.",
|
|
570
570
|
"inputSchema": {
|
|
571
571
|
"type": "object",
|
|
572
572
|
"properties": {
|
|
573
573
|
"lease": {
|
|
574
574
|
"type": "string",
|
|
575
|
-
"description": "Lease token
|
|
575
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
576
576
|
},
|
|
577
577
|
"target": {
|
|
578
578
|
"type": "string",
|
|
579
|
-
"description": "Page selector
|
|
579
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
580
580
|
},
|
|
581
581
|
"uid": {
|
|
582
582
|
"type": "number",
|
|
583
|
-
"description": "
|
|
583
|
+
"description": "Element backendDOMNodeId."
|
|
584
584
|
},
|
|
585
585
|
"selector": {
|
|
586
586
|
"type": "string",
|
|
587
|
-
"description": "CSS selector
|
|
587
|
+
"description": "CSS selector."
|
|
588
588
|
},
|
|
589
589
|
"x": {
|
|
590
590
|
"type": "number",
|
|
591
|
-
"description": "
|
|
591
|
+
"description": "Viewport x-coordinate."
|
|
592
592
|
},
|
|
593
593
|
"y": {
|
|
594
594
|
"type": "number",
|
|
595
|
-
"description": "
|
|
595
|
+
"description": "Viewport y-coordinate."
|
|
596
596
|
},
|
|
597
597
|
"deltaX": {
|
|
598
598
|
"type": "number",
|
|
599
|
-
"description": "Horizontal scroll delta
|
|
599
|
+
"description": "Horizontal scroll delta."
|
|
600
600
|
},
|
|
601
601
|
"deltaY": {
|
|
602
602
|
"type": "number",
|
|
603
|
-
"description": "Vertical scroll delta
|
|
603
|
+
"description": "Vertical scroll delta."
|
|
604
604
|
}
|
|
605
605
|
},
|
|
606
606
|
"required": [],
|
|
@@ -609,17 +609,17 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
609
609
|
},
|
|
610
610
|
{
|
|
611
611
|
"name": "dispatch_mouse",
|
|
612
|
-
"description": "
|
|
612
|
+
"description": "Dispatch one raw mouse event at viewport coordinates; Chrome-only.",
|
|
613
613
|
"inputSchema": {
|
|
614
614
|
"type": "object",
|
|
615
615
|
"properties": {
|
|
616
616
|
"lease": {
|
|
617
617
|
"type": "string",
|
|
618
|
-
"description": "Lease token
|
|
618
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
619
619
|
},
|
|
620
620
|
"target": {
|
|
621
621
|
"type": "string",
|
|
622
|
-
"description": "Page selector
|
|
622
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
623
623
|
},
|
|
624
624
|
"action": {
|
|
625
625
|
"type": "string",
|
|
@@ -628,15 +628,15 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
628
628
|
"down",
|
|
629
629
|
"up"
|
|
630
630
|
],
|
|
631
|
-
"description": "
|
|
631
|
+
"description": "Mouse action."
|
|
632
632
|
},
|
|
633
633
|
"x": {
|
|
634
634
|
"type": "number",
|
|
635
|
-
"description": "Viewport x-coordinate.
|
|
635
|
+
"description": "Viewport x-coordinate."
|
|
636
636
|
},
|
|
637
637
|
"y": {
|
|
638
638
|
"type": "number",
|
|
639
|
-
"description": "Viewport y-coordinate.
|
|
639
|
+
"description": "Viewport y-coordinate."
|
|
640
640
|
},
|
|
641
641
|
"button": {
|
|
642
642
|
"type": "string",
|
|
@@ -645,11 +645,11 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
645
645
|
"right",
|
|
646
646
|
"middle"
|
|
647
647
|
],
|
|
648
|
-
"description": "Mouse button
|
|
648
|
+
"description": "Mouse button."
|
|
649
649
|
},
|
|
650
650
|
"clickCount": {
|
|
651
651
|
"type": "number",
|
|
652
|
-
"description": "Click
|
|
652
|
+
"description": "Click count."
|
|
653
653
|
},
|
|
654
654
|
"modifiers": {
|
|
655
655
|
"type": "array",
|
|
@@ -662,7 +662,7 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
662
662
|
"Shift"
|
|
663
663
|
]
|
|
664
664
|
},
|
|
665
|
-
"description": "Modifier keys
|
|
665
|
+
"description": "Modifier keys: Control|Ctrl|Shift|Alt|Meta|Cmd."
|
|
666
666
|
}
|
|
667
667
|
},
|
|
668
668
|
"required": [
|
|
@@ -675,25 +675,25 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
675
675
|
},
|
|
676
676
|
{
|
|
677
677
|
"name": "wait_for_download",
|
|
678
|
-
"description": "
|
|
678
|
+
"description": "Arm or collect a browser download; arm capture before triggering the download.",
|
|
679
679
|
"inputSchema": {
|
|
680
680
|
"type": "object",
|
|
681
681
|
"properties": {
|
|
682
682
|
"lease": {
|
|
683
683
|
"type": "string",
|
|
684
|
-
"description": "Lease token
|
|
684
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
685
685
|
},
|
|
686
686
|
"target": {
|
|
687
687
|
"type": "string",
|
|
688
|
-
"description": "
|
|
688
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
689
689
|
},
|
|
690
690
|
"arm": {
|
|
691
691
|
"type": "boolean",
|
|
692
|
-
"description": "Arm download capture
|
|
692
|
+
"description": "Arm download capture."
|
|
693
693
|
},
|
|
694
694
|
"timeoutMs": {
|
|
695
695
|
"type": "number",
|
|
696
|
-
"description": "
|
|
696
|
+
"description": "Timeout in milliseconds."
|
|
697
697
|
}
|
|
698
698
|
},
|
|
699
699
|
"required": [],
|
|
@@ -702,32 +702,32 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
702
702
|
},
|
|
703
703
|
{
|
|
704
704
|
"name": "grant_permissions",
|
|
705
|
-
"description": "Grant
|
|
705
|
+
"description": "Grant or reset browser permissions; permissions are origin-scoped and Chrome-only.",
|
|
706
706
|
"inputSchema": {
|
|
707
707
|
"type": "object",
|
|
708
708
|
"properties": {
|
|
709
709
|
"lease": {
|
|
710
710
|
"type": "string",
|
|
711
|
-
"description": "Lease token
|
|
711
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
712
712
|
},
|
|
713
713
|
"target": {
|
|
714
714
|
"type": "string",
|
|
715
|
-
"description": "
|
|
715
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
716
716
|
},
|
|
717
717
|
"permissions": {
|
|
718
718
|
"type": "array",
|
|
719
719
|
"items": {
|
|
720
720
|
"type": "string"
|
|
721
721
|
},
|
|
722
|
-
"description": "CDP PermissionType values
|
|
722
|
+
"description": "CDP PermissionType values, e.g. geolocation|notifications|clipboardReadWrite."
|
|
723
723
|
},
|
|
724
724
|
"origin": {
|
|
725
725
|
"type": "string",
|
|
726
|
-
"description": "
|
|
726
|
+
"description": "Permission origin."
|
|
727
727
|
},
|
|
728
728
|
"reset": {
|
|
729
729
|
"type": "boolean",
|
|
730
|
-
"description": "
|
|
730
|
+
"description": "Reset permission grants."
|
|
731
731
|
}
|
|
732
732
|
},
|
|
733
733
|
"required": [],
|
|
@@ -736,25 +736,25 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
736
736
|
},
|
|
737
737
|
{
|
|
738
738
|
"name": "fill",
|
|
739
|
-
"description": "
|
|
739
|
+
"description": "Replace an element contents; provide exactly one of UID or selector.",
|
|
740
740
|
"inputSchema": {
|
|
741
741
|
"type": "object",
|
|
742
742
|
"properties": {
|
|
743
743
|
"lease": {
|
|
744
744
|
"type": "string",
|
|
745
|
-
"description": "Lease token
|
|
745
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
746
746
|
},
|
|
747
747
|
"target": {
|
|
748
748
|
"type": "string",
|
|
749
|
-
"description": "Page selector
|
|
749
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
750
750
|
},
|
|
751
751
|
"uid": {
|
|
752
752
|
"type": "number",
|
|
753
|
-
"description": "
|
|
753
|
+
"description": "Element backendDOMNodeId."
|
|
754
754
|
},
|
|
755
755
|
"selector": {
|
|
756
756
|
"type": "string",
|
|
757
|
-
"description": "CSS selector
|
|
757
|
+
"description": "CSS selector."
|
|
758
758
|
},
|
|
759
759
|
"value": {
|
|
760
760
|
"type": "string",
|
|
@@ -769,35 +769,35 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
769
769
|
},
|
|
770
770
|
{
|
|
771
771
|
"name": "fill_form",
|
|
772
|
-
"description": "
|
|
772
|
+
"description": "Fill multiple elements atomically; each field needs a UID or selector.",
|
|
773
773
|
"inputSchema": {
|
|
774
774
|
"type": "object",
|
|
775
775
|
"properties": {
|
|
776
776
|
"lease": {
|
|
777
777
|
"type": "string",
|
|
778
|
-
"description": "Lease token
|
|
778
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
779
779
|
},
|
|
780
780
|
"target": {
|
|
781
781
|
"type": "string",
|
|
782
|
-
"description": "Page selector
|
|
782
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
783
783
|
},
|
|
784
784
|
"fields": {
|
|
785
785
|
"type": "array",
|
|
786
|
-
"description": "
|
|
786
|
+
"description": "Form fields to fill.",
|
|
787
787
|
"items": {
|
|
788
788
|
"type": "object",
|
|
789
789
|
"properties": {
|
|
790
790
|
"uid": {
|
|
791
791
|
"type": "number",
|
|
792
|
-
"description": "
|
|
792
|
+
"description": "Element backendDOMNodeId."
|
|
793
793
|
},
|
|
794
794
|
"selector": {
|
|
795
795
|
"type": "string",
|
|
796
|
-
"description": "CSS selector
|
|
796
|
+
"description": "CSS selector."
|
|
797
797
|
},
|
|
798
798
|
"value": {
|
|
799
799
|
"type": "string",
|
|
800
|
-
"description": "
|
|
800
|
+
"description": "Text value to set; the field is cleared first, overwriting existing content."
|
|
801
801
|
}
|
|
802
802
|
},
|
|
803
803
|
"required": [
|
|
@@ -815,29 +815,29 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
815
815
|
},
|
|
816
816
|
{
|
|
817
817
|
"name": "type_text",
|
|
818
|
-
"description": "
|
|
818
|
+
"description": "Append text to an element; input is atomic and does not clear existing content.",
|
|
819
819
|
"inputSchema": {
|
|
820
820
|
"type": "object",
|
|
821
821
|
"properties": {
|
|
822
822
|
"lease": {
|
|
823
823
|
"type": "string",
|
|
824
|
-
"description": "Lease token
|
|
824
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
825
825
|
},
|
|
826
826
|
"target": {
|
|
827
827
|
"type": "string",
|
|
828
|
-
"description": "Page selector
|
|
828
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
829
829
|
},
|
|
830
830
|
"uid": {
|
|
831
831
|
"type": "number",
|
|
832
|
-
"description": "
|
|
832
|
+
"description": "Element backendDOMNodeId."
|
|
833
833
|
},
|
|
834
834
|
"selector": {
|
|
835
835
|
"type": "string",
|
|
836
|
-
"description": "CSS selector
|
|
836
|
+
"description": "CSS selector."
|
|
837
837
|
},
|
|
838
838
|
"text": {
|
|
839
839
|
"type": "string",
|
|
840
|
-
"description": "Text
|
|
840
|
+
"description": "Text substring."
|
|
841
841
|
}
|
|
842
842
|
},
|
|
843
843
|
"required": [
|
|
@@ -848,25 +848,25 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
848
848
|
},
|
|
849
849
|
{
|
|
850
850
|
"name": "press_key",
|
|
851
|
-
"description": "
|
|
851
|
+
"description": "Press one named key or printable character with modifiers; no F-keys or IME.",
|
|
852
852
|
"inputSchema": {
|
|
853
853
|
"type": "object",
|
|
854
854
|
"properties": {
|
|
855
855
|
"lease": {
|
|
856
856
|
"type": "string",
|
|
857
|
-
"description": "Lease token
|
|
857
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
858
858
|
},
|
|
859
859
|
"target": {
|
|
860
860
|
"type": "string",
|
|
861
|
-
"description": "Page selector
|
|
861
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
862
862
|
},
|
|
863
863
|
"key": {
|
|
864
864
|
"type": "string",
|
|
865
|
-
"description": "
|
|
865
|
+
"description": "Named key or printable character; e.g. Enter|Tab|Escape|ArrowDown|Backspace."
|
|
866
866
|
},
|
|
867
867
|
"modifiers": {
|
|
868
868
|
"type": "array",
|
|
869
|
-
"description": "Modifier
|
|
869
|
+
"description": "Modifier keys: Control|Ctrl|Shift|Alt|Meta|Cmd.",
|
|
870
870
|
"items": {
|
|
871
871
|
"type": "string"
|
|
872
872
|
}
|
|
@@ -880,32 +880,32 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
"name": "upload_file",
|
|
883
|
-
"description": "
|
|
883
|
+
"description": "Attach absolute file paths to a file input; provide an array.",
|
|
884
884
|
"inputSchema": {
|
|
885
885
|
"type": "object",
|
|
886
886
|
"properties": {
|
|
887
887
|
"lease": {
|
|
888
888
|
"type": "string",
|
|
889
|
-
"description": "Lease token
|
|
889
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
890
890
|
},
|
|
891
891
|
"target": {
|
|
892
892
|
"type": "string",
|
|
893
|
-
"description": "Page selector
|
|
893
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
894
894
|
},
|
|
895
895
|
"uid": {
|
|
896
896
|
"type": "number",
|
|
897
|
-
"description": "
|
|
897
|
+
"description": "Element backendDOMNodeId."
|
|
898
898
|
},
|
|
899
899
|
"selector": {
|
|
900
900
|
"type": "string",
|
|
901
|
-
"description": "CSS selector
|
|
901
|
+
"description": "CSS selector."
|
|
902
902
|
},
|
|
903
903
|
"files": {
|
|
904
904
|
"type": "array",
|
|
905
905
|
"items": {
|
|
906
906
|
"type": "string"
|
|
907
907
|
},
|
|
908
|
-
"description": "Absolute
|
|
908
|
+
"description": "Absolute file paths."
|
|
909
909
|
}
|
|
910
910
|
},
|
|
911
911
|
"required": [
|
|
@@ -916,17 +916,17 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
916
916
|
},
|
|
917
917
|
{
|
|
918
918
|
"name": "take_screenshot",
|
|
919
|
-
"description": "
|
|
919
|
+
"description": "Capture a viewport, full page, or element to PNG/JPEG; oversized captures may be tiled.",
|
|
920
920
|
"inputSchema": {
|
|
921
921
|
"type": "object",
|
|
922
922
|
"properties": {
|
|
923
923
|
"lease": {
|
|
924
924
|
"type": "string",
|
|
925
|
-
"description": "Lease token
|
|
925
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
926
926
|
},
|
|
927
927
|
"target": {
|
|
928
928
|
"type": "string",
|
|
929
|
-
"description": "Page selector
|
|
929
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
930
930
|
},
|
|
931
931
|
"format": {
|
|
932
932
|
"type": "string",
|
|
@@ -934,47 +934,47 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
934
934
|
"png",
|
|
935
935
|
"jpeg"
|
|
936
936
|
],
|
|
937
|
-
"description": "Image format
|
|
937
|
+
"description": "Image/frame format."
|
|
938
938
|
},
|
|
939
939
|
"quality": {
|
|
940
940
|
"type": "number",
|
|
941
|
-
"description": "JPEG quality 0-100
|
|
941
|
+
"description": "JPEG quality 0-100."
|
|
942
942
|
},
|
|
943
943
|
"fullPage": {
|
|
944
944
|
"type": "boolean",
|
|
945
|
-
"description": "Capture
|
|
945
|
+
"description": "Capture full scrollable page."
|
|
946
946
|
},
|
|
947
947
|
"scale": {
|
|
948
948
|
"type": "number",
|
|
949
|
-
"description": "Output
|
|
949
|
+
"description": "Output scale (0<scale<=8)."
|
|
950
950
|
},
|
|
951
951
|
"renderWidth": {
|
|
952
952
|
"type": "number",
|
|
953
|
-
"description": "
|
|
953
|
+
"description": "Rendered viewport width."
|
|
954
954
|
},
|
|
955
955
|
"renderHeight": {
|
|
956
956
|
"type": "number",
|
|
957
|
-
"description": "
|
|
957
|
+
"description": "Rendered viewport height."
|
|
958
958
|
},
|
|
959
959
|
"tile": {
|
|
960
960
|
"type": "boolean",
|
|
961
|
-
"description": "
|
|
961
|
+
"description": "Vertical-band stitching."
|
|
962
962
|
},
|
|
963
963
|
"uid": {
|
|
964
964
|
"type": "number",
|
|
965
|
-
"description": "Element
|
|
965
|
+
"description": "Element backendDOMNodeId."
|
|
966
966
|
},
|
|
967
967
|
"selector": {
|
|
968
968
|
"type": "string",
|
|
969
|
-
"description": "CSS selector
|
|
969
|
+
"description": "CSS selector."
|
|
970
970
|
},
|
|
971
971
|
"savePath": {
|
|
972
972
|
"type": "string",
|
|
973
|
-
"description": "
|
|
973
|
+
"description": "Output file path."
|
|
974
974
|
},
|
|
975
975
|
"returnBase64": {
|
|
976
976
|
"type": "boolean",
|
|
977
|
-
"description": "
|
|
977
|
+
"description": "Return base64 bytes."
|
|
978
978
|
}
|
|
979
979
|
},
|
|
980
980
|
"required": [],
|
|
@@ -983,49 +983,49 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
983
983
|
},
|
|
984
984
|
{
|
|
985
985
|
"name": "emulate",
|
|
986
|
-
"description": "
|
|
986
|
+
"description": "Apply browser emulation overrides; width and height must be paired.",
|
|
987
987
|
"inputSchema": {
|
|
988
988
|
"type": "object",
|
|
989
989
|
"properties": {
|
|
990
990
|
"lease": {
|
|
991
991
|
"type": "string",
|
|
992
|
-
"description": "Lease token
|
|
992
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
993
993
|
},
|
|
994
994
|
"target": {
|
|
995
995
|
"type": "string",
|
|
996
|
-
"description": "Page selector
|
|
996
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
997
997
|
},
|
|
998
998
|
"width": {
|
|
999
999
|
"type": "number",
|
|
1000
|
-
"description": "
|
|
1000
|
+
"description": "Viewport width; pair with height."
|
|
1001
1001
|
},
|
|
1002
1002
|
"height": {
|
|
1003
1003
|
"type": "number",
|
|
1004
|
-
"description": "
|
|
1004
|
+
"description": "Viewport height; pair with width."
|
|
1005
1005
|
},
|
|
1006
1006
|
"deviceScaleFactor": {
|
|
1007
1007
|
"type": "number",
|
|
1008
|
-
"description": "Device pixel ratio
|
|
1008
|
+
"description": "Device pixel ratio."
|
|
1009
1009
|
},
|
|
1010
1010
|
"mobile": {
|
|
1011
1011
|
"type": "boolean",
|
|
1012
|
-
"description": "
|
|
1012
|
+
"description": "Mobile emulation."
|
|
1013
1013
|
},
|
|
1014
1014
|
"userAgent": {
|
|
1015
1015
|
"type": "string",
|
|
1016
|
-
"description": "User-Agent
|
|
1016
|
+
"description": "User-Agent override."
|
|
1017
1017
|
},
|
|
1018
1018
|
"cpuThrottlingRate": {
|
|
1019
1019
|
"type": "number",
|
|
1020
|
-
"description": "CPU throttling
|
|
1020
|
+
"description": "CPU throttling rate (>=1)."
|
|
1021
1021
|
},
|
|
1022
1022
|
"media": {
|
|
1023
1023
|
"type": "string",
|
|
1024
|
-
"description": "
|
|
1024
|
+
"description": "CSS media: screen|print|blank."
|
|
1025
1025
|
},
|
|
1026
1026
|
"mediaFeatures": {
|
|
1027
1027
|
"type": "array",
|
|
1028
|
-
"description": "
|
|
1028
|
+
"description": "CSS media feature overrides.",
|
|
1029
1029
|
"items": {
|
|
1030
1030
|
"type": "object",
|
|
1031
1031
|
"properties": {
|
|
@@ -1035,7 +1035,7 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1035
1035
|
},
|
|
1036
1036
|
"value": {
|
|
1037
1037
|
"type": "string",
|
|
1038
|
-
"description": "
|
|
1038
|
+
"description": "Feature value, e.g. 'dark'."
|
|
1039
1039
|
}
|
|
1040
1040
|
},
|
|
1041
1041
|
"required": [
|
|
@@ -1047,34 +1047,34 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1047
1047
|
},
|
|
1048
1048
|
"networkConditions": {
|
|
1049
1049
|
"type": "object",
|
|
1050
|
-
"description": "Network overrides
|
|
1050
|
+
"description": "Network condition overrides.",
|
|
1051
1051
|
"properties": {
|
|
1052
1052
|
"offline": {
|
|
1053
1053
|
"type": "boolean",
|
|
1054
|
-
"description": "
|
|
1054
|
+
"description": "Simulate offline."
|
|
1055
1055
|
},
|
|
1056
1056
|
"latency": {
|
|
1057
1057
|
"type": "number",
|
|
1058
|
-
"description": "
|
|
1058
|
+
"description": "Network latency in milliseconds."
|
|
1059
1059
|
},
|
|
1060
1060
|
"downloadThroughput": {
|
|
1061
1061
|
"type": "number",
|
|
1062
|
-
"description": "
|
|
1062
|
+
"description": "Download throughput; -1 unlimited."
|
|
1063
1063
|
},
|
|
1064
1064
|
"uploadThroughput": {
|
|
1065
1065
|
"type": "number",
|
|
1066
|
-
"description": "
|
|
1066
|
+
"description": "Upload throughput; -1 unlimited."
|
|
1067
1067
|
},
|
|
1068
1068
|
"connectionType": {
|
|
1069
1069
|
"type": "string",
|
|
1070
|
-
"description": "Connection
|
|
1070
|
+
"description": "Connection: none|cellular2g|cellular3g|cellular4g|bluetooth|ethernet|wifi|wimax|other."
|
|
1071
1071
|
}
|
|
1072
1072
|
},
|
|
1073
1073
|
"additionalProperties": false
|
|
1074
1074
|
},
|
|
1075
1075
|
"clearOverrides": {
|
|
1076
1076
|
"type": "boolean",
|
|
1077
|
-
"description": "
|
|
1077
|
+
"description": "Clear all emulation overrides."
|
|
1078
1078
|
}
|
|
1079
1079
|
},
|
|
1080
1080
|
"required": [],
|
|
@@ -1083,33 +1083,33 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1083
1083
|
},
|
|
1084
1084
|
{
|
|
1085
1085
|
"name": "resize_page",
|
|
1086
|
-
"description": "
|
|
1086
|
+
"description": "Set and verify page viewport metrics; width and height are required.",
|
|
1087
1087
|
"inputSchema": {
|
|
1088
1088
|
"type": "object",
|
|
1089
1089
|
"properties": {
|
|
1090
1090
|
"lease": {
|
|
1091
1091
|
"type": "string",
|
|
1092
|
-
"description": "Lease token
|
|
1092
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1093
1093
|
},
|
|
1094
1094
|
"target": {
|
|
1095
1095
|
"type": "string",
|
|
1096
|
-
"description": "Page selector
|
|
1096
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1097
1097
|
},
|
|
1098
1098
|
"width": {
|
|
1099
1099
|
"type": "number",
|
|
1100
|
-
"description": "Viewport width
|
|
1100
|
+
"description": "Viewport width; pair with height."
|
|
1101
1101
|
},
|
|
1102
1102
|
"height": {
|
|
1103
1103
|
"type": "number",
|
|
1104
|
-
"description": "Viewport height
|
|
1104
|
+
"description": "Viewport height; pair with width."
|
|
1105
1105
|
},
|
|
1106
1106
|
"deviceScaleFactor": {
|
|
1107
1107
|
"type": "number",
|
|
1108
|
-
"description": "Device pixel ratio
|
|
1108
|
+
"description": "Device pixel ratio."
|
|
1109
1109
|
},
|
|
1110
1110
|
"mobile": {
|
|
1111
1111
|
"type": "boolean",
|
|
1112
|
-
"description": "
|
|
1112
|
+
"description": "Mobile emulation."
|
|
1113
1113
|
}
|
|
1114
1114
|
},
|
|
1115
1115
|
"required": [
|
|
@@ -1121,33 +1121,33 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1121
1121
|
},
|
|
1122
1122
|
{
|
|
1123
1123
|
"name": "handle_dialog",
|
|
1124
|
-
"description": "
|
|
1124
|
+
"description": "Handle the next JavaScript dialog; autoMs switches to timed multi-dialog mode.",
|
|
1125
1125
|
"inputSchema": {
|
|
1126
1126
|
"type": "object",
|
|
1127
1127
|
"properties": {
|
|
1128
1128
|
"lease": {
|
|
1129
1129
|
"type": "string",
|
|
1130
|
-
"description": "Lease token
|
|
1130
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1131
1131
|
},
|
|
1132
1132
|
"target": {
|
|
1133
1133
|
"type": "string",
|
|
1134
|
-
"description": "Page selector
|
|
1134
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1135
1135
|
},
|
|
1136
1136
|
"accept": {
|
|
1137
1137
|
"type": "boolean",
|
|
1138
|
-
"description": "
|
|
1138
|
+
"description": "Accept or dismiss dialog."
|
|
1139
1139
|
},
|
|
1140
1140
|
"promptText": {
|
|
1141
1141
|
"type": "string",
|
|
1142
|
-
"description": "
|
|
1142
|
+
"description": "Prompt response text."
|
|
1143
1143
|
},
|
|
1144
1144
|
"timeoutMs": {
|
|
1145
1145
|
"type": "number",
|
|
1146
|
-
"description": "
|
|
1146
|
+
"description": "Timeout in milliseconds."
|
|
1147
1147
|
},
|
|
1148
1148
|
"autoMs": {
|
|
1149
1149
|
"type": "number",
|
|
1150
|
-
"description": "
|
|
1150
|
+
"description": "Multi-dialog window in milliseconds."
|
|
1151
1151
|
}
|
|
1152
1152
|
},
|
|
1153
1153
|
"required": [
|
|
@@ -1158,29 +1158,29 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1158
1158
|
},
|
|
1159
1159
|
{
|
|
1160
1160
|
"name": "list_console_messages",
|
|
1161
|
-
"description": "Read
|
|
1161
|
+
"description": "Read or recapture console messages for a page or worker; worker capture is Chrome-only.",
|
|
1162
1162
|
"inputSchema": {
|
|
1163
1163
|
"type": "object",
|
|
1164
1164
|
"properties": {
|
|
1165
1165
|
"lease": {
|
|
1166
1166
|
"type": "string",
|
|
1167
|
-
"description": "Lease token
|
|
1167
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1168
1168
|
},
|
|
1169
1169
|
"target": {
|
|
1170
1170
|
"type": "string",
|
|
1171
|
-
"description": "Page selector
|
|
1171
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1172
1172
|
},
|
|
1173
1173
|
"reload": {
|
|
1174
1174
|
"type": "boolean",
|
|
1175
|
-
"description": "
|
|
1175
|
+
"description": "Reload before capture."
|
|
1176
1176
|
},
|
|
1177
1177
|
"durationMs": {
|
|
1178
1178
|
"type": "number",
|
|
1179
|
-
"description": "Capture
|
|
1179
|
+
"description": "Capture duration in milliseconds."
|
|
1180
1180
|
},
|
|
1181
1181
|
"wake": {
|
|
1182
1182
|
"type": "boolean",
|
|
1183
|
-
"description": "
|
|
1183
|
+
"description": "Wake worker before capture."
|
|
1184
1184
|
}
|
|
1185
1185
|
},
|
|
1186
1186
|
"required": [],
|
|
@@ -1189,21 +1189,21 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1189
1189
|
},
|
|
1190
1190
|
{
|
|
1191
1191
|
"name": "get_console_message",
|
|
1192
|
-
"description": "Return one console entry by zero-based index from the
|
|
1192
|
+
"description": "Return one console entry by zero-based index from the existing buffer.",
|
|
1193
1193
|
"inputSchema": {
|
|
1194
1194
|
"type": "object",
|
|
1195
1195
|
"properties": {
|
|
1196
1196
|
"lease": {
|
|
1197
1197
|
"type": "string",
|
|
1198
|
-
"description": "Lease token
|
|
1198
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1199
1199
|
},
|
|
1200
1200
|
"target": {
|
|
1201
1201
|
"type": "string",
|
|
1202
|
-
"description": "Page selector
|
|
1202
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1203
1203
|
},
|
|
1204
1204
|
"index": {
|
|
1205
1205
|
"type": "number",
|
|
1206
|
-
"description": "Zero-based index
|
|
1206
|
+
"description": "Zero-based entry index."
|
|
1207
1207
|
}
|
|
1208
1208
|
},
|
|
1209
1209
|
"required": [],
|
|
@@ -1212,33 +1212,33 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1212
1212
|
},
|
|
1213
1213
|
{
|
|
1214
1214
|
"name": "list_network_requests",
|
|
1215
|
-
"description": "
|
|
1215
|
+
"description": "Read or recapture correlated network requests; worker capture is Chrome-only.",
|
|
1216
1216
|
"inputSchema": {
|
|
1217
1217
|
"type": "object",
|
|
1218
1218
|
"properties": {
|
|
1219
1219
|
"lease": {
|
|
1220
1220
|
"type": "string",
|
|
1221
|
-
"description": "Lease token
|
|
1221
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1222
1222
|
},
|
|
1223
1223
|
"target": {
|
|
1224
1224
|
"type": "string",
|
|
1225
|
-
"description": "Page selector
|
|
1225
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1226
1226
|
},
|
|
1227
1227
|
"reload": {
|
|
1228
1228
|
"type": "boolean",
|
|
1229
|
-
"description": "
|
|
1229
|
+
"description": "Reload before capture."
|
|
1230
1230
|
},
|
|
1231
1231
|
"durationMs": {
|
|
1232
1232
|
"type": "number",
|
|
1233
|
-
"description": "Capture
|
|
1233
|
+
"description": "Capture duration in milliseconds."
|
|
1234
1234
|
},
|
|
1235
1235
|
"filterUrl": {
|
|
1236
1236
|
"type": "string",
|
|
1237
|
-
"description": "
|
|
1237
|
+
"description": "URL substring filter."
|
|
1238
1238
|
},
|
|
1239
1239
|
"wake": {
|
|
1240
1240
|
"type": "boolean",
|
|
1241
|
-
"description": "
|
|
1241
|
+
"description": "Wake worker before capture."
|
|
1242
1242
|
}
|
|
1243
1243
|
},
|
|
1244
1244
|
"required": [],
|
|
@@ -1247,37 +1247,37 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1247
1247
|
},
|
|
1248
1248
|
{
|
|
1249
1249
|
"name": "get_network_request",
|
|
1250
|
-
"description": "Return
|
|
1250
|
+
"description": "Return a network request by ID or URL; body capture requires URL.",
|
|
1251
1251
|
"inputSchema": {
|
|
1252
1252
|
"type": "object",
|
|
1253
1253
|
"properties": {
|
|
1254
1254
|
"lease": {
|
|
1255
1255
|
"type": "string",
|
|
1256
|
-
"description": "Lease token
|
|
1256
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1257
1257
|
},
|
|
1258
1258
|
"target": {
|
|
1259
1259
|
"type": "string",
|
|
1260
|
-
"description": "Page selector
|
|
1260
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1261
1261
|
},
|
|
1262
1262
|
"requestId": {
|
|
1263
1263
|
"type": "string",
|
|
1264
|
-
"description": "
|
|
1264
|
+
"description": "Exact request ID."
|
|
1265
1265
|
},
|
|
1266
1266
|
"url": {
|
|
1267
1267
|
"type": "string",
|
|
1268
|
-
"description": "
|
|
1268
|
+
"description": "URL value."
|
|
1269
1269
|
},
|
|
1270
1270
|
"includeBody": {
|
|
1271
1271
|
"type": "boolean",
|
|
1272
|
-
"description": "
|
|
1272
|
+
"description": "Include response body."
|
|
1273
1273
|
},
|
|
1274
1274
|
"durationMs": {
|
|
1275
1275
|
"type": "number",
|
|
1276
|
-
"description": "Capture
|
|
1276
|
+
"description": "Capture duration in milliseconds."
|
|
1277
1277
|
},
|
|
1278
1278
|
"wake": {
|
|
1279
1279
|
"type": "boolean",
|
|
1280
|
-
"description": "
|
|
1280
|
+
"description": "Wake worker before capture."
|
|
1281
1281
|
}
|
|
1282
1282
|
},
|
|
1283
1283
|
"required": [],
|
|
@@ -1286,24 +1286,24 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1286
1286
|
},
|
|
1287
1287
|
{
|
|
1288
1288
|
"name": "performance_start_trace",
|
|
1289
|
-
"description": "
|
|
1289
|
+
"description": "Start an in-process trace; stop it from the same process.",
|
|
1290
1290
|
"inputSchema": {
|
|
1291
1291
|
"type": "object",
|
|
1292
1292
|
"properties": {
|
|
1293
1293
|
"lease": {
|
|
1294
1294
|
"type": "string",
|
|
1295
|
-
"description": "Lease token
|
|
1295
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1296
1296
|
},
|
|
1297
1297
|
"target": {
|
|
1298
1298
|
"type": "string",
|
|
1299
|
-
"description": "Page selector
|
|
1299
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1300
1300
|
},
|
|
1301
1301
|
"categories": {
|
|
1302
1302
|
"type": "array",
|
|
1303
1303
|
"items": {
|
|
1304
1304
|
"type": "string"
|
|
1305
1305
|
},
|
|
1306
|
-
"description": "Trace categories
|
|
1306
|
+
"description": "Trace categories."
|
|
1307
1307
|
}
|
|
1308
1308
|
},
|
|
1309
1309
|
"required": [],
|
|
@@ -1312,17 +1312,17 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1312
1312
|
},
|
|
1313
1313
|
{
|
|
1314
1314
|
"name": "performance_stop_trace",
|
|
1315
|
-
"description": "
|
|
1315
|
+
"description": "Stop the in-process trace and write JSON; a live trace is required.",
|
|
1316
1316
|
"inputSchema": {
|
|
1317
1317
|
"type": "object",
|
|
1318
1318
|
"properties": {
|
|
1319
1319
|
"lease": {
|
|
1320
1320
|
"type": "string",
|
|
1321
|
-
"description": "Lease token
|
|
1321
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1322
1322
|
},
|
|
1323
1323
|
"target": {
|
|
1324
1324
|
"type": "string",
|
|
1325
|
-
"description": "Page selector
|
|
1325
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1326
1326
|
}
|
|
1327
1327
|
},
|
|
1328
1328
|
"required": [],
|
|
@@ -1331,17 +1331,17 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1331
1331
|
},
|
|
1332
1332
|
{
|
|
1333
1333
|
"name": "performance_analyze_insight",
|
|
1334
|
-
"description": "
|
|
1334
|
+
"description": "Analyze a trace JSON file for key performance metrics; tracePath is required.",
|
|
1335
1335
|
"inputSchema": {
|
|
1336
1336
|
"type": "object",
|
|
1337
1337
|
"properties": {
|
|
1338
1338
|
"lease": {
|
|
1339
1339
|
"type": "string",
|
|
1340
|
-
"description": "Lease token
|
|
1340
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1341
1341
|
},
|
|
1342
1342
|
"tracePath": {
|
|
1343
1343
|
"type": "string",
|
|
1344
|
-
"description": "
|
|
1344
|
+
"description": "Trace JSON file path."
|
|
1345
1345
|
}
|
|
1346
1346
|
},
|
|
1347
1347
|
"required": [],
|
|
@@ -1350,36 +1350,36 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1350
1350
|
},
|
|
1351
1351
|
{
|
|
1352
1352
|
"name": "performance_trace",
|
|
1353
|
-
"description": "
|
|
1353
|
+
"description": "Run a one-shot trace with optional navigation and write JSON; durationMs controls capture time.",
|
|
1354
1354
|
"inputSchema": {
|
|
1355
1355
|
"type": "object",
|
|
1356
1356
|
"properties": {
|
|
1357
1357
|
"lease": {
|
|
1358
1358
|
"type": "string",
|
|
1359
|
-
"description": "Lease token
|
|
1359
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1360
1360
|
},
|
|
1361
1361
|
"target": {
|
|
1362
1362
|
"type": "string",
|
|
1363
|
-
"description": "Page selector
|
|
1363
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1364
1364
|
},
|
|
1365
1365
|
"durationMs": {
|
|
1366
1366
|
"type": "number",
|
|
1367
|
-
"description": "
|
|
1367
|
+
"description": "Capture duration in milliseconds."
|
|
1368
1368
|
},
|
|
1369
1369
|
"reload": {
|
|
1370
1370
|
"type": "boolean",
|
|
1371
|
-
"description": "Reload
|
|
1371
|
+
"description": "Reload before capture."
|
|
1372
1372
|
},
|
|
1373
1373
|
"navigateTo": {
|
|
1374
1374
|
"type": "string",
|
|
1375
|
-
"description": "
|
|
1375
|
+
"description": "Navigation URL."
|
|
1376
1376
|
},
|
|
1377
1377
|
"categories": {
|
|
1378
1378
|
"type": "array",
|
|
1379
1379
|
"items": {
|
|
1380
1380
|
"type": "string"
|
|
1381
1381
|
},
|
|
1382
|
-
"description": "Trace categories
|
|
1382
|
+
"description": "Trace categories."
|
|
1383
1383
|
}
|
|
1384
1384
|
},
|
|
1385
1385
|
"required": [],
|
|
@@ -1388,17 +1388,17 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1388
1388
|
},
|
|
1389
1389
|
{
|
|
1390
1390
|
"name": "start_screen_recording",
|
|
1391
|
-
"description": "
|
|
1391
|
+
"description": "Start a tab screen recording; stop it from the same process.",
|
|
1392
1392
|
"inputSchema": {
|
|
1393
1393
|
"type": "object",
|
|
1394
1394
|
"properties": {
|
|
1395
1395
|
"lease": {
|
|
1396
1396
|
"type": "string",
|
|
1397
|
-
"description": "Lease token
|
|
1397
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1398
1398
|
},
|
|
1399
1399
|
"target": {
|
|
1400
1400
|
"type": "string",
|
|
1401
|
-
"description": "Page selector
|
|
1401
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1402
1402
|
},
|
|
1403
1403
|
"format": {
|
|
1404
1404
|
"type": "string",
|
|
@@ -1406,27 +1406,27 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1406
1406
|
"jpeg",
|
|
1407
1407
|
"png"
|
|
1408
1408
|
],
|
|
1409
|
-
"description": "
|
|
1409
|
+
"description": "Image/frame format."
|
|
1410
1410
|
},
|
|
1411
1411
|
"quality": {
|
|
1412
1412
|
"type": "number",
|
|
1413
|
-
"description": "JPEG
|
|
1413
|
+
"description": "JPEG quality 0-100."
|
|
1414
1414
|
},
|
|
1415
1415
|
"maxWidth": {
|
|
1416
1416
|
"type": "number",
|
|
1417
|
-
"description": "
|
|
1417
|
+
"description": "Maximum frame width."
|
|
1418
1418
|
},
|
|
1419
1419
|
"maxHeight": {
|
|
1420
1420
|
"type": "number",
|
|
1421
|
-
"description": "
|
|
1421
|
+
"description": "Maximum frame height."
|
|
1422
1422
|
},
|
|
1423
1423
|
"everyNthFrame": {
|
|
1424
1424
|
"type": "number",
|
|
1425
|
-
"description": "Capture
|
|
1425
|
+
"description": "Capture every Nth frame."
|
|
1426
1426
|
},
|
|
1427
1427
|
"bringToFront": {
|
|
1428
1428
|
"type": "boolean",
|
|
1429
|
-
"description": "Activate
|
|
1429
|
+
"description": "Activate tab before recording."
|
|
1430
1430
|
}
|
|
1431
1431
|
},
|
|
1432
1432
|
"required": [],
|
|
@@ -1435,21 +1435,21 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1435
1435
|
},
|
|
1436
1436
|
{
|
|
1437
1437
|
"name": "stop_screen_recording",
|
|
1438
|
-
"description": "
|
|
1438
|
+
"description": "Stop a screen recording and encode MP4; target is required when multiple recordings exist.",
|
|
1439
1439
|
"inputSchema": {
|
|
1440
1440
|
"type": "object",
|
|
1441
1441
|
"properties": {
|
|
1442
1442
|
"lease": {
|
|
1443
1443
|
"type": "string",
|
|
1444
|
-
"description": "Lease token
|
|
1444
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1445
1445
|
},
|
|
1446
1446
|
"target": {
|
|
1447
1447
|
"type": "string",
|
|
1448
|
-
"description": "
|
|
1448
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1449
1449
|
},
|
|
1450
1450
|
"savePath": {
|
|
1451
1451
|
"type": "string",
|
|
1452
|
-
"description": "
|
|
1452
|
+
"description": "Output file path."
|
|
1453
1453
|
}
|
|
1454
1454
|
},
|
|
1455
1455
|
"required": [],
|
|
@@ -1458,21 +1458,21 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1458
1458
|
},
|
|
1459
1459
|
{
|
|
1460
1460
|
"name": "take_heapsnapshot",
|
|
1461
|
-
"description": "
|
|
1461
|
+
"description": "Capture a V8 heap snapshot to JSON; the snapshot is not parsed.",
|
|
1462
1462
|
"inputSchema": {
|
|
1463
1463
|
"type": "object",
|
|
1464
1464
|
"properties": {
|
|
1465
1465
|
"lease": {
|
|
1466
1466
|
"type": "string",
|
|
1467
|
-
"description": "Lease token
|
|
1467
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1468
1468
|
},
|
|
1469
1469
|
"target": {
|
|
1470
1470
|
"type": "string",
|
|
1471
|
-
"description": "Page selector
|
|
1471
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1472
1472
|
},
|
|
1473
1473
|
"savePath": {
|
|
1474
1474
|
"type": "string",
|
|
1475
|
-
"description": "
|
|
1475
|
+
"description": "Output file path."
|
|
1476
1476
|
}
|
|
1477
1477
|
},
|
|
1478
1478
|
"required": [],
|
|
@@ -1481,28 +1481,28 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1481
1481
|
},
|
|
1482
1482
|
{
|
|
1483
1483
|
"name": "lighthouse_audit",
|
|
1484
|
-
"description": "
|
|
1484
|
+
"description": "Run Lighthouse against a URL in its own tab; it does not audit a user tab.",
|
|
1485
1485
|
"inputSchema": {
|
|
1486
1486
|
"type": "object",
|
|
1487
1487
|
"properties": {
|
|
1488
1488
|
"lease": {
|
|
1489
1489
|
"type": "string",
|
|
1490
|
-
"description": "Lease token
|
|
1490
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1491
1491
|
},
|
|
1492
1492
|
"url": {
|
|
1493
1493
|
"type": "string",
|
|
1494
|
-
"description": "
|
|
1494
|
+
"description": "URL value."
|
|
1495
1495
|
},
|
|
1496
1496
|
"categories": {
|
|
1497
1497
|
"type": "array",
|
|
1498
1498
|
"items": {
|
|
1499
1499
|
"type": "string"
|
|
1500
1500
|
},
|
|
1501
|
-
"description": "Lighthouse categories to run (--only-categories).
|
|
1501
|
+
"description": "Lighthouse categories to run (--only-categories)."
|
|
1502
1502
|
},
|
|
1503
1503
|
"savePath": {
|
|
1504
1504
|
"type": "string",
|
|
1505
|
-
"description": "
|
|
1505
|
+
"description": "Output file path."
|
|
1506
1506
|
},
|
|
1507
1507
|
"formFactor": {
|
|
1508
1508
|
"type": "string",
|
|
@@ -1510,11 +1510,11 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1510
1510
|
"desktop",
|
|
1511
1511
|
"mobile"
|
|
1512
1512
|
],
|
|
1513
|
-
"description": "
|
|
1513
|
+
"description": "Lighthouse form factor."
|
|
1514
1514
|
},
|
|
1515
1515
|
"timeoutMs": {
|
|
1516
1516
|
"type": "number",
|
|
1517
|
-
"description": "
|
|
1517
|
+
"description": "Timeout in milliseconds."
|
|
1518
1518
|
}
|
|
1519
1519
|
},
|
|
1520
1520
|
"required": [
|
|
@@ -1525,21 +1525,21 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1525
1525
|
},
|
|
1526
1526
|
{
|
|
1527
1527
|
"name": "mock_request",
|
|
1528
|
-
"description": "Register a
|
|
1528
|
+
"description": "Register a persistent request mock; urlPattern is required.",
|
|
1529
1529
|
"inputSchema": {
|
|
1530
1530
|
"type": "object",
|
|
1531
1531
|
"properties": {
|
|
1532
1532
|
"lease": {
|
|
1533
1533
|
"type": "string",
|
|
1534
|
-
"description": "Lease token
|
|
1534
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1535
1535
|
},
|
|
1536
1536
|
"target": {
|
|
1537
1537
|
"type": "string",
|
|
1538
|
-
"description": "
|
|
1538
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1539
1539
|
},
|
|
1540
1540
|
"urlPattern": {
|
|
1541
1541
|
"type": "string",
|
|
1542
|
-
"description": "
|
|
1542
|
+
"description": "URL glob (*, ?; \\ escapes)."
|
|
1543
1543
|
},
|
|
1544
1544
|
"action": {
|
|
1545
1545
|
"type": "string",
|
|
@@ -1552,39 +1552,39 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1552
1552
|
},
|
|
1553
1553
|
"status": {
|
|
1554
1554
|
"type": "number",
|
|
1555
|
-
"description": "
|
|
1555
|
+
"description": "Mock HTTP status."
|
|
1556
1556
|
},
|
|
1557
1557
|
"body": {
|
|
1558
1558
|
"type": "string",
|
|
1559
|
-
"description": "
|
|
1559
|
+
"description": "Mock response body."
|
|
1560
1560
|
},
|
|
1561
1561
|
"contentType": {
|
|
1562
1562
|
"type": "string",
|
|
1563
|
-
"description": "
|
|
1563
|
+
"description": "Response Content-Type."
|
|
1564
1564
|
},
|
|
1565
1565
|
"headers": {
|
|
1566
1566
|
"type": "object",
|
|
1567
|
-
"description": "
|
|
1567
|
+
"description": "Extra response headers."
|
|
1568
1568
|
},
|
|
1569
1569
|
"errorReason": {
|
|
1570
1570
|
"type": "string",
|
|
1571
|
-
"description": "
|
|
1571
|
+
"description": "CDP Network.ErrorReason, e.g. Failed|BlockedByClient|ConnectionRefused|TimedOut."
|
|
1572
1572
|
},
|
|
1573
1573
|
"method": {
|
|
1574
1574
|
"type": "string",
|
|
1575
|
-
"description": "
|
|
1575
|
+
"description": "HTTP method."
|
|
1576
1576
|
},
|
|
1577
1577
|
"delayMs": {
|
|
1578
1578
|
"type": "number",
|
|
1579
|
-
"description": "
|
|
1579
|
+
"description": "Artificial delay in milliseconds."
|
|
1580
1580
|
},
|
|
1581
1581
|
"failRate": {
|
|
1582
1582
|
"type": "number",
|
|
1583
|
-
"description": "
|
|
1583
|
+
"description": "Failure probability 0..1."
|
|
1584
1584
|
},
|
|
1585
1585
|
"reload": {
|
|
1586
1586
|
"type": "boolean",
|
|
1587
|
-
"description": "Reload
|
|
1587
|
+
"description": "Reload before capture."
|
|
1588
1588
|
}
|
|
1589
1589
|
},
|
|
1590
1590
|
"required": [
|
|
@@ -1595,13 +1595,13 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1595
1595
|
},
|
|
1596
1596
|
{
|
|
1597
1597
|
"name": "list_mocks",
|
|
1598
|
-
"description": "List active
|
|
1598
|
+
"description": "List active request-mocking sessions and hit counts.",
|
|
1599
1599
|
"inputSchema": {
|
|
1600
1600
|
"type": "object",
|
|
1601
1601
|
"properties": {
|
|
1602
1602
|
"lease": {
|
|
1603
1603
|
"type": "string",
|
|
1604
|
-
"description": "Lease token
|
|
1604
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1605
1605
|
},
|
|
1606
1606
|
"target": {
|
|
1607
1607
|
"type": "string",
|
|
@@ -1614,17 +1614,17 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1614
1614
|
},
|
|
1615
1615
|
{
|
|
1616
1616
|
"name": "clear_mocks",
|
|
1617
|
-
"description": "
|
|
1617
|
+
"description": "Clear the selected or all request-mocking sessions.",
|
|
1618
1618
|
"inputSchema": {
|
|
1619
1619
|
"type": "object",
|
|
1620
1620
|
"properties": {
|
|
1621
1621
|
"lease": {
|
|
1622
1622
|
"type": "string",
|
|
1623
|
-
"description": "Lease token
|
|
1623
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1624
1624
|
},
|
|
1625
1625
|
"target": {
|
|
1626
1626
|
"type": "string",
|
|
1627
|
-
"description": "
|
|
1627
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1628
1628
|
},
|
|
1629
1629
|
"all": {
|
|
1630
1630
|
"type": "boolean",
|
|
@@ -1637,29 +1637,29 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1637
1637
|
},
|
|
1638
1638
|
{
|
|
1639
1639
|
"name": "claim_page",
|
|
1640
|
-
"description": "
|
|
1640
|
+
"description": "Claim an existing tab or open a fresh one; CLI use is refused.",
|
|
1641
1641
|
"inputSchema": {
|
|
1642
1642
|
"type": "object",
|
|
1643
1643
|
"properties": {
|
|
1644
1644
|
"target": {
|
|
1645
1645
|
"type": "string",
|
|
1646
|
-
"description": "
|
|
1646
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1647
1647
|
},
|
|
1648
1648
|
"targetId": {
|
|
1649
1649
|
"type": "string",
|
|
1650
|
-
"description": "Exact target
|
|
1650
|
+
"description": "Exact target ID."
|
|
1651
1651
|
},
|
|
1652
1652
|
"url": {
|
|
1653
1653
|
"type": "string",
|
|
1654
|
-
"description": "
|
|
1654
|
+
"description": "URL value."
|
|
1655
1655
|
},
|
|
1656
1656
|
"label": {
|
|
1657
1657
|
"type": "string",
|
|
1658
|
-
"description": "Agent
|
|
1658
|
+
"description": "Agent lease label."
|
|
1659
1659
|
},
|
|
1660
1660
|
"ttlMs": {
|
|
1661
1661
|
"type": "number",
|
|
1662
|
-
"description": "
|
|
1662
|
+
"description": "Lease TTL in milliseconds."
|
|
1663
1663
|
}
|
|
1664
1664
|
},
|
|
1665
1665
|
"required": [],
|
|
@@ -1668,21 +1668,21 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1668
1668
|
},
|
|
1669
1669
|
{
|
|
1670
1670
|
"name": "release_page",
|
|
1671
|
-
"description": "
|
|
1671
|
+
"description": "Release a page lease and optionally close its tab; provide lease or target.",
|
|
1672
1672
|
"inputSchema": {
|
|
1673
1673
|
"type": "object",
|
|
1674
1674
|
"properties": {
|
|
1675
1675
|
"lease": {
|
|
1676
1676
|
"type": "string",
|
|
1677
|
-
"description": "
|
|
1677
|
+
"description": "Lease token; omit for a tab this process already holds. See server instructions."
|
|
1678
1678
|
},
|
|
1679
1679
|
"target": {
|
|
1680
1680
|
"type": "string",
|
|
1681
|
-
"description": "
|
|
1681
|
+
"description": "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
1682
1682
|
},
|
|
1683
1683
|
"close": {
|
|
1684
1684
|
"type": "boolean",
|
|
1685
|
-
"description": "
|
|
1685
|
+
"description": "Override close behavior."
|
|
1686
1686
|
}
|
|
1687
1687
|
},
|
|
1688
1688
|
"required": [],
|
|
@@ -1691,7 +1691,7 @@ export const MANIFEST: ToolSpec[] = [
|
|
|
1691
1691
|
},
|
|
1692
1692
|
{
|
|
1693
1693
|
"name": "list_leases",
|
|
1694
|
-
"description": "
|
|
1694
|
+
"description": "List active leases for diagnosis without exposing lease tokens.",
|
|
1695
1695
|
"inputSchema": {
|
|
1696
1696
|
"type": "object",
|
|
1697
1697
|
"properties": {},
|