chrome-devtools-mcp 1.10.1 → 1.12.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.
Files changed (103) hide show
  1. package/README.md +72 -20
  2. package/build/src/BrowserManager.js +155 -27
  3. package/build/src/McpContext.js +598 -200
  4. package/build/src/McpPage.js +513 -131
  5. package/build/src/McpResponse.js +291 -116
  6. package/build/src/McpWorker.js +66 -0
  7. package/build/src/SlimMcpResponse.js +5 -1
  8. package/build/src/TextSnapshot.js +40 -20
  9. package/build/src/ToolHandler.js +306 -147
  10. package/build/src/bin/chrome-devtools-mcp-main.js +13 -10
  11. package/build/src/bin/chrome-devtools-mcp.js +1 -1
  12. package/build/src/bin/chrome-devtools.js +34 -44
  13. package/build/src/collectors/PageCollector.js +13 -9
  14. package/build/src/collectors/ServiceWorkerCollector.js +20 -13
  15. package/build/src/collectors/constants.js +7 -0
  16. package/build/src/config/ConfigLocator.js +70 -0
  17. package/build/src/config/ConfigParser.js +159 -0
  18. package/build/src/config/ConfigWatcher.js +94 -0
  19. package/build/src/config/ServerConfig.js +251 -0
  20. package/build/src/config/browser-options.js +15 -17
  21. package/build/src/config/category-options.js +15 -30
  22. package/build/src/config/cli-commands.js +165 -5
  23. package/build/src/config/cli-options.js +441 -58
  24. package/build/src/config/mcp-options.js +212 -264
  25. package/build/src/config/puppeteer-options.js +67 -0
  26. package/build/src/config/tool-options.js +60 -0
  27. package/build/src/daemon/client.js +84 -44
  28. package/build/src/daemon/daemon.js +59 -45
  29. package/build/src/daemon/utils.js +46 -12
  30. package/build/src/devtools/DevToolsCommentBridge.js +71 -11
  31. package/build/src/devtools/DevtoolsUtils.js +52 -15
  32. package/build/src/devtools/McpHostBindingAdapter.js +0 -1
  33. package/build/src/formatters/CommentFormatter.js +4 -13
  34. package/build/src/formatters/ConsoleFormatter.js +29 -2
  35. package/build/src/formatters/CssFormatter.js +3 -2
  36. package/build/src/formatters/HeapSnapshotFormatter.js +111 -57
  37. package/build/src/formatters/IssueFormatter.js +33 -32
  38. package/build/src/formatters/NetworkFormatter.js +62 -22
  39. package/build/src/formatters/RemoteObjectFormatter.js +231 -0
  40. package/build/src/formatters/SnapshotFormatter.js +44 -7
  41. package/build/src/index.js +285 -88
  42. package/build/src/processors/ChunkedTraceParser.js +11 -11
  43. package/build/src/processors/HeapSnapshotManager.js +455 -156
  44. package/build/src/processors/PerformanceTrace.js +9 -9
  45. package/build/src/telemetry/ClearcutLogger.js +1 -1
  46. package/build/src/telemetry/transformation.js +7 -11
  47. package/build/src/telemetry/watchdog/main.js +1 -1
  48. package/build/src/third_party/THIRD_PARTY_NOTICES +399 -689
  49. package/build/src/third_party/bundled-packages.json +7 -8
  50. package/build/src/third_party/cli.js +9239 -0
  51. package/build/src/third_party/devtools-formatter-worker.js +4299 -2517
  52. package/build/src/third_party/devtools-heap-snapshot-worker.js +1298 -22
  53. package/build/src/third_party/index.js +132003 -146852
  54. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +0 -1
  55. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantReadOptOut.md +5 -0
  56. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +0 -1
  57. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantSetOptOut.md +5 -0
  58. package/build/src/third_party/issue-descriptions/deprecation.md +1 -1
  59. package/build/src/third_party/issue-descriptions/genericGeolocationPromptWithoutUserGesture.md +5 -0
  60. package/build/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +2 -0
  61. package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +54576 -52174
  62. package/build/src/tools/ToolDefinition.js +102 -12
  63. package/build/src/tools/comments.js +62 -4
  64. package/build/src/tools/console.js +6 -4
  65. package/build/src/tools/css.js +5 -2
  66. package/build/src/tools/emulation.js +22 -8
  67. package/build/src/tools/extensions.js +5 -0
  68. package/build/src/tools/input.js +29 -9
  69. package/build/src/tools/lighthouse.js +136 -12
  70. package/build/src/tools/memory.js +166 -59
  71. package/build/src/tools/network.js +5 -4
  72. package/build/src/tools/pages.js +52 -7
  73. package/build/src/tools/performance.js +28 -7
  74. package/build/src/tools/pwa.js +7 -0
  75. package/build/src/tools/screencast.js +74 -33
  76. package/build/src/tools/screenshot.js +52 -21
  77. package/build/src/tools/script.js +125 -40
  78. package/build/src/tools/slim/tools.js +27 -13
  79. package/build/src/tools/snapshot.js +13 -3
  80. package/build/src/tools/thirdPartyDeveloper.js +9 -5
  81. package/build/src/tools/tools.js +35 -22
  82. package/build/src/tools/webmcp.js +11 -6
  83. package/build/src/types.js +11 -0
  84. package/build/src/utils/TaskRunner.js +136 -0
  85. package/build/src/utils/WaitForHelper.js +15 -2
  86. package/build/src/utils/bytes.js +2 -12
  87. package/build/src/utils/check-for-updates.js +2 -2
  88. package/build/src/utils/disclaimers.js +27 -0
  89. package/build/src/utils/errorHandling.js +20 -0
  90. package/build/src/utils/keyboard.js +14 -2
  91. package/build/src/utils/logger.js +84 -5
  92. package/build/src/utils/resourceType.js +27 -0
  93. package/build/src/utils/text.js +44 -0
  94. package/build/src/utils/timeout.js +14 -0
  95. package/build/src/utils/url.js +140 -3
  96. package/build/src/version.js +1 -1
  97. package/package.json +16 -11
  98. package/skills/a11y-debugging/SKILL.md +7 -12
  99. package/skills/chrome-devtools/SKILL.md +2 -2
  100. package/skills/chrome-devtools-cli/SKILL.md +18 -15
  101. package/skills/cookie-debugging/SKILL.md +8 -5
  102. package/skills/debug-optimize-lcp/SKILL.md +1 -1
  103. package/skills/troubleshooting/SKILL.md +5 -6
@@ -4,6 +4,56 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  export const commands = {
7
+ analyze_heapsnapshot_contexts: {
8
+ description: 'Loads and caches a memory heapsnapshot to identify and rank closure contexts holding dead captured fields—variables no remaining live closure can read. Scopes are ranked globally by the retained size of these dead values to provide a prioritizing heuristic, rather than an exact measure of reclaimable bytes. (requires flag: --memoryDebugging=true)',
9
+ category: 'Memory',
10
+ args: {
11
+ filePath: {
12
+ name: 'filePath',
13
+ type: 'string',
14
+ description: 'A path to a .heapsnapshot file to read.',
15
+ required: true,
16
+ positional: true,
17
+ },
18
+ retainedSize: {
19
+ name: 'retainedSize',
20
+ type: 'string',
21
+ description: 'Inclusive range for the dead-field score of a context (e.g. "10KB", "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.',
22
+ required: false,
23
+ positional: false,
24
+ },
25
+ scopeInfoNodeId: {
26
+ name: 'scopeInfoNodeId',
27
+ type: 'integer',
28
+ description: 'Only return contexts declared by the scope with this ScopeInfo node id, as reported in the scope header of a previous call.',
29
+ required: false,
30
+ positional: false,
31
+ },
32
+ maxNameLength: {
33
+ name: 'maxNameLength',
34
+ type: 'integer',
35
+ description: 'Maximum length of names before truncation. Defaults to 100.',
36
+ required: false,
37
+ positional: false,
38
+ },
39
+ pageIdx: {
40
+ name: 'pageIdx',
41
+ type: 'integer',
42
+ description: 'The zero-based page index. Defaults to 0 (the first page).',
43
+ required: false,
44
+ positional: false,
45
+ default: 0,
46
+ },
47
+ pageSize: {
48
+ name: 'pageSize',
49
+ type: 'integer',
50
+ description: 'The maximum number of items to return per page. Defaults to 50.',
51
+ required: false,
52
+ positional: false,
53
+ default: 50,
54
+ },
55
+ },
56
+ },
7
57
  click: {
8
58
  description: 'Clicks on the provided element',
9
59
  category: 'Input automation',
@@ -13,24 +63,28 @@ export const commands = {
13
63
  type: 'number',
14
64
  description: 'Targets a specific page by ID.',
15
65
  required: true,
66
+ positional: true,
16
67
  },
17
68
  uid: {
18
69
  name: 'uid',
19
70
  type: 'string',
20
71
  description: 'The uid of an element on the page from the page content snapshot',
21
72
  required: true,
73
+ positional: true,
22
74
  },
23
75
  dblClick: {
24
76
  name: 'dblClick',
25
77
  type: 'boolean',
26
78
  description: 'Set to true for double clicks. Default is false.',
27
79
  required: false,
80
+ positional: false,
28
81
  },
29
82
  includeSnapshot: {
30
83
  name: 'includeSnapshot',
31
84
  type: 'boolean',
32
85
  description: 'Whether to include a snapshot in the response. Default is false.',
33
86
  required: false,
87
+ positional: false,
34
88
  },
35
89
  },
36
90
  },
@@ -43,35 +97,40 @@ export const commands = {
43
97
  type: 'number',
44
98
  description: 'Targets a specific page by ID.',
45
99
  required: true,
100
+ positional: true,
46
101
  },
47
102
  x: {
48
103
  name: 'x',
49
104
  type: 'number',
50
105
  description: 'The x coordinate',
51
106
  required: true,
107
+ positional: true,
52
108
  },
53
109
  y: {
54
110
  name: 'y',
55
111
  type: 'number',
56
112
  description: 'The y coordinate',
57
113
  required: true,
114
+ positional: true,
58
115
  },
59
116
  dblClick: {
60
117
  name: 'dblClick',
61
118
  type: 'boolean',
62
119
  description: 'Set to true for double clicks. Default is false.',
63
120
  required: false,
121
+ positional: false,
64
122
  },
65
123
  includeSnapshot: {
66
124
  name: 'includeSnapshot',
67
125
  type: 'boolean',
68
126
  description: 'Whether to include a snapshot in the response. Default is false.',
69
127
  required: false,
128
+ positional: false,
70
129
  },
71
130
  },
72
131
  },
73
132
  close_heapsnapshot: {
74
- description: 'Closes a previously loaded memory heapsnapshot, freeing its memory. (requires flag: --memoryDebugging=true)',
133
+ description: 'Closes a previously loaded and cached memory heapsnapshot, freeing its memory. (requires flag: --memoryDebugging=true)',
75
134
  category: 'Memory',
76
135
  args: {
77
136
  filePath: {
@@ -79,6 +138,7 @@ export const commands = {
79
138
  type: 'string',
80
139
  description: 'A path to the .heapsnapshot file to close.',
81
140
  required: true,
141
+ positional: true,
82
142
  },
83
143
  },
84
144
  },
@@ -91,11 +151,12 @@ export const commands = {
91
151
  type: 'number',
92
152
  description: 'The ID of the page to close. Call list_pages to list pages.',
93
153
  required: true,
154
+ positional: true,
94
155
  },
95
156
  },
96
157
  },
97
158
  compare_heapsnapshots: {
98
- description: 'Loads two memory heapsnapshots and returns the comparison. If classIndex is provided, returns detailed diff for that class, otherwise returns summary diff. (requires flag: --memoryDebugging=true)',
159
+ description: 'Loads and caches two memory heapsnapshots and returns the comparison. If classIndex is provided, returns detailed diff for that class, otherwise returns summary diff. (requires flag: --memoryDebugging=true)',
99
160
  category: 'Memory',
100
161
  args: {
101
162
  baseFilePath: {
@@ -103,18 +164,44 @@ export const commands = {
103
164
  type: 'string',
104
165
  description: 'A path to the base .heapsnapshot file (earlier snapshot).',
105
166
  required: true,
167
+ positional: true,
106
168
  },
107
169
  currentFilePath: {
108
170
  name: 'currentFilePath',
109
171
  type: 'string',
110
172
  description: 'A path to the current .heapsnapshot file (later snapshot).',
111
173
  required: true,
174
+ positional: true,
112
175
  },
113
176
  classIndex: {
114
177
  name: 'classIndex',
115
178
  type: 'number',
116
179
  description: 'Optional 0-based index of the class in the summary list to filter results, showing individual objects.',
117
180
  required: false,
181
+ positional: false,
182
+ },
183
+ maxNameLength: {
184
+ name: 'maxNameLength',
185
+ type: 'integer',
186
+ description: 'Maximum length of names before truncation. Defaults to 100.',
187
+ required: false,
188
+ positional: false,
189
+ },
190
+ pageIdx: {
191
+ name: 'pageIdx',
192
+ type: 'integer',
193
+ description: 'The zero-based page index. Defaults to 0 (the first page).',
194
+ required: false,
195
+ positional: false,
196
+ default: 0,
197
+ },
198
+ pageSize: {
199
+ name: 'pageSize',
200
+ type: 'integer',
201
+ description: 'The maximum number of items to return per page. Defaults to 50.',
202
+ required: false,
203
+ positional: false,
204
+ default: 50,
118
205
  },
119
206
  },
120
207
  },
@@ -127,29 +214,33 @@ export const commands = {
127
214
  type: 'number',
128
215
  description: 'Targets a specific page by ID.',
129
216
  required: true,
217
+ positional: true,
130
218
  },
131
219
  from_uid: {
132
220
  name: 'from_uid',
133
221
  type: 'string',
134
222
  description: 'The uid of the element to drag',
135
223
  required: true,
224
+ positional: true,
136
225
  },
137
226
  to_uid: {
138
227
  name: 'to_uid',
139
228
  type: 'string',
140
229
  description: 'The uid of the element to drop into',
141
230
  required: true,
231
+ positional: true,
142
232
  },
143
233
  includeSnapshot: {
144
234
  name: 'includeSnapshot',
145
235
  type: 'boolean',
146
236
  description: 'Whether to include a snapshot in the response. Default is false.',
147
237
  required: false,
238
+ positional: false,
148
239
  },
149
240
  },
150
241
  },
151
242
  emulate: {
152
- description: 'Emulates various features on the target page.',
243
+ description: 'Emulates various features on the target page. Each call replaces all emulation settings (except extraHttpHeaders), so pass all desired settings in a single call.',
153
244
  category: 'Emulation',
154
245
  args: {
155
246
  pageId: {
@@ -157,12 +248,14 @@ export const commands = {
157
248
  type: 'number',
158
249
  description: 'Targets a specific page by ID.',
159
250
  required: true,
251
+ positional: true,
160
252
  },
161
253
  networkConditions: {
162
254
  name: 'networkConditions',
163
255
  type: 'string',
164
256
  description: 'Throttle network. Omit to disable throttling.',
165
257
  required: false,
258
+ positional: false,
166
259
  enum: ['Offline', 'Slow 3G', 'Fast 3G', 'Slow 4G', 'Fast 4G'],
167
260
  },
168
261
  cpuThrottlingRate: {
@@ -170,42 +263,72 @@ export const commands = {
170
263
  type: 'number',
171
264
  description: 'Represents the CPU slowdown factor. Omit or set the rate to 1 to disable throttling',
172
265
  required: false,
266
+ positional: false,
173
267
  },
174
268
  geolocation: {
175
269
  name: 'geolocation',
176
270
  type: 'string',
177
271
  description: 'Geolocation (`<latitude>,<longitude>`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit to clear the geolocation override.',
178
272
  required: false,
273
+ positional: false,
179
274
  },
180
275
  userAgent: {
181
276
  name: 'userAgent',
182
277
  type: 'string',
183
- description: 'User agent to emulate. Set to empty string to clear the user agent override.',
278
+ description: 'User agent to emulate. Omit or set to empty string to clear the user agent override.',
184
279
  required: false,
280
+ positional: false,
185
281
  },
186
282
  colorScheme: {
187
283
  name: 'colorScheme',
188
284
  type: 'string',
189
- description: 'Emulate the dark or the light mode. Set to "auto" to reset to the default.',
285
+ description: 'Emulate the dark or the light mode. Omit or set to "auto" to reset to the default.',
190
286
  required: false,
287
+ positional: false,
191
288
  enum: ['dark', 'light', 'auto'],
192
289
  },
290
+ forcedColors: {
291
+ name: 'forcedColors',
292
+ type: 'string',
293
+ description: 'Emulate the `forced-colors` CSS media feature. Omit or set to "auto" to reset to the default.',
294
+ required: false,
295
+ positional: false,
296
+ enum: ['active', 'none', 'auto'],
297
+ },
298
+ prefersContrast: {
299
+ name: 'prefersContrast',
300
+ type: 'string',
301
+ description: 'Emulate the `prefers-contrast` CSS media feature. Omit or set to "auto" to reset to the default.',
302
+ required: false,
303
+ positional: false,
304
+ enum: ['more', 'less', 'custom', 'no-preference', 'auto'],
305
+ },
306
+ prefersReducedMotion: {
307
+ name: 'prefersReducedMotion',
308
+ type: 'string',
309
+ description: 'Emulate the `prefers-reduced-motion` CSS media feature. Omit or set to "auto" to reset to the default.',
310
+ required: false,
311
+ positional: false,
312
+ enum: ['reduce', 'no-preference', 'auto'],
313
+ },
193
314
  viewport: {
194
315
  name: 'viewport',
195
316
  type: 'string',
196
- description: "Emulate device viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode.",
317
+ description: "Emulate device viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode. Omit to clear the viewport override.",
197
318
  required: false,
319
+ positional: false,
198
320
  },
199
321
  extraHttpHeaders: {
200
322
  name: 'extraHttpHeaders',
201
323
  type: 'string',
202
324
  description: 'Extra HTTP headers as a JSON string object, e.g. {"X-Custom": "value", "Authorization": "Bearer token"}. Headers are included into every HTTP request originating from the page and persist across navigations until cleared. Pass an empty string to clear all extra headers.',
203
325
  required: false,
326
+ positional: false,
204
327
  },
205
328
  },
206
329
  },
207
330
  evaluate_script: {
208
- description: 'Evaluate a JavaScript function inside the target page or service worker. Returns the response as JSON, so returned values have to be JSON-serializable.',
331
+ description: 'Evaluate JavaScript inside the target page or service worker. The source can be provided inline or loaded from a local file. Returns the response as JSON, so returned values have to be JSON-serializable.',
209
332
  category: 'Debugging',
210
333
  args: {
211
334
  pageId: {
@@ -213,47 +336,69 @@ export const commands = {
213
336
  type: 'number',
214
337
  description: 'Targets a specific page by ID. Required when not evaluating in a service worker.',
215
338
  required: false,
339
+ positional: false,
216
340
  },
217
341
  function: {
218
342
  name: 'function',
219
343
  type: 'string',
220
- description: 'A JavaScript function declaration to be executed by the tool in the target page.\nExample without arguments: `() => document.title` or `async () => await fetch("example.com")`.\nExample with arguments: `(el) => el.innerText`\n',
221
- required: true,
344
+ description: 'JavaScript source to execute in the target page. Provide either this or sourcePath, but not both. The source is interpreted according to format.\nExample without arguments: `() => document.title` or `async () => await fetch("example.com")`.\nExample with arguments: `(el) => el.innerText`\n',
345
+ required: false,
346
+ positional: true,
347
+ },
348
+ sourcePath: {
349
+ name: 'sourcePath',
350
+ type: 'string',
351
+ description: "The absolute or relative path to a JavaScript file on the MCP server's local filesystem. Provide either this or function, but not both.",
352
+ required: false,
353
+ positional: false,
354
+ },
355
+ format: {
356
+ name: 'format',
357
+ type: 'string',
358
+ description: 'How to interpret the source. "function" treats it as a function declaration and supports args. "script" evaluates it as classic JavaScript and does not support args. Defaults to "function". ECMAScript modules are not supported.',
359
+ required: false,
360
+ positional: false,
361
+ enum: ['function', 'script'],
222
362
  },
223
363
  args: {
224
364
  name: 'args',
225
365
  type: 'array',
226
- description: 'An optional list of arguments to pass to the function.',
366
+ description: 'An optional list of arguments (element uids from the page content snapshot) to pass to the function.',
227
367
  required: false,
368
+ positional: false,
228
369
  },
229
370
  filePath: {
230
371
  name: 'filePath',
231
372
  type: 'string',
232
373
  description: 'The absolute or relative path to a file to save the script output to. If omitted, the output is returned inline.',
233
374
  required: false,
375
+ positional: false,
234
376
  },
235
377
  dialogAction: {
236
378
  name: 'dialogAction',
237
379
  type: 'string',
238
380
  description: 'Handle dialogs while execution. "accept", "dismiss", or string for response of window.prompt. Defaults to accept.',
239
381
  required: false,
382
+ positional: false,
240
383
  },
241
384
  waitForStableDom: {
242
385
  name: 'waitForStableDom',
243
386
  type: 'boolean',
244
387
  description: 'Whether to wait for the DOM to settle. Pass false if the script only reads data. Defaults to true.',
245
388
  required: false,
389
+ positional: false,
246
390
  },
247
391
  serviceWorkerId: {
248
392
  name: 'serviceWorkerId',
249
393
  type: 'string',
250
394
  description: "The optional service worker id to evaluate the script in. If provided, 'pageId' should be omitted. Note: 'args' (element UIDs) cannot be used when evaluating in a service worker.",
251
395
  required: false,
396
+ positional: false,
252
397
  },
253
398
  },
254
399
  },
255
400
  execute_3p_developer_tool: {
256
- description: 'Executes a tool exposed by the page. (requires flag: --categoryExperimentalThirdParty=true)',
401
+ description: 'Executes a third-party developer tool exposed by the page. (requires flag: --categoryExperimentalThirdParty=true)',
257
402
  category: 'Third-party',
258
403
  args: {
259
404
  pageId: {
@@ -261,23 +406,26 @@ export const commands = {
261
406
  type: 'number',
262
407
  description: 'Targets a specific page by ID.',
263
408
  required: true,
409
+ positional: true,
264
410
  },
265
411
  toolName: {
266
412
  name: 'toolName',
267
413
  type: 'string',
268
414
  description: 'The name of the tool to execute',
269
415
  required: true,
416
+ positional: true,
270
417
  },
271
418
  params: {
272
419
  name: 'params',
273
420
  type: 'string',
274
421
  description: 'The JSON-stringified parameters to pass to the tool',
275
422
  required: false,
423
+ positional: false,
276
424
  },
277
425
  },
278
426
  },
279
427
  execute_webmcp_tool: {
280
- description: 'Executes a WebMCP tool exposed by the page. (requires flag: --categoryExperimentalWebmcp=true)',
428
+ description: "Executes a WebMCP tool exposed by the page (for debugging tools, use 'execute_3p_developer_tool'). (requires flag: --categoryExperimentalWebmcp=true)",
281
429
  category: 'WebMCP',
282
430
  args: {
283
431
  pageId: {
@@ -285,18 +433,21 @@ export const commands = {
285
433
  type: 'number',
286
434
  description: 'Targets a specific page by ID.',
287
435
  required: true,
436
+ positional: true,
288
437
  },
289
438
  toolName: {
290
439
  name: 'toolName',
291
440
  type: 'string',
292
441
  description: 'The name of the WebMCP tool to execute',
293
442
  required: true,
443
+ positional: true,
294
444
  },
295
445
  input: {
296
446
  name: 'input',
297
447
  type: 'string',
298
448
  description: 'The JSON-stringified parameters to pass to the WebMCP tool',
299
449
  required: false,
450
+ positional: false,
300
451
  },
301
452
  },
302
453
  },
@@ -309,24 +460,28 @@ export const commands = {
309
460
  type: 'number',
310
461
  description: 'Targets a specific page by ID.',
311
462
  required: true,
463
+ positional: true,
312
464
  },
313
465
  uid: {
314
466
  name: 'uid',
315
467
  type: 'string',
316
468
  description: 'The uid of an element on the page from the page content snapshot',
317
469
  required: true,
470
+ positional: true,
318
471
  },
319
472
  value: {
320
473
  name: 'value',
321
474
  type: 'string',
322
475
  description: 'The value to fill in. "true" or "false" for checkboxes and toggles, "true" for radio buttons.',
323
476
  required: true,
477
+ positional: true,
324
478
  },
325
479
  includeSnapshot: {
326
480
  name: 'includeSnapshot',
327
481
  type: 'boolean',
328
482
  description: 'Whether to include a snapshot in the response. Default is false.',
329
483
  required: false,
484
+ positional: false,
330
485
  },
331
486
  },
332
487
  },
@@ -339,17 +494,19 @@ export const commands = {
339
494
  type: 'number',
340
495
  description: 'Targets a specific page by ID.',
341
496
  required: true,
497
+ positional: true,
342
498
  },
343
499
  msgid: {
344
500
  name: 'msgid',
345
501
  type: 'number',
346
502
  description: 'The msgid of a console message on the page from the listed console messages',
347
503
  required: true,
504
+ positional: true,
348
505
  },
349
506
  },
350
507
  },
351
508
  get_css_styles: {
352
- description: 'Retrieve matched CSS rules, inline styles, inherited styles, and cascade information for an element identified by its UID.\nUse this tool to debug why specific CSS properties are applied, overridden, or conflicting. Results are paginated and return 10 rules per page by default; use pageIdx to page through the remaining rules. Requires a UID from take_snapshot.',
509
+ description: 'Retrieve matched CSS rules, inline styles (element.style), inherited styles, custom properties, and cascade wrappers (@layer, @media, @container, @scope) for an element identified by its UID.\nRules are ordered from highest to lowest cascade precedence and include source line numbers (e.g. index:196). Active (winning) declarations have no prefix tag, while (losing) overridden declarations are prefixed with [overloaded].\nTreat the output as authoritative and complete.\nResults are paginated (10 rules per page by default); use pageIdx to page through the remaining rules. Requires a UID from take_snapshot.',
353
510
  category: 'Debugging',
354
511
  args: {
355
512
  pageId: {
@@ -357,18 +514,21 @@ export const commands = {
357
514
  type: 'number',
358
515
  description: 'Targets a specific page by ID.',
359
516
  required: true,
517
+ positional: true,
360
518
  },
361
519
  uid: {
362
520
  name: 'uid',
363
521
  type: 'string',
364
522
  description: 'The uid of the element on the page from the page content snapshot to inspect CSS styles for',
365
523
  required: true,
524
+ positional: true,
366
525
  },
367
526
  pageSize: {
368
527
  name: 'pageSize',
369
528
  type: 'integer',
370
529
  description: 'Maximum number of CSS rules to return per page. Defaults to 10.',
371
530
  required: false,
531
+ positional: false,
372
532
  default: 10,
373
533
  },
374
534
  pageIdx: {
@@ -376,12 +536,13 @@ export const commands = {
376
536
  type: 'integer',
377
537
  description: 'Page number to return (0-based). Defaults to 0 (the first page).',
378
538
  required: false,
539
+ positional: false,
379
540
  default: 0,
380
541
  },
381
542
  },
382
543
  },
383
544
  get_heapsnapshot_class_nodes: {
384
- description: 'Loads a memory heapsnapshot and returns instances of a specific class with their IDs. (requires flag: --memoryDebugging=true)',
545
+ description: 'Loads and caches a memory heapsnapshot and returns instances of a specific class with their IDs. (requires flag: --memoryDebugging=true)',
385
546
  category: 'Memory',
386
547
  args: {
387
548
  filePath: {
@@ -389,18 +550,21 @@ export const commands = {
389
550
  type: 'string',
390
551
  description: 'A path to a .heapsnapshot file to read.',
391
552
  required: true,
553
+ positional: true,
392
554
  },
393
555
  id: {
394
556
  name: 'id',
395
557
  type: 'number',
396
558
  description: 'The ID for the class, obtained from details.',
397
559
  required: true,
560
+ positional: true,
398
561
  },
399
562
  filterName: {
400
563
  name: 'filterName',
401
564
  type: 'string',
402
565
  description: 'An optional filter to apply to the nodes.',
403
566
  required: false,
567
+ positional: false,
404
568
  enum: [
405
569
  'objectsRetainedByDetachedDomNodes',
406
570
  'objectsRetainedByConsole',
@@ -416,23 +580,35 @@ export const commands = {
416
580
  type: 'number',
417
581
  description: 'The object ID (nodeId) of the specific native context to filter by when filterName is attributedToSpecificNativeContext.',
418
582
  required: false,
583
+ positional: false,
584
+ },
585
+ maxNameLength: {
586
+ name: 'maxNameLength',
587
+ type: 'integer',
588
+ description: 'Maximum length of names before truncation. Defaults to 100.',
589
+ required: false,
590
+ positional: false,
419
591
  },
420
592
  pageIdx: {
421
593
  name: 'pageIdx',
422
- type: 'number',
423
- description: 'The page index for pagination.',
594
+ type: 'integer',
595
+ description: 'The zero-based page index. Defaults to 0 (the first page).',
424
596
  required: false,
597
+ positional: false,
598
+ default: 0,
425
599
  },
426
600
  pageSize: {
427
601
  name: 'pageSize',
428
- type: 'number',
429
- description: 'The page size for pagination.',
602
+ type: 'integer',
603
+ description: 'The maximum number of items to return per page. Defaults to 50.',
430
604
  required: false,
605
+ positional: false,
606
+ default: 50,
431
607
  },
432
608
  },
433
609
  },
434
610
  get_heapsnapshot_details: {
435
- description: 'Loads a memory heapsnapshot and returns all available information including statistics, static data, and aggregated node information. Supports pagination for aggregates. (requires flag: --memoryDebugging=true)',
611
+ description: 'Loads and caches a memory heapsnapshot and returns all available information including statistics, static data, and aggregated node information. Supports pagination for aggregates. (requires flag: --memoryDebugging=true)',
436
612
  category: 'Memory',
437
613
  args: {
438
614
  filePath: {
@@ -440,12 +616,14 @@ export const commands = {
440
616
  type: 'string',
441
617
  description: 'A path to a .heapsnapshot file to read.',
442
618
  required: true,
619
+ positional: true,
443
620
  },
444
621
  filterName: {
445
622
  name: 'filterName',
446
623
  type: 'string',
447
624
  description: 'An optional filter to apply to the aggregates.',
448
625
  required: false,
626
+ positional: false,
449
627
  enum: [
450
628
  'objectsRetainedByDetachedDomNodes',
451
629
  'objectsRetainedByConsole',
@@ -461,23 +639,35 @@ export const commands = {
461
639
  type: 'number',
462
640
  description: 'The object ID (nodeId) of the specific native context to filter by when filterName is attributedToSpecificNativeContext.',
463
641
  required: false,
642
+ positional: false,
643
+ },
644
+ maxNameLength: {
645
+ name: 'maxNameLength',
646
+ type: 'integer',
647
+ description: 'Maximum length of names before truncation. Defaults to 100.',
648
+ required: false,
649
+ positional: false,
464
650
  },
465
651
  pageIdx: {
466
652
  name: 'pageIdx',
467
- type: 'number',
468
- description: 'The page index for pagination of aggregates.',
653
+ type: 'integer',
654
+ description: 'The zero-based page index. Defaults to 0 (the first page).',
469
655
  required: false,
656
+ positional: false,
657
+ default: 0,
470
658
  },
471
659
  pageSize: {
472
660
  name: 'pageSize',
473
- type: 'number',
474
- description: 'The page size for pagination of aggregates.',
661
+ type: 'integer',
662
+ description: 'The maximum number of items to return per page. Defaults to 50.',
475
663
  required: false,
664
+ positional: false,
665
+ default: 50,
476
666
  },
477
667
  },
478
668
  },
479
669
  get_heapsnapshot_dominators: {
480
- description: 'Loads a memory heapsnapshot and returns the dominator chain for a specific node ID. This helps to identify which objects are keeping the target node alive. (requires flag: --memoryDebugging=true)',
670
+ description: 'Loads and caches a memory heapsnapshot and returns the dominator chain for a specific node ID. This helps to identify which objects are keeping the target node alive. (requires flag: --memoryDebugging=true)',
481
671
  category: 'Memory',
482
672
  args: {
483
673
  filePath: {
@@ -485,17 +675,26 @@ export const commands = {
485
675
  type: 'string',
486
676
  description: 'A path to a .heapsnapshot file to read.',
487
677
  required: true,
678
+ positional: true,
488
679
  },
489
680
  nodeId: {
490
681
  name: 'nodeId',
491
682
  type: 'number',
492
683
  description: 'The node ID to get the dominator chain for.',
493
684
  required: true,
685
+ positional: true,
686
+ },
687
+ maxNameLength: {
688
+ name: 'maxNameLength',
689
+ type: 'integer',
690
+ description: 'Maximum length of names before truncation. Defaults to 100.',
691
+ required: false,
692
+ positional: false,
494
693
  },
495
694
  },
496
695
  },
497
696
  get_heapsnapshot_duplicate_strings: {
498
- description: 'Loads a memory heapsnapshot and returns duplicate strings grouped by their value. (requires flag: --memoryDebugging=true)',
697
+ description: 'Loads and caches a memory heapsnapshot and returns duplicate strings grouped by their value. (requires flag: --memoryDebugging=true)',
499
698
  category: 'Memory',
500
699
  args: {
501
700
  filePath: {
@@ -503,23 +702,35 @@ export const commands = {
503
702
  type: 'string',
504
703
  description: 'A path to a .heapsnapshot file to read.',
505
704
  required: true,
705
+ positional: true,
506
706
  },
507
707
  pageIdx: {
508
708
  name: 'pageIdx',
509
- type: 'number',
510
- description: 'The page index for pagination.',
709
+ type: 'integer',
710
+ description: 'The zero-based page index. Defaults to 0 (the first page).',
511
711
  required: false,
712
+ positional: false,
713
+ default: 0,
512
714
  },
513
715
  pageSize: {
514
716
  name: 'pageSize',
515
- type: 'number',
516
- description: 'The page size for pagination.',
717
+ type: 'integer',
718
+ description: 'The maximum number of items to return per page. Defaults to 50.',
517
719
  required: false,
720
+ positional: false,
721
+ default: 50,
722
+ },
723
+ maxNameLength: {
724
+ name: 'maxNameLength',
725
+ type: 'integer',
726
+ description: 'Maximum length of names before truncation. Defaults to 100.',
727
+ required: false,
728
+ positional: false,
518
729
  },
519
730
  },
520
731
  },
521
732
  get_heapsnapshot_edges: {
522
- description: 'Loads a memory heapsnapshot and returns outgoing edges (references) for a specific node ID. (requires flag: --memoryDebugging=true)',
733
+ description: 'Loads and caches a memory heapsnapshot and returns outgoing edges (references) for a specific node ID. (requires flag: --memoryDebugging=true)',
523
734
  category: 'Memory',
524
735
  args: {
525
736
  filePath: {
@@ -527,18 +738,21 @@ export const commands = {
527
738
  type: 'string',
528
739
  description: 'A path to a .heapsnapshot file to read.',
529
740
  required: true,
741
+ positional: true,
530
742
  },
531
743
  nodeId: {
532
744
  name: 'nodeId',
533
745
  type: 'number',
534
746
  description: 'The node ID to get outgoing edges for.',
535
747
  required: true,
748
+ positional: true,
536
749
  },
537
750
  sortBy: {
538
751
  name: 'sortBy',
539
752
  type: 'string',
540
753
  description: 'Sort order for edges. Default is retainedSize.',
541
754
  required: false,
755
+ positional: false,
542
756
  enum: ['retainedSize', 'selfSize', 'name'],
543
757
  },
544
758
  retainedSize: {
@@ -546,29 +760,42 @@ export const commands = {
546
760
  type: 'string',
547
761
  description: 'Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-") for target nodes. A single value is treated as a minimum. Currently, only the lower bound is applied.',
548
762
  required: false,
763
+ positional: false,
549
764
  },
550
765
  excludePrimitives: {
551
766
  name: 'excludePrimitives',
552
767
  type: 'boolean',
553
768
  description: 'Whether to exclude primitive target nodes. Default is true.',
554
769
  required: false,
770
+ positional: false,
771
+ },
772
+ maxNameLength: {
773
+ name: 'maxNameLength',
774
+ type: 'integer',
775
+ description: 'Maximum length of names before truncation. Defaults to 100.',
776
+ required: false,
777
+ positional: false,
555
778
  },
556
779
  pageIdx: {
557
780
  name: 'pageIdx',
558
- type: 'number',
559
- description: 'The page index for pagination.',
781
+ type: 'integer',
782
+ description: 'The zero-based page index. Defaults to 0 (the first page).',
560
783
  required: false,
784
+ positional: false,
785
+ default: 0,
561
786
  },
562
787
  pageSize: {
563
788
  name: 'pageSize',
564
- type: 'number',
565
- description: 'The page size for pagination.',
789
+ type: 'integer',
790
+ description: 'The maximum number of items to return per page. Defaults to 50.',
566
791
  required: false,
792
+ positional: false,
793
+ default: 50,
567
794
  },
568
795
  },
569
796
  },
570
797
  get_heapsnapshot_object_details: {
571
- description: 'Loads a memory heapsnapshot and returns detailed information about a specific object by its node ID, including size, type, distance, and DOM detachedness. (requires flag: --memoryDebugging=true)',
798
+ description: 'Loads and caches a memory heapsnapshot and returns detailed information about a specific object by its node ID, including size, type, distance, and DOM detachedness. (requires flag: --memoryDebugging=true)',
572
799
  category: 'Memory',
573
800
  args: {
574
801
  filePath: {
@@ -576,17 +803,26 @@ export const commands = {
576
803
  type: 'string',
577
804
  description: 'A path to a .heapsnapshot file to read.',
578
805
  required: true,
806
+ positional: true,
579
807
  },
580
808
  nodeId: {
581
809
  name: 'nodeId',
582
810
  type: 'number',
583
811
  description: 'The node ID to get object details for.',
584
812
  required: true,
813
+ positional: true,
814
+ },
815
+ maxNameLength: {
816
+ name: 'maxNameLength',
817
+ type: 'integer',
818
+ description: 'Maximum length of names before truncation. Defaults to 100.',
819
+ required: false,
820
+ positional: false,
585
821
  },
586
822
  },
587
823
  },
588
824
  get_heapsnapshot_retainers: {
589
- description: 'Loads a memory heapsnapshot and returns retainers for a specific node ID. (requires flag: --memoryDebugging=true)',
825
+ description: 'Loads and caches a memory heapsnapshot and returns retainers for a specific node ID. (requires flag: --memoryDebugging=true)',
590
826
  category: 'Memory',
591
827
  args: {
592
828
  filePath: {
@@ -594,29 +830,42 @@ export const commands = {
594
830
  type: 'string',
595
831
  description: 'A path to a .heapsnapshot file to read.',
596
832
  required: true,
833
+ positional: true,
597
834
  },
598
835
  nodeId: {
599
836
  name: 'nodeId',
600
837
  type: 'number',
601
838
  description: 'The node ID to get retainers for.',
602
839
  required: true,
840
+ positional: true,
841
+ },
842
+ maxNameLength: {
843
+ name: 'maxNameLength',
844
+ type: 'integer',
845
+ description: 'Maximum length of names before truncation. Defaults to 100.',
846
+ required: false,
847
+ positional: false,
603
848
  },
604
849
  pageIdx: {
605
850
  name: 'pageIdx',
606
- type: 'number',
607
- description: 'The page index for pagination.',
851
+ type: 'integer',
852
+ description: 'The zero-based page index. Defaults to 0 (the first page).',
608
853
  required: false,
854
+ positional: false,
855
+ default: 0,
609
856
  },
610
857
  pageSize: {
611
858
  name: 'pageSize',
612
- type: 'number',
613
- description: 'The page size for pagination.',
859
+ type: 'integer',
860
+ description: 'The maximum number of items to return per page. Defaults to 50.',
614
861
  required: false,
862
+ positional: false,
863
+ default: 50,
615
864
  },
616
865
  },
617
866
  },
618
867
  get_heapsnapshot_retaining_paths: {
619
- description: 'Loads a memory heapsnapshot and returns retaining paths for a specific node ID. This helps to understand why a node is not being garbage collected. (requires flag: --memoryDebugging=true)',
868
+ description: 'Loads and caches a memory heapsnapshot and returns retaining paths for a specific node ID. This helps to understand why a node is not being garbage collected. (requires flag: --memoryDebugging=true)',
620
869
  category: 'Memory',
621
870
  args: {
622
871
  filePath: {
@@ -624,35 +873,47 @@ export const commands = {
624
873
  type: 'string',
625
874
  description: 'A path to a .heapsnapshot file to read.',
626
875
  required: true,
876
+ positional: true,
627
877
  },
628
878
  nodeId: {
629
879
  name: 'nodeId',
630
880
  type: 'number',
631
881
  description: 'The node ID to get retaining paths for.',
632
882
  required: true,
883
+ positional: true,
633
884
  },
634
885
  maxDepth: {
635
886
  name: 'maxDepth',
636
887
  type: 'number',
637
888
  description: 'The maximum depth to search for retaining paths.',
638
889
  required: false,
890
+ positional: false,
639
891
  },
640
892
  maxNodes: {
641
893
  name: 'maxNodes',
642
894
  type: 'number',
643
895
  description: 'The maximum number of nodes to return.',
644
896
  required: false,
897
+ positional: false,
645
898
  },
646
899
  maxSiblings: {
647
900
  name: 'maxSiblings',
648
901
  type: 'number',
649
902
  description: 'The maximum number of siblings to return.',
650
903
  required: false,
904
+ positional: false,
905
+ },
906
+ maxNameLength: {
907
+ name: 'maxNameLength',
908
+ type: 'integer',
909
+ description: 'Maximum length of names before truncation. Defaults to 100.',
910
+ required: false,
911
+ positional: false,
651
912
  },
652
913
  },
653
914
  },
654
915
  get_heapsnapshot_summary: {
655
- description: 'Loads a memory heapsnapshot and returns snapshot summary stats, including native contexts and their sizes, and retained by context summary. (requires flag: --memoryDebugging=true)',
916
+ description: 'Loads and caches a memory heapsnapshot and returns snapshot summary stats, including native contexts and their sizes, and retained by context summary. (requires flag: --memoryDebugging=true)',
656
917
  category: 'Memory',
657
918
  args: {
658
919
  filePath: {
@@ -660,6 +921,14 @@ export const commands = {
660
921
  type: 'string',
661
922
  description: 'A path to a .heapsnapshot file to read.',
662
923
  required: true,
924
+ positional: true,
925
+ },
926
+ maxNameLength: {
927
+ name: 'maxNameLength',
928
+ type: 'integer',
929
+ description: 'Maximum length of names before truncation. Defaults to 100.',
930
+ required: false,
931
+ positional: false,
663
932
  },
664
933
  },
665
934
  },
@@ -672,24 +941,28 @@ export const commands = {
672
941
  type: 'number',
673
942
  description: 'Targets a specific page by ID.',
674
943
  required: true,
944
+ positional: true,
675
945
  },
676
946
  reqid: {
677
947
  name: 'reqid',
678
948
  type: 'number',
679
949
  description: 'The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel.',
680
950
  required: false,
951
+ positional: false,
681
952
  },
682
953
  requestFilePath: {
683
954
  name: 'requestFilePath',
684
955
  type: 'string',
685
956
  description: 'The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline.',
686
957
  required: false,
958
+ positional: false,
687
959
  },
688
960
  responseFilePath: {
689
961
  name: 'responseFilePath',
690
962
  type: 'string',
691
963
  description: 'The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline.',
692
964
  required: false,
965
+ positional: false,
693
966
  },
694
967
  },
695
968
  },
@@ -702,6 +975,7 @@ export const commands = {
702
975
  type: 'string',
703
976
  description: 'The manifest ID of the web app: the resolved `id` member of its manifest. If `id` is omitted, it defaults to the resolved `start_url` (e.g. "https://example.com/"). See https://w3c.github.io/manifest/#id-member.',
704
977
  required: true,
978
+ positional: true,
705
979
  },
706
980
  },
707
981
  },
@@ -714,12 +988,14 @@ export const commands = {
714
988
  type: 'number',
715
989
  description: 'Targets a specific page by ID.',
716
990
  required: true,
991
+ positional: true,
717
992
  },
718
993
  action: {
719
994
  name: 'action',
720
995
  type: 'string',
721
996
  description: 'Whether to dismiss or accept the dialog',
722
997
  required: true,
998
+ positional: true,
723
999
  enum: ['accept', 'dismiss'],
724
1000
  },
725
1001
  promptText: {
@@ -727,6 +1003,7 @@ export const commands = {
727
1003
  type: 'string',
728
1004
  description: 'Optional prompt text to enter into the dialog.',
729
1005
  required: false,
1006
+ positional: false,
730
1007
  },
731
1008
  },
732
1009
  },
@@ -739,18 +1016,21 @@ export const commands = {
739
1016
  type: 'number',
740
1017
  description: 'Targets a specific page by ID.',
741
1018
  required: true,
1019
+ positional: true,
742
1020
  },
743
1021
  uid: {
744
1022
  name: 'uid',
745
1023
  type: 'string',
746
1024
  description: 'The uid of an element on the page from the page content snapshot',
747
1025
  required: true,
1026
+ positional: true,
748
1027
  },
749
1028
  includeSnapshot: {
750
1029
  name: 'includeSnapshot',
751
1030
  type: 'boolean',
752
1031
  description: 'Whether to include a snapshot in the response. Default is false.',
753
1032
  required: false,
1033
+ positional: false,
754
1034
  },
755
1035
  },
756
1036
  },
@@ -763,6 +1043,7 @@ export const commands = {
763
1043
  type: 'string',
764
1044
  description: 'Absolute path to the unpacked extension folder.',
765
1045
  required: true,
1046
+ positional: true,
766
1047
  },
767
1048
  },
768
1049
  },
@@ -775,18 +1056,21 @@ export const commands = {
775
1056
  type: 'string',
776
1057
  description: 'The manifest ID of the web app: the resolved `id` member of its manifest. If `id` is omitted, it defaults to the resolved `start_url` (e.g. "https://example.com/"). See https://w3c.github.io/manifest/#id-member.',
777
1058
  required: true,
1059
+ positional: true,
778
1060
  },
779
1061
  installUrlOrBundleUrl: {
780
1062
  name: 'installUrlOrBundleUrl',
781
1063
  type: 'string',
782
1064
  description: 'The location of the app or bundle. For a normal site this is the page URL; for an Isolated Web App it can be a file:// or http(s):// signed web bundle.',
783
1065
  required: true,
1066
+ positional: true,
784
1067
  },
785
1068
  displayMode: {
786
1069
  name: 'displayMode',
787
1070
  type: 'string',
788
1071
  description: 'Optional user display mode preference applied after install. "standalone" opens the app in its own window; "browser" opens it as a tab. Installs via the PWA CDP domain default to "browser" because they do not simulate the install dialog, so pass "standalone" to get an app-window experience.',
789
1072
  required: false,
1073
+ positional: false,
790
1074
  enum: ['standalone', 'browser'],
791
1075
  },
792
1076
  },
@@ -800,17 +1084,19 @@ export const commands = {
800
1084
  type: 'string',
801
1085
  description: 'The manifest ID of the web app: the resolved `id` member of its manifest. If `id` is omitted, it defaults to the resolved `start_url` (e.g. "https://example.com/"). See https://w3c.github.io/manifest/#id-member.',
802
1086
  required: true,
1087
+ positional: true,
803
1088
  },
804
1089
  url: {
805
1090
  name: 'url',
806
1091
  type: 'string',
807
1092
  description: 'Optional URL within the app to open instead of the default start URL.',
808
1093
  required: false,
1094
+ positional: false,
809
1095
  },
810
1096
  },
811
1097
  },
812
1098
  lighthouse_audit: {
813
- description: 'Get Lighthouse score and reports for accessibility, SEO, best practices, and agentic browsing. This excludes performance. For performance audits, run performance_start_trace',
1099
+ description: 'Get Lighthouse scores, failing audits, and the DOM nodes they flag for accessibility, SEO, best practices, and agentic browsing. Full reports are saved to disk. This excludes performance. For performance audits, run performance_start_trace',
814
1100
  category: 'Debugging',
815
1101
  args: {
816
1102
  pageId: {
@@ -818,12 +1104,14 @@ export const commands = {
818
1104
  type: 'number',
819
1105
  description: 'Targets a specific page by ID.',
820
1106
  required: true,
1107
+ positional: true,
821
1108
  },
822
1109
  mode: {
823
1110
  name: 'mode',
824
1111
  type: 'string',
825
1112
  description: '"navigation" reloads & audits. "snapshot" analyzes current state.',
826
1113
  required: false,
1114
+ positional: false,
827
1115
  default: 'navigation',
828
1116
  enum: ['navigation', 'snapshot'],
829
1117
  },
@@ -832,6 +1120,7 @@ export const commands = {
832
1120
  type: 'string',
833
1121
  description: 'Device to emulate.',
834
1122
  required: false,
1123
+ positional: false,
835
1124
  default: 'desktop',
836
1125
  enum: ['desktop', 'mobile'],
837
1126
  },
@@ -840,11 +1129,12 @@ export const commands = {
840
1129
  type: 'string',
841
1130
  description: 'Directory for reports. If omitted, uses temporary files.',
842
1131
  required: false,
1132
+ positional: false,
843
1133
  },
844
1134
  },
845
1135
  },
846
1136
  list_3p_developer_tools: {
847
- description: "Lists all third-party developer tools the page exposes for providing runtime information.\nThird-party developer tools can be called via the 'execute_3p_developer_tool()' MCP tool.\nAlternatively, third-party developer tools can be executed by calling 'evaluate_script' and adding the\nfollowing command to the script:\n`window.__dtmcp.executeTool(toolName, params)`\nThis might be helpful when the third-party developer tools return non-serializable values or when composing\nthird-party developer tools with additional functionality. (requires flag: --categoryExperimentalThirdParty=true)",
1137
+ description: "Lists all third-party developer tools the page exposes for providing runtime information (including debugging WebMCP tools and tools exposed via the 'devtoolstooldiscovery' event).\nThird-party developer tools can be called via the 'execute_3p_developer_tool()' MCP tool.\nAlternatively, third-party developer tools exposed via the 'devtoolstooldiscovery' event can be executed by calling 'evaluate_script' and adding the\nfollowing command to the script:\n`window.__dtmcp.executeTool(toolName, params)`\nThis might be helpful when the third-party developer tools return non-serializable values or when composing\nthird-party developer tools with additional functionality. (requires flag: --categoryExperimentalThirdParty=true)",
848
1138
  category: 'Third-party',
849
1139
  args: {
850
1140
  pageId: {
@@ -852,6 +1142,7 @@ export const commands = {
852
1142
  type: 'number',
853
1143
  description: 'Targets a specific page by ID.',
854
1144
  required: true,
1145
+ positional: true,
855
1146
  },
856
1147
  },
857
1148
  },
@@ -864,30 +1155,35 @@ export const commands = {
864
1155
  type: 'number',
865
1156
  description: 'Targets a specific page by ID.',
866
1157
  required: true,
1158
+ positional: true,
867
1159
  },
868
1160
  pageSize: {
869
1161
  name: 'pageSize',
870
1162
  type: 'integer',
871
1163
  description: 'Maximum number of messages to return. When omitted, returns all messages.',
872
1164
  required: false,
1165
+ positional: false,
873
1166
  },
874
1167
  pageIdx: {
875
1168
  name: 'pageIdx',
876
1169
  type: 'integer',
877
- description: 'Page number to return (0-based). When omitted, returns the first page.',
1170
+ description: 'Page number to return (0-based). When omitted, returns the first page. Ignored unless pageSize is set.',
878
1171
  required: false,
1172
+ positional: false,
879
1173
  },
880
1174
  types: {
881
1175
  name: 'types',
882
1176
  type: 'array',
883
1177
  description: 'Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages.',
884
1178
  required: false,
1179
+ positional: false,
885
1180
  },
886
1181
  includePreservedMessages: {
887
1182
  name: 'includePreservedMessages',
888
1183
  type: 'boolean',
889
1184
  description: 'Set to true to return the preserved messages over the last 3 navigations.',
890
1185
  required: false,
1186
+ positional: false,
891
1187
  default: false,
892
1188
  },
893
1189
  includeStackTraces: {
@@ -895,13 +1191,15 @@ export const commands = {
895
1191
  type: 'boolean',
896
1192
  description: 'Set to true to include the stack trace for each message when available. Increases the response size.',
897
1193
  required: false,
1194
+ positional: false,
898
1195
  default: false,
899
1196
  },
900
1197
  serviceWorkerId: {
901
1198
  name: 'serviceWorkerId',
902
1199
  type: 'string',
903
- description: 'Filter messages to only return messages of the specified service worker.',
1200
+ description: 'Filter messages by the service worker ID shown by list_pages (sw-N).',
904
1201
  required: false,
1202
+ positional: false,
905
1203
  },
906
1204
  },
907
1205
  },
@@ -919,30 +1217,35 @@ export const commands = {
919
1217
  type: 'number',
920
1218
  description: 'Targets a specific page by ID.',
921
1219
  required: true,
1220
+ positional: true,
922
1221
  },
923
1222
  pageSize: {
924
1223
  name: 'pageSize',
925
1224
  type: 'integer',
926
1225
  description: 'Maximum number of requests to return. When omitted, returns all requests.',
927
1226
  required: false,
1227
+ positional: false,
928
1228
  },
929
1229
  pageIdx: {
930
1230
  name: 'pageIdx',
931
1231
  type: 'integer',
932
- description: 'Page number to return (0-based). When omitted, returns the first page.',
1232
+ description: 'Page number to return (0-based). When omitted, returns the first page. Ignored unless pageSize is set.',
933
1233
  required: false,
1234
+ positional: false,
934
1235
  },
935
1236
  resourceTypes: {
936
1237
  name: 'resourceTypes',
937
1238
  type: 'array',
938
1239
  description: 'Filter requests to only return requests of the specified resource types. When omitted or empty, returns all requests.',
939
1240
  required: false,
1241
+ positional: false,
940
1242
  },
941
1243
  includePreservedRequests: {
942
1244
  name: 'includePreservedRequests',
943
1245
  type: 'boolean',
944
1246
  description: 'Set to true to return the preserved requests over the last 3 navigations.',
945
1247
  required: false,
1248
+ positional: false,
946
1249
  default: false,
947
1250
  },
948
1251
  },
@@ -953,7 +1256,7 @@ export const commands = {
953
1256
  args: {},
954
1257
  },
955
1258
  list_webmcp_tools: {
956
- description: 'Lists all WebMCP tools the page exposes. (requires flag: --categoryExperimentalWebmcp=true)',
1259
+ description: "Lists all WebMCP tools the page exposes (excluding debugging tools, which are exposed via 'list_3p_developer_tools'). (requires flag: --categoryExperimentalWebmcp=true)",
957
1260
  category: 'WebMCP',
958
1261
  args: {
959
1262
  pageId: {
@@ -961,6 +1264,7 @@ export const commands = {
961
1264
  type: 'number',
962
1265
  description: 'Targets a specific page by ID.',
963
1266
  required: true,
1267
+ positional: true,
964
1268
  },
965
1269
  },
966
1270
  },
@@ -973,12 +1277,14 @@ export const commands = {
973
1277
  type: 'number',
974
1278
  description: 'Targets a specific page by ID.',
975
1279
  required: true,
1280
+ positional: true,
976
1281
  },
977
1282
  type: {
978
1283
  name: 'type',
979
1284
  type: 'string',
980
1285
  description: 'Navigate the page by URL, back or forward in history, or reload.',
981
1286
  required: false,
1287
+ positional: false,
982
1288
  enum: ['url', 'back', 'forward', 'reload'],
983
1289
  },
984
1290
  url: {
@@ -986,18 +1292,21 @@ export const commands = {
986
1292
  type: 'string',
987
1293
  description: 'Target URL (only type=url)',
988
1294
  required: false,
1295
+ positional: false,
989
1296
  },
990
1297
  ignoreCache: {
991
1298
  name: 'ignoreCache',
992
1299
  type: 'boolean',
993
1300
  description: 'Whether to ignore cache on reload.',
994
1301
  required: false,
1302
+ positional: false,
995
1303
  },
996
1304
  handleBeforeUnload: {
997
1305
  name: 'handleBeforeUnload',
998
1306
  type: 'string',
999
1307
  description: 'Whether to auto accept or beforeunload dialogs triggered by this navigation. Default is accept.',
1000
1308
  required: false,
1309
+ positional: false,
1001
1310
  enum: ['accept', 'dismiss'],
1002
1311
  },
1003
1312
  initScript: {
@@ -1005,12 +1314,14 @@ export const commands = {
1005
1314
  type: 'string',
1006
1315
  description: 'A JavaScript script to be executed on each new document before any other scripts for the next navigation.',
1007
1316
  required: false,
1317
+ positional: false,
1008
1318
  },
1009
1319
  timeout: {
1010
1320
  name: 'timeout',
1011
1321
  type: 'integer',
1012
1322
  description: 'Maximum wait time in milliseconds. If set to 0, the default timeout will be used.',
1013
1323
  required: false,
1324
+ positional: false,
1014
1325
  },
1015
1326
  },
1016
1327
  },
@@ -1023,24 +1334,28 @@ export const commands = {
1023
1334
  type: 'string',
1024
1335
  description: 'URL to load in a new page.',
1025
1336
  required: true,
1337
+ positional: true,
1026
1338
  },
1027
1339
  background: {
1028
1340
  name: 'background',
1029
1341
  type: 'boolean',
1030
1342
  description: 'Whether to open the page in the background without bringing it to the front. Default is false (foreground).',
1031
1343
  required: false,
1344
+ positional: false,
1032
1345
  },
1033
1346
  isolatedContext: {
1034
1347
  name: 'isolatedContext',
1035
1348
  type: 'string',
1036
1349
  description: 'If specified, the page is created in an isolated browser context with the given name. Pages in the same browser context share cookies and storage. Pages in different browser contexts are fully isolated (useful for clean-slate testing of cookies and authentication).',
1037
1350
  required: false,
1351
+ positional: false,
1038
1352
  },
1039
1353
  timeout: {
1040
1354
  name: 'timeout',
1041
1355
  type: 'integer',
1042
1356
  description: 'Maximum wait time in milliseconds. If set to 0, the default timeout will be used.',
1043
1357
  required: false,
1358
+ positional: false,
1044
1359
  },
1045
1360
  },
1046
1361
  },
@@ -1053,18 +1368,21 @@ export const commands = {
1053
1368
  type: 'number',
1054
1369
  description: 'Targets a specific page by ID.',
1055
1370
  required: true,
1371
+ positional: true,
1056
1372
  },
1057
1373
  insightSetId: {
1058
1374
  name: 'insightSetId',
1059
1375
  type: 'string',
1060
1376
  description: 'The id for the specific insight set. Only use the ids given in the "Available insight sets" list.',
1061
1377
  required: true,
1378
+ positional: true,
1062
1379
  },
1063
1380
  insightName: {
1064
1381
  name: 'insightName',
1065
1382
  type: 'string',
1066
1383
  description: 'The name of the Insight you want more information on. For example: "DocumentLatency" or "LCPBreakdown"',
1067
1384
  required: true,
1385
+ positional: true,
1068
1386
  },
1069
1387
  },
1070
1388
  },
@@ -1077,12 +1395,14 @@ export const commands = {
1077
1395
  type: 'number',
1078
1396
  description: 'Targets a specific page by ID.',
1079
1397
  required: true,
1398
+ positional: true,
1080
1399
  },
1081
1400
  reload: {
1082
1401
  name: 'reload',
1083
1402
  type: 'boolean',
1084
1403
  description: 'Determines if, once tracing has started, the target page should be automatically reloaded. Navigate the page to the right URL using the navigate_page tool BEFORE starting the trace if reload or autoStop is set to true.',
1085
1404
  required: false,
1405
+ positional: false,
1086
1406
  default: true,
1087
1407
  },
1088
1408
  autoStop: {
@@ -1090,13 +1410,22 @@ export const commands = {
1090
1410
  type: 'boolean',
1091
1411
  description: 'Determines if the trace recording should be automatically stopped.',
1092
1412
  required: false,
1413
+ positional: false,
1093
1414
  default: true,
1094
1415
  },
1416
+ ignoreCache: {
1417
+ name: 'ignoreCache',
1418
+ type: 'boolean',
1419
+ description: 'Whether to bypass the HTTP cache when reloading the page, to measure a cold page load. Only applies if reload is true.',
1420
+ required: false,
1421
+ positional: false,
1422
+ },
1095
1423
  filePath: {
1096
1424
  name: 'filePath',
1097
1425
  type: 'string',
1098
1426
  description: 'The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).',
1099
1427
  required: false,
1428
+ positional: false,
1100
1429
  },
1101
1430
  },
1102
1431
  },
@@ -1109,12 +1438,14 @@ export const commands = {
1109
1438
  type: 'number',
1110
1439
  description: 'Targets a specific page by ID.',
1111
1440
  required: true,
1441
+ positional: true,
1112
1442
  },
1113
1443
  filePath: {
1114
1444
  name: 'filePath',
1115
1445
  type: 'string',
1116
1446
  description: 'The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).',
1117
1447
  required: false,
1448
+ positional: false,
1118
1449
  },
1119
1450
  },
1120
1451
  },
@@ -1127,23 +1458,26 @@ export const commands = {
1127
1458
  type: 'number',
1128
1459
  description: 'Targets a specific page by ID.',
1129
1460
  required: true,
1461
+ positional: true,
1130
1462
  },
1131
1463
  key: {
1132
1464
  name: 'key',
1133
1465
  type: 'string',
1134
1466
  description: 'A key or a combination (e.g., "Enter", "Control+A", "Control++", "Control+Shift+R"). Modifiers: Control, Shift, Alt, Meta',
1135
1467
  required: true,
1468
+ positional: true,
1136
1469
  },
1137
1470
  includeSnapshot: {
1138
1471
  name: 'includeSnapshot',
1139
1472
  type: 'boolean',
1140
1473
  description: 'Whether to include a snapshot in the response. Default is false.',
1141
1474
  required: false,
1475
+ positional: false,
1142
1476
  },
1143
1477
  },
1144
1478
  },
1145
1479
  query_heapsnapshot_objects: {
1146
- description: 'Loads a memory heapsnapshot and queries objects matching specific filters (className, propertyName, nodeType, retainedSize, selfSize, isDetached, sortBy). (requires flag: --memoryDebugging=true)',
1480
+ description: 'Loads and caches a memory heapsnapshot and queries objects matching specific filters (className, propertyName, nodeType, retainedSize, selfSize, isDetached, sortBy). (requires flag: --memoryDebugging=true)',
1147
1481
  category: 'Memory',
1148
1482
  args: {
1149
1483
  filePath: {
@@ -1151,61 +1485,80 @@ export const commands = {
1151
1485
  type: 'string',
1152
1486
  description: 'A path to a .heapsnapshot file to read.',
1153
1487
  required: true,
1488
+ positional: true,
1154
1489
  },
1155
1490
  className: {
1156
1491
  name: 'className',
1157
1492
  type: 'string',
1158
1493
  description: 'Optional regex or text matching object class name.',
1159
1494
  required: false,
1495
+ positional: false,
1160
1496
  },
1161
1497
  propertyName: {
1162
1498
  name: 'propertyName',
1163
1499
  type: 'string',
1164
1500
  description: 'Optional property name filter for outgoing reference edges.',
1165
1501
  required: false,
1502
+ positional: false,
1166
1503
  },
1167
1504
  nodeType: {
1168
1505
  name: 'nodeType',
1169
1506
  type: 'string',
1170
1507
  description: 'Optional V8 node type filter (e.g. object, closure, string, array, code).',
1171
1508
  required: false,
1509
+ positional: false,
1172
1510
  },
1173
1511
  retainedSize: {
1174
1512
  name: 'retainedSize',
1175
1513
  type: 'string',
1176
1514
  description: 'Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.',
1177
1515
  required: false,
1516
+ positional: false,
1178
1517
  },
1179
1518
  selfSize: {
1180
1519
  name: 'selfSize',
1181
1520
  type: 'string',
1182
1521
  description: 'Inclusive self size range (e.g. "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.',
1183
1522
  required: false,
1523
+ positional: false,
1184
1524
  },
1185
1525
  isDetached: {
1186
1526
  name: 'isDetached',
1187
1527
  type: 'boolean',
1188
1528
  description: 'Whether to filter for detached DOM nodes.',
1189
1529
  required: false,
1530
+ positional: false,
1190
1531
  },
1191
1532
  sortBy: {
1192
1533
  name: 'sortBy',
1193
1534
  type: 'string',
1194
1535
  description: 'Sort order for results. Default is retainedSize.',
1195
1536
  required: false,
1537
+ positional: false,
1196
1538
  enum: ['retainedSize', 'selfSize', 'id'],
1197
1539
  },
1198
1540
  pageIdx: {
1199
1541
  name: 'pageIdx',
1200
- type: 'number',
1201
- description: 'The page index for pagination.',
1542
+ type: 'integer',
1543
+ description: 'The zero-based page index. Defaults to 0 (the first page).',
1202
1544
  required: false,
1545
+ positional: false,
1546
+ default: 0,
1203
1547
  },
1204
1548
  pageSize: {
1205
1549
  name: 'pageSize',
1206
- type: 'number',
1207
- description: 'The page size for pagination.',
1550
+ type: 'integer',
1551
+ description: 'The maximum number of items to return per page. Defaults to 50.',
1552
+ required: false,
1553
+ positional: false,
1554
+ default: 50,
1555
+ },
1556
+ maxNameLength: {
1557
+ name: 'maxNameLength',
1558
+ type: 'integer',
1559
+ description: 'Maximum length of names before truncation. Defaults to 100.',
1208
1560
  required: false,
1561
+ positional: false,
1209
1562
  },
1210
1563
  },
1211
1564
  },
@@ -1218,6 +1571,7 @@ export const commands = {
1218
1571
  type: 'string',
1219
1572
  description: 'ID of the extension to reload.',
1220
1573
  required: true,
1574
+ positional: true,
1221
1575
  },
1222
1576
  },
1223
1577
  },
@@ -1230,23 +1584,26 @@ export const commands = {
1230
1584
  type: 'number',
1231
1585
  description: 'Targets a specific page by ID.',
1232
1586
  required: true,
1587
+ positional: true,
1233
1588
  },
1234
1589
  width: {
1235
1590
  name: 'width',
1236
- type: 'number',
1591
+ type: 'integer',
1237
1592
  description: 'Page width',
1238
1593
  required: true,
1594
+ positional: true,
1239
1595
  },
1240
1596
  height: {
1241
1597
  name: 'height',
1242
- type: 'number',
1598
+ type: 'integer',
1243
1599
  description: 'Page height',
1244
1600
  required: true,
1601
+ positional: true,
1245
1602
  },
1246
1603
  },
1247
1604
  },
1248
1605
  screencast_start: {
1249
- description: 'Starts recording a screencast (video) of the target page in specified format. (requires flag: --experimentalScreencast=true)',
1606
+ description: 'Starts recording a screencast (video) of the target page.',
1250
1607
  category: 'Debugging',
1251
1608
  args: {
1252
1609
  pageId: {
@@ -1254,17 +1611,19 @@ export const commands = {
1254
1611
  type: 'number',
1255
1612
  description: 'Targets a specific page by ID.',
1256
1613
  required: true,
1614
+ positional: true,
1257
1615
  },
1258
1616
  filePath: {
1259
1617
  name: 'filePath',
1260
1618
  type: 'string',
1261
- description: 'Output file path (.webm,.mp4 are supported). Uses mkdtemp to generate a unique path if not provided.',
1619
+ description: 'Output file path (.mp4). Uses mkdtemp to generate a unique path if not provided.',
1262
1620
  required: false,
1621
+ positional: false,
1263
1622
  },
1264
1623
  },
1265
1624
  },
1266
1625
  screencast_stop: {
1267
- description: 'Stops the active screencast recording on the target page. (requires flag: --experimentalScreencast=true)',
1626
+ description: 'Stops the active screencast recording on the target page.',
1268
1627
  category: 'Debugging',
1269
1628
  args: {
1270
1629
  pageId: {
@@ -1272,6 +1631,7 @@ export const commands = {
1272
1631
  type: 'number',
1273
1632
  description: 'Targets a specific page by ID.',
1274
1633
  required: true,
1634
+ positional: true,
1275
1635
  },
1276
1636
  },
1277
1637
  },
@@ -1284,12 +1644,14 @@ export const commands = {
1284
1644
  type: 'number',
1285
1645
  description: 'The ID of the page to select. Call list_pages to get available pages.',
1286
1646
  required: true,
1647
+ positional: true,
1287
1648
  },
1288
1649
  bringToFront: {
1289
1650
  name: 'bringToFront',
1290
1651
  type: 'boolean',
1291
1652
  description: 'Whether to focus the page and bring it to the top.',
1292
1653
  required: false,
1654
+ positional: false,
1293
1655
  },
1294
1656
  },
1295
1657
  },
@@ -1302,12 +1664,14 @@ export const commands = {
1302
1664
  type: 'number',
1303
1665
  description: 'Targets a specific page by ID.',
1304
1666
  required: true,
1667
+ positional: true,
1305
1668
  },
1306
1669
  filePath: {
1307
1670
  name: 'filePath',
1308
1671
  type: 'string',
1309
1672
  description: 'A path to a .heapsnapshot file to save the heapsnapshot to.',
1310
1673
  required: true,
1674
+ positional: true,
1311
1675
  },
1312
1676
  },
1313
1677
  },
@@ -1320,12 +1684,14 @@ export const commands = {
1320
1684
  type: 'number',
1321
1685
  description: 'Targets a specific page by ID.',
1322
1686
  required: true,
1687
+ positional: true,
1323
1688
  },
1324
1689
  format: {
1325
1690
  name: 'format',
1326
1691
  type: 'string',
1327
1692
  description: 'Type of format to save the screenshot as. Default is "png"',
1328
1693
  required: false,
1694
+ positional: false,
1329
1695
  default: 'png',
1330
1696
  enum: ['png', 'jpeg', 'webp'],
1331
1697
  },
@@ -1334,24 +1700,28 @@ export const commands = {
1334
1700
  type: 'number',
1335
1701
  description: 'Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format.',
1336
1702
  required: false,
1703
+ positional: false,
1337
1704
  },
1338
1705
  uid: {
1339
1706
  name: 'uid',
1340
1707
  type: 'string',
1341
1708
  description: 'The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot.',
1342
1709
  required: false,
1710
+ positional: false,
1343
1711
  },
1344
1712
  fullPage: {
1345
1713
  name: 'fullPage',
1346
1714
  type: 'boolean',
1347
1715
  description: 'If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.',
1348
1716
  required: false,
1717
+ positional: false,
1349
1718
  },
1350
1719
  filePath: {
1351
1720
  name: 'filePath',
1352
1721
  type: 'string',
1353
1722
  description: 'The absolute path, or a path relative to the current working directory, to save the screenshot to instead of attaching it to the response.',
1354
1723
  required: false,
1724
+ positional: false,
1355
1725
  },
1356
1726
  },
1357
1727
  },
@@ -1364,18 +1734,21 @@ export const commands = {
1364
1734
  type: 'number',
1365
1735
  description: 'Targets a specific page by ID.',
1366
1736
  required: true,
1737
+ positional: true,
1367
1738
  },
1368
1739
  verbose: {
1369
1740
  name: 'verbose',
1370
1741
  type: 'boolean',
1371
1742
  description: 'Whether to include all possible information available in the full a11y tree. Default is false.',
1372
1743
  required: false,
1744
+ positional: false,
1373
1745
  },
1374
1746
  filePath: {
1375
1747
  name: 'filePath',
1376
1748
  type: 'string',
1377
1749
  description: 'The absolute path, or a path relative to the current working directory, to save the snapshot to instead of attaching it to the response.',
1378
1750
  required: false,
1751
+ positional: false,
1379
1752
  },
1380
1753
  },
1381
1754
  },
@@ -1388,6 +1761,7 @@ export const commands = {
1388
1761
  type: 'string',
1389
1762
  description: 'ID of the extension to trigger the action for.',
1390
1763
  required: true,
1764
+ positional: true,
1391
1765
  },
1392
1766
  },
1393
1767
  },
@@ -1400,18 +1774,21 @@ export const commands = {
1400
1774
  type: 'number',
1401
1775
  description: 'Targets a specific page by ID.',
1402
1776
  required: true,
1777
+ positional: true,
1403
1778
  },
1404
1779
  text: {
1405
1780
  name: 'text',
1406
1781
  type: 'string',
1407
1782
  description: 'The text to type',
1408
1783
  required: true,
1784
+ positional: true,
1409
1785
  },
1410
1786
  submitKey: {
1411
1787
  name: 'submitKey',
1412
1788
  type: 'string',
1413
1789
  description: 'Optional key to press after typing. E.g., "Enter", "Tab", "Escape"',
1414
1790
  required: false,
1791
+ positional: false,
1415
1792
  },
1416
1793
  },
1417
1794
  },
@@ -1424,6 +1801,7 @@ export const commands = {
1424
1801
  type: 'string',
1425
1802
  description: 'ID of the extension to uninstall.',
1426
1803
  required: true,
1804
+ positional: true,
1427
1805
  },
1428
1806
  },
1429
1807
  },
@@ -1436,6 +1814,7 @@ export const commands = {
1436
1814
  type: 'string',
1437
1815
  description: 'The manifest ID of the web app: the resolved `id` member of its manifest. If `id` is omitted, it defaults to the resolved `start_url` (e.g. "https://example.com/"). See https://w3c.github.io/manifest/#id-member.',
1438
1816
  required: true,
1817
+ positional: true,
1439
1818
  },
1440
1819
  },
1441
1820
  },
@@ -1448,24 +1827,28 @@ export const commands = {
1448
1827
  type: 'number',
1449
1828
  description: 'Targets a specific page by ID.',
1450
1829
  required: true,
1830
+ positional: true,
1451
1831
  },
1452
1832
  uid: {
1453
1833
  name: 'uid',
1454
1834
  type: 'string',
1455
1835
  description: 'The uid of the file input element or an element that will open file chooser on the page from the page content snapshot',
1456
1836
  required: true,
1837
+ positional: true,
1457
1838
  },
1458
1839
  filePaths: {
1459
1840
  name: 'filePaths',
1460
1841
  type: 'array',
1461
1842
  description: 'One or more files paths to upload. File paths have to be local to the browser instance (not the MCP).',
1462
1843
  required: true,
1844
+ positional: true,
1463
1845
  },
1464
1846
  includeSnapshot: {
1465
1847
  name: 'includeSnapshot',
1466
1848
  type: 'boolean',
1467
1849
  description: 'Whether to include a snapshot in the response. Default is false.',
1468
1850
  required: false,
1851
+ positional: false,
1469
1852
  },
1470
1853
  },
1471
1854
  },