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