2 "version": { "major": "1", "minor": "1" },
10 "description": "Enables inspector domain notifications.",
11 "handlers": ["browser", "renderer"]
15 "description": "Disables inspector domain notifications."
20 "name": "evaluateForTestInFrontend",
22 { "name": "testCallId", "type": "integer" },
23 { "name": "script", "type": "string" }
29 { "name": "object", "$ref": "Runtime.RemoteObject" },
30 { "name": "hints", "type": "object" }
35 "description": "Fired when remote debugging connection is about to be terminated. Contains detach reason.",
37 { "name": "reason", "type": "string", "description": "The reason why connection has been terminated." }
39 "handlers": ["browser"]
42 "name": "targetCrashed",
43 "description": "Fired when debugging target has crashed",
44 "handlers": ["browser"]
53 "name": "getDOMCounters",
55 { "name": "documents", "type": "integer" },
56 { "name": "nodes", "type": "integer" },
57 { "name": "jsEventListeners", "type": "integer" }
64 "description": "Actions and events related to the inspected page belong to the page domain.",
69 "enum": ["Document", "Stylesheet", "Image", "Media", "Font", "Script", "TextTrack", "XHR", "Fetch", "EventSource", "WebSocket", "Other"],
70 "description": "Resource type as it was perceived by the rendering engine."
75 "description": "Unique frame identifier."
80 "description": "Information about the Frame on the page.",
82 { "name": "id", "type": "string", "description": "Frame unique identifier." },
83 { "name": "parentId", "type": "string", "optional": true, "description": "Parent frame identifier." },
84 { "name": "loaderId", "$ref": "Network.LoaderId", "description": "Identifier of the loader associated with this frame." },
85 { "name": "name", "type": "string", "optional": true, "description": "Frame's name as specified in the tag." },
86 { "name": "url", "type": "string", "description": "Frame document's URL." },
87 { "name": "securityOrigin", "type": "string", "description": "Frame document's security origin." },
88 { "name": "mimeType", "type": "string", "description": "Frame document's mimeType as determined by the browser." }
92 "id": "FrameResourceTree",
94 "description": "Information about the Frame hierarchy along with their cached resources.",
96 { "name": "frame", "$ref": "Frame", "description": "Frame information for this tree item." },
97 { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." },
98 { "name": "resources", "type": "array",
102 { "name": "url", "type": "string", "description": "Resource URL." },
103 { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." },
104 { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
105 { "name": "failed", "type": "boolean", "optional": true, "description": "True if the resource failed to load." },
106 { "name": "canceled", "type": "boolean", "optional": true, "description": "True if the resource was canceled during loading." }
109 "description": "Information about frame resources."
115 "id": "ScriptIdentifier",
117 "description": "Unique script identifier.",
121 "id": "NavigationEntry",
123 "description": "Navigation history entry.",
125 { "name": "id", "type": "integer", "description": "Unique id of the navigation history entry." },
126 { "name": "url", "type": "string", "description": "URL of the navigation history entry." },
127 { "name": "title", "type": "string", "description": "Title of the navigation history entry." }
132 "id": "ScreencastFrameMetadata",
134 "description": "Screencast frame metadata",
136 { "name": "offsetTop", "type": "number", "hidden": true, "description": "Top offset in DIP." },
137 { "name": "pageScaleFactor", "type": "number", "hidden": true, "description": "Page scale factor." },
138 { "name": "deviceWidth", "type": "number", "hidden": true, "description": "Device screen width in DIP." },
139 { "name": "deviceHeight", "type": "number", "hidden": true, "description": "Device screen height in DIP." },
140 { "name": "scrollOffsetX", "type": "number", "hidden": true, "description": "Position of horizontal scroll in CSS pixels." },
141 { "name": "scrollOffsetY", "type": "number", "hidden": true, "description": "Position of vertical scroll in CSS pixels." },
142 { "name": "timestamp", "type": "number", "optional": true, "hidden": true, "description": "Frame swap timestamp." }
148 "description": "Javascript dialog type",
150 "enum": ["alert", "confirm", "prompt", "beforeunload"],
157 "description": "Enables page domain notifications.",
158 "handlers": ["browser", "renderer"]
162 "description": "Disables page domain notifications.",
163 "handlers": ["browser", "renderer"]
166 "name": "addScriptToEvaluateOnLoad",
168 { "name": "scriptSource", "type": "string" }
171 { "name": "identifier", "$ref": "ScriptIdentifier", "description": "Identifier of the added script." }
176 "name": "removeScriptToEvaluateOnLoad",
178 { "name": "identifier", "$ref": "ScriptIdentifier" }
185 { "name": "ignoreCache", "type": "boolean", "optional": true, "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh)." },
186 { "name": "scriptToEvaluateOnLoad", "type": "string", "optional": true, "description": "If set, the script will be injected into all frames of the inspected page after reload." }
188 "description": "Reloads given page optionally ignoring the cache.",
189 "handlers": ["browser", "renderer"]
194 { "name": "url", "type": "string", "description": "URL to navigate the page to." }
197 { "name": "frameId", "$ref": "FrameId", "hidden": true, "description": "Frame id that will be navigated." }
199 "description": "Navigates current page to the given URL.",
200 "handlers": ["browser", "renderer"]
203 "name": "getNavigationHistory",
206 { "name": "currentIndex", "type": "integer", "description": "Index of the current navigation history entry." },
207 { "name": "entries", "type": "array", "items": { "$ref": "NavigationEntry" }, "description": "Array of navigation history entries." }
209 "description": "Returns navigation history for the current page.",
211 "handlers": ["browser"]
214 "name": "navigateToHistoryEntry",
216 { "name": "entryId", "type": "integer", "description": "Unique id of the entry to navigate to." }
218 "description": "Navigates current page to the given history entry.",
220 "handlers": ["browser"]
223 "name": "getCookies",
225 { "name": "cookies", "type": "array", "items": { "$ref": "Network.Cookie" }, "description": "Array of cookie objects." }
227 "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.",
228 "handlers": ["browser"],
231 "redirect": "Network"
234 "name": "deleteCookie",
236 { "name": "cookieName", "type": "string", "description": "Name of the cookie to remove." },
237 { "name": "url", "type": "string", "description": "URL to match cooke domain and path." }
239 "description": "Deletes browser cookie with given name, domain and path.",
240 "handlers": ["browser"],
243 "redirect": "Network"
246 "name": "getResourceTree",
247 "description": "Returns present frame / resource tree structure.",
249 { "name": "frameTree", "$ref": "FrameResourceTree", "description": "Present frame / resource tree structure." }
254 "name": "getResourceContent",
256 "description": "Returns content of the given resource.",
258 { "name": "frameId", "$ref": "FrameId", "description": "Frame id to get resource for." },
259 { "name": "url", "type": "string", "description": "URL of the resource to get content for." }
262 { "name": "content", "type": "string", "description": "Resource content." },
263 { "name": "base64Encoded", "type": "boolean", "description": "True, if content was served as base64." }
268 "name": "searchInResource",
269 "description": "Searches for given string in resource content.",
271 { "name": "frameId", "$ref": "FrameId", "description": "Frame id for resource to search in." },
272 { "name": "url", "type": "string", "description": "URL of the resource to search in." },
273 { "name": "query", "type": "string", "description": "String to search for." },
274 { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
275 { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." }
278 { "name": "result", "type": "array", "items": { "$ref": "Debugger.SearchMatch" }, "description": "List of search matches." }
283 "name": "setDocumentContent",
284 "description": "Sets given markup as the document's HTML.",
286 { "name": "frameId", "$ref": "FrameId", "description": "Frame id to set HTML for." },
287 { "name": "html", "type": "string", "description": "HTML content to set." }
292 "name": "setDeviceMetricsOverride",
293 "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).",
295 { "name": "width", "type": "integer", "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
296 { "name": "height", "type": "integer", "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
297 { "name": "deviceScaleFactor", "type": "number", "description": "Overriding device scale factor value. 0 disables the override." },
298 { "name": "mobile", "type": "boolean", "description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more." },
299 { "name": "fitWindow", "type": "boolean", "description": "Whether a view that exceeds the available browser window area should be scaled down to fit." },
300 { "name": "scale", "type": "number", "optional": true, "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." },
301 { "name": "offsetX", "type": "number", "optional": true, "description": "X offset to shift resulting view image by. Ignored in |fitWindow| mode." },
302 { "name": "offsetY", "type": "number", "optional": true, "description": "Y offset to shift resulting view image by. Ignored in |fitWindow| mode." },
303 { "name": "screenWidth", "type": "integer", "optional": true, "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
304 { "name": "screenHeight", "type": "integer", "optional": true, "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
305 { "name": "positionX", "type": "integer", "optional": true, "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
306 { "name": "positionY", "type": "integer", "optional": true, "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }
308 "handlers": ["browser"],
309 "redirect": "Emulation",
313 "name": "clearDeviceMetricsOverride",
314 "description": "Clears the overriden device metrics.",
315 "handlers": ["browser"],
316 "redirect": "Emulation",
320 "name": "setGeolocationOverride",
321 "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.",
323 { "name": "latitude", "type": "number", "optional": true, "description": "Mock latitude"},
324 { "name": "longitude", "type": "number", "optional": true, "description": "Mock longitude"},
325 { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"}
327 "redirect": "Emulation",
328 "handlers": ["browser"]
331 "name": "clearGeolocationOverride",
332 "description": "Clears the overriden Geolocation Position and Error.",
333 "redirect": "Emulation",
334 "handlers": ["browser"]
337 "name": "setDeviceOrientationOverride",
338 "description": "Overrides the Device Orientation.",
340 { "name": "alpha", "type": "number", "description": "Mock alpha"},
341 { "name": "beta", "type": "number", "description": "Mock beta"},
342 { "name": "gamma", "type": "number", "description": "Mock gamma"}
344 "redirect": "DeviceOrientation",
348 "name": "clearDeviceOrientationOverride",
349 "description": "Clears the overridden Device Orientation.",
350 "redirect": "DeviceOrientation",
354 "name": "setTouchEmulationEnabled",
356 { "name": "enabled", "type": "boolean", "description": "Whether the touch event emulation should be enabled." },
357 { "name": "configuration", "type": "string", "enum": ["mobile", "desktop"], "optional": true, "description": "Touch/gesture events configuration. Default: current platform." }
359 "description": "Toggles mouse event-based touch event emulation.",
361 "redirect": "Emulation",
362 "handlers": ["browser", "renderer"]
365 "name": "captureScreenshot",
367 "description": "Capture page screenshot.",
370 { "name": "data", "type": "string", "description": "Base64-encoded image data (PNG)." }
373 "handlers": ["browser"]
376 "name": "canScreencast",
377 "description": "Tells whether screencast is supported.",
379 { "name": "result", "type": "boolean", "description": "True if screencast is supported." }
382 "handlers": ["browser"]
385 "name": "startScreencast",
386 "description": "Starts sending each frame using the <code>screencastFrame</code> event.",
388 { "name": "format", "type": "string", "optional": true, "enum": ["jpeg", "png"], "description": "Image compression format." },
389 { "name": "quality", "type": "integer", "optional": true, "description": "Compression quality from range [0..100]." },
390 { "name": "maxWidth", "type": "integer", "optional": true, "description": "Maximum screenshot width." },
391 { "name": "maxHeight", "type": "integer", "optional": true, "description": "Maximum screenshot height." }
394 "handlers": ["browser", "renderer"]
397 "name": "stopScreencast",
398 "description": "Stops sending each frame in the <code>screencastFrame</code>.",
400 "handlers": ["browser", "renderer"]
403 "name": "screencastFrameAck",
404 "description": "Acknowledges that a screencast frame has been received by the frontend.",
406 { "name": "frameNumber", "type": "integer", "description": "Frame number." }
409 "handlers": ["browser"]
412 "name": "handleJavaScriptDialog",
413 "description": "Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).",
415 { "name": "accept", "type": "boolean", "description": "Whether to accept or dismiss the dialog." },
416 { "name": "promptText", "type": "string", "optional": true, "description": "The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog." }
419 "handlers": ["browser"]
422 "name": "setShowViewportSizeOnResize",
423 "description": "Paints viewport size upon main frame resize.",
425 { "name": "show", "type": "boolean", "description": "Whether to paint size or not." },
426 { "name": "showGrid", "type": "boolean", "optional": true, "description": "Whether to paint grid as well." }
431 "name": "setColorPickerEnabled",
433 { "name": "enabled", "type": "boolean", "description": "Shows / hides color picker" }
435 "description": "Shows / hides color picker",
437 "handlers": ["browser"]
440 "name": "setOverlayMessage",
442 { "name": "message", "type": "string", "optional": true, "description": "Overlay message to display when paused in debugger." }
445 "description": "Sets overlay message."
450 "name": "domContentEventFired",
452 { "name": "timestamp", "type": "number" }
456 "name": "loadEventFired",
458 { "name": "timestamp", "type": "number" }
462 "name": "frameAttached",
463 "description": "Fired when frame has been attached to its parent.",
465 { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has been attached." },
466 { "name": "parentFrameId", "$ref": "FrameId", "description": "Parent frame identifier." }
470 "name": "frameNavigated",
471 "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
473 { "name": "frame", "$ref": "Frame", "description": "Frame object." }
477 "name": "frameDetached",
478 "description": "Fired when frame has been detached from its parent.",
480 { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has been detached." }
484 "name": "frameStartedLoading",
485 "description": "Fired when frame has started loading.",
487 { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has started loading." }
492 "name": "frameStoppedLoading",
493 "description": "Fired when frame has stopped loading.",
495 { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has stopped loading." }
500 "name": "frameScheduledNavigation",
501 "description": "Fired when frame schedules a potential navigation.",
503 { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has scheduled a navigation." },
504 { "name": "delay", "type": "number", "description": "Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start." }
509 "name": "frameClearedScheduledNavigation",
510 "description": "Fired when frame no longer has a scheduled navigation.",
512 { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has cleared its scheduled navigation." }
517 "name": "frameResized",
521 "name": "javascriptDialogOpening",
522 "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.",
524 { "name": "message", "type": "string", "description": "Message that will be displayed by the dialog." },
525 { "name": "type", "$ref": "DialogType", "description": "Dialog type." }
530 "name": "javascriptDialogClosed",
531 "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.",
533 { "name": "result", "type": "boolean", "description": "Whether dialog was confirmed." }
538 "name": "screencastFrame",
539 "description": "Compressed image data requested by the <code>startScreencast</code>.",
541 { "name": "data", "type": "string", "description": "Base64-encoded compressed image." },
542 { "name": "metadata", "$ref": "ScreencastFrameMetadata", "description": "Screencast frame metadata."},
543 { "name": "frameNumber", "type": "integer", "optional": true, "description": "Frame number."}
546 "handlers": ["browser"]
549 "name": "screencastVisibilityChanged",
550 "description": "Fired when the page with currently enabled screencast was shown or hidden </code>.",
552 { "name": "visible", "type": "boolean", "description": "True if the page is visible." }
555 "handlers": ["browser"]
558 "name": "colorPicked",
559 "description": "Fired when a color has been picked.",
561 { "name": "color", "$ref": "DOM.RGBA", "description": "RGBA of the picked color." }
564 "handlers": ["browser"]
567 "name": "interstitialShown",
568 "description": "Fired when interstitial page was shown",
570 "handlers": ["browser"]
573 "name": "interstitialHidden",
574 "description": "Fired when interstitial page was hidden",
576 "handlers": ["browser"]
581 "domain": "Rendering",
582 "description": "This domain allows to control rendering of the page.",
586 "name": "setShowPaintRects",
587 "description": "Requests that backend shows paint rectangles",
589 { "name": "result", "type": "boolean", "description": "True for showing paint rectangles" }
593 "name": "setShowDebugBorders",
594 "description": "Requests that backend shows debug borders on layers",
596 { "name": "show", "type": "boolean", "description": "True for showing debug borders" }
600 "name": "setShowFPSCounter",
601 "description": "Requests that backend shows the FPS counter",
603 { "name": "show", "type": "boolean", "description": "True for showing the FPS counter" }
607 "name": "setShowScrollBottleneckRects",
608 "description": "Requests that backend shows scroll bottleneck rects",
610 { "name": "show", "type": "boolean", "description": "True for showing scroll bottleneck rects" }
616 "domain": "Emulation",
617 "description": "This domain emulates different environments for the page.",
623 "description": "Visible page viewport",
625 { "name": "scrollX", "type": "number", "description": "X scroll offset in CSS pixels." },
626 { "name": "scrollY", "type": "number", "description": "Y scroll offset in CSS pixels." },
627 { "name": "contentsWidth", "type": "number", "description": "Contents width in CSS pixels." },
628 { "name": "contentsHeight", "type": "number", "description": "Contents height in CSS pixels." },
629 { "name": "pageScaleFactor", "type": "number", "description": "Page scale factor." },
630 { "name": "minimumPageScaleFactor", "type": "number", "description": "Minimum page scale factor." },
631 { "name": "maximumPageScaleFactor", "type": "number", "description": "Maximum page scale factor." }
637 "name": "setDeviceMetricsOverride",
638 "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).",
640 { "name": "width", "type": "integer", "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
641 { "name": "height", "type": "integer", "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
642 { "name": "deviceScaleFactor", "type": "number", "description": "Overriding device scale factor value. 0 disables the override." },
643 { "name": "mobile", "type": "boolean", "description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more." },
644 { "name": "fitWindow", "type": "boolean", "description": "Whether a view that exceeds the available browser window area should be scaled down to fit." },
645 { "name": "scale", "type": "number", "optional": true, "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." },
646 { "name": "offsetX", "type": "number", "optional": true, "description": "X offset to shift resulting view image by. Ignored in |fitWindow| mode." },
647 { "name": "offsetY", "type": "number", "optional": true, "description": "Y offset to shift resulting view image by. Ignored in |fitWindow| mode." },
648 { "name": "screenWidth", "type": "integer", "optional": true, "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
649 { "name": "screenHeight", "type": "integer", "optional": true, "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
650 { "name": "positionX", "type": "integer", "optional": true, "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
651 { "name": "positionY", "type": "integer", "optional": true, "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }
653 "handlers": ["browser"]
656 "name": "clearDeviceMetricsOverride",
657 "description": "Clears the overriden device metrics.",
658 "handlers": ["browser"]
661 "name": "resetScrollAndPageScaleFactor",
662 "description": "Requests that scroll offsets and page scale factor are reset to initial values."
665 "name": "setPageScaleFactor",
666 "description": "Sets a specified page scale factor.",
668 { "name": "pageScaleFactor", "type": "number", "description": "Page scale factor." }
672 "name": "setScriptExecutionDisabled",
673 "description": "Switches script execution in the page.",
675 { "name": "value", "type": "boolean", "description": "Whether script execution should be disabled in the page." }
679 "name": "setGeolocationOverride",
680 "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.",
682 { "name": "latitude", "type": "number", "optional": true, "description": "Mock latitude"},
683 { "name": "longitude", "type": "number", "optional": true, "description": "Mock longitude"},
684 { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"}
686 "handlers": ["browser"]
689 "name": "clearGeolocationOverride",
690 "description": "Clears the overriden Geolocation Position and Error.",
691 "handlers": ["browser"]
694 "name": "setTouchEmulationEnabled",
696 { "name": "enabled", "type": "boolean", "description": "Whether the touch event emulation should be enabled." },
697 { "name": "configuration", "type": "string", "enum": ["mobile", "desktop"], "optional": true, "description": "Touch/gesture events configuration. Default: current platform." }
699 "description": "Toggles mouse event-based touch event emulation.",
700 "handlers": ["browser", "renderer"]
703 "name": "setEmulatedMedia",
705 { "name": "media", "type": "string", "description": "Media type to emulate. Empty string disables the override." }
707 "description": "Emulates the given media for CSS media queries."
710 "name": "canEmulate",
711 "description": "Tells whether emulation is supported.",
713 { "name": "result", "type": "boolean", "description": "True if emulation is supported." }
715 "handlers": ["browser"]
720 "name": "viewportChanged",
721 "description": "Fired when a visible page viewport has changed. Only fired when device metrics are overridden.",
723 { "name": "viewport", "$ref": "Viewport", "description": "Viewport description." }
730 "description": "Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.",
733 "id": "RemoteObjectId",
735 "description": "Unique object identifier."
738 "id": "RemoteObject",
740 "description": "Mirror object referencing original JavaScript object.",
742 { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol"], "description": "Object type." },
743 { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for <code>object</code> type values only." },
744 { "name": "className", "type": "string", "optional": true, "description": "Object class (constructor) name. Specified for <code>object</code> type values only." },
745 { "name": "value", "type": "any", "optional": true, "description": "Remote object value in case of primitive values or JSON values (if it was requested), or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0)." },
746 { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." },
747 { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Unique object identifier (for non-primitive values)." },
748 { "name": "preview", "$ref": "ObjectPreview", "optional": true, "description": "Preview containing abbreviated property values. Specified for <code>object</code> type values only.", "hidden": true },
749 { "name": "customPreview", "$ref": "CustomPreview", "optional": true, "hidden": true}
752 { "id": "CustomPreview",
756 { "name": "header", "type": "string"},
757 { "name": "hasBody", "type": "boolean"},
758 {"name": "formatterObjectId", "$ref": "RemoteObjectId"},
759 {"name": "configObjectId", "$ref": "RemoteObjectId", "optional": true}
763 "id": "ObjectPreview",
766 "description": "Object containing abbreviated remote object value.",
768 { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol"], "description": "Object type." },
769 { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for <code>object</code> type values only." },
770 { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." },
771 { "name": "lossless", "type": "boolean", "description": "Determines whether preview is lossless (contains all information of the original object)." },
772 { "name": "overflow", "type": "boolean", "description": "True iff some of the properties or entries of the original object did not fit." },
773 { "name": "properties", "type": "array", "items": { "$ref": "PropertyPreview" }, "description": "List of the properties." },
774 { "name": "entries", "type": "array", "items": { "$ref": "EntryPreview" }, "optional": true, "description": "List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only." }
778 "id": "PropertyPreview",
782 { "name": "name", "type": "string", "description": "Property name." },
783 { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol", "accessor"], "description": "Object type. Accessor means that the property itself is an accessor property." },
784 { "name": "value", "type": "string", "optional": true, "description": "User-friendly property value string." },
785 { "name": "valuePreview", "$ref": "ObjectPreview", "optional": true, "description": "Nested value preview." },
786 { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for <code>object</code> type values only." }
790 "id": "EntryPreview",
794 { "name": "key", "$ref": "ObjectPreview", "optional": true, "description": "Preview of the key. Specified for map-like collection entries." },
795 { "name": "value", "$ref": "ObjectPreview", "description": "Preview of the value." }
799 "id": "PropertyDescriptor",
801 "description": "Object property descriptor.",
803 { "name": "name", "type": "string", "description": "Property name or symbol description." },
804 { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." },
805 { "name": "writable", "type": "boolean", "optional": true, "description": "True if the value associated with the property may be changed (data descriptors only)." },
806 { "name": "get", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only)." },
807 { "name": "set", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only)." },
808 { "name": "configurable", "type": "boolean", "description": "True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object." },
809 { "name": "enumerable", "type": "boolean", "description": "True if this property shows up during enumeration of the properties on the corresponding object." },
810 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
811 { "name": "isOwn", "optional": true, "type": "boolean", "description": "True if the property is owned for the object.", "hidden": true },
812 { "name": "symbol", "$ref": "RemoteObject", "optional": true, "description": "Property symbol object, if the property is of the <code>symbol</code> type.", "hidden": true }
816 "id": "InternalPropertyDescriptor",
818 "description": "Object internal property descriptor. This property isn't normally visible in JavaScript code.",
820 { "name": "name", "type": "string", "description": "Conventional property name." },
821 { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." }
826 "id": "CallArgument",
828 "description": "Represents function call argument. Either remote object id <code>objectId</code> or primitive <code>value</code> or neither of (for undefined) them should be specified.",
830 { "name": "value", "type": "any", "optional": true, "description": "Primitive value, or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0)." },
831 { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Remote object handle." },
832 { "name": "type", "optional": true, "hidden": true, "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol"], "description": "Object type." }
836 "id": "ExecutionContextId",
838 "description": "Id of an execution context."
841 "id": "ExecutionContextDescription",
843 "description": "Description of an isolated world.",
845 { "name": "id", "$ref": "ExecutionContextId", "description": "Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed." },
846 { "name": "type", "type": "string", "optional": true, "description": "Context type. It is used e.g. to distinguish content scripts from web page script.", "hidden": true },
847 { "name": "origin", "type": "string", "description": "Execution context origin.", "hidden": true},
848 { "name": "name", "type": "string", "description": "Human readable name describing given context.", "hidden": true},
849 { "name": "frameId", "type": "string", "description": "Id of the owning frame. May be an empty string if the context is not associated with a frame." }
857 { "name": "expression", "type": "string", "description": "Expression to evaluate." },
858 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." },
859 { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Determines whether Command Line API should be available during the evaluation.", "hidden": true },
860 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true },
861 { "name": "contextId", "$ref": "ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page." },
862 { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." },
863 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." }
866 { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." },
867 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
868 { "name": "exceptionDetails", "$ref": "Debugger.ExceptionDetails", "optional": true, "hidden": true, "description": "Exception details."}
870 "description": "Evaluates expression on global object."
873 "name": "callFunctionOn",
875 { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to call function on." },
876 { "name": "functionDeclaration", "type": "string", "description": "Declaration of the function to call." },
877 { "name": "arguments", "type": "array", "items": { "$ref": "CallArgument", "description": "Call argument." }, "optional": true, "description": "Call arguments. All call arguments must belong to the same JavaScript world as the target object." },
878 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true },
879 { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object which should be sent by value." },
880 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." }
883 { "name": "result", "$ref": "RemoteObject", "description": "Call result." },
884 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
886 "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
889 "name": "getProperties",
891 { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return properties for." },
892 { "name": "ownProperties", "optional": true, "type": "boolean", "description": "If true, returns properties belonging only to the element itself, not to its prototype chain." },
893 { "name": "accessorPropertiesOnly", "optional": true, "type": "boolean", "description": "If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.", "hidden": true },
894 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the results." }
897 { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor" }, "description": "Object properties." },
898 { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor" }, "description": "Internal object properties (only of the element itself).", "hidden": true },
899 { "name": "exceptionDetails", "$ref": "Debugger.ExceptionDetails", "optional": true, "hidden": true, "description": "Exception details."}
901 "description": "Returns properties of a given object. Object group of the result is inherited from the target object."
904 "name": "releaseObject",
906 { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to release." }
908 "description": "Releases remote object with given id."
911 "name": "releaseObjectGroup",
913 { "name": "objectGroup", "type": "string", "description": "Symbolic object group name." }
915 "description": "Releases all remote objects that belong to a given group."
920 "description": "Tells inspected instance(worker or page) that it can run in case it was started paused."
924 "description": "Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context."
929 "description": "Disables reporting of execution contexts creation."
932 "name": "isRunRequired",
934 { "name": "result", "type": "boolean", "description": "True if the Runtime is in paused on start state." }
939 "name": "setCustomObjectFormatterEnabled",
951 "name": "executionContextCreated",
953 { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." }
955 "description": "Issued when new execution context is created."
958 "name": "executionContextDestroyed",
960 { "name": "executionContextId", "$ref": "ExecutionContextId", "description": "Id of the destroyed context" }
962 "description": "Issued when execution context is destroyed."
965 "name": "executionContextsCleared",
966 "description": "Issued when all executionContexts were cleared in browser"
972 "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console API</a>. One needs to enable this domain using <code>enable</code> command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using <code>messageAdded</code> notification upon enabling.",
977 "description": "Number of seconds since epoch.",
981 "id": "ConsoleMessage",
983 "description": "Console message.",
985 { "name": "source", "type": "string", "enum": ["xml", "javascript", "network", "console-api", "storage", "appcache", "rendering", "security", "other", "deprecation"], "description": "Message source." },
986 { "name": "level", "type": "string", "enum": ["log", "warning", "error", "debug", "info", "revokedError"], "description": "Message severity." },
987 { "name": "text", "type": "string", "description": "Message text." },
988 { "name": "type", "type": "string", "optional": true, "enum": ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Console message type." },
989 { "name": "scriptId", "type": "string", "optional": true, "description": "Script ID of the message origin." },
990 { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },
991 { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." },
992 { "name": "column", "type": "integer", "optional": true, "description": "Column number in the resource that generated this message." },
993 { "name": "repeatCount", "type": "integer", "optional": true, "description": "Repeat count for repeated messages." },
994 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters in case of the formatted message." },
995 { "name": "stackTrace", "$ref": "StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." },
996 { "name": "asyncStackTrace", "$ref": "AsyncStackTrace", "optional": true, "description": "Asynchronous JavaScript stack trace that preceded this message, if available.", "hidden": true },
997 { "name": "networkRequestId", "$ref": "Network.RequestId", "optional": true, "description": "Identifier of the network request associated with this message." },
998 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp, when this message was fired.", "hidden": true },
999 { "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true },
1000 { "name": "messageId", "type": "integer", "hidden": true, "optional": true, "description": "Message id." },
1001 { "name": "relatedMessageId", "type": "integer", "hidden": true, "optional": true, "description": "Related message id." }
1007 "description": "Stack entry for console errors and assertions.",
1009 { "name": "functionName", "type": "string", "description": "JavaScript function name." },
1010 { "name": "scriptId", "type": "string", "description": "JavaScript script id." },
1011 { "name": "url", "type": "string", "description": "JavaScript script name or url." },
1012 { "name": "lineNumber", "type": "integer", "description": "JavaScript script line number." },
1013 { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
1019 "items": { "$ref": "CallFrame" },
1020 "description": "Call frames for assertions or error messages."
1023 "id": "AsyncStackTrace",
1026 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call frames of the stack trace." },
1027 { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." },
1028 { "name": "asyncStackTrace", "$ref": "AsyncStackTrace", "optional": true, "description": "Next asynchronous stack trace, if any." }
1030 "description": "Asynchronous JavaScript call stack.",
1037 "description": "Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification."
1041 "description": "Disables console domain, prevents further console messages from being reported to the client."
1044 "name": "clearMessages",
1045 "description": "Clears console messages collected in the browser."
1050 "name": "messageAdded",
1052 { "name": "message", "$ref": "ConsoleMessage", "description": "Console message that has been added." }
1054 "description": "Issued when new console message is added."
1057 "name": "messageRepeatCountUpdated",
1059 { "name": "count", "type": "integer", "description": "New repeat count value." },
1060 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp of most recent message in batch.", "hidden": true }
1062 "description": "Is not issued. Will be gone in the future versions of the protocol.",
1066 "name": "messagesCleared",
1067 "description": "Issued when console is cleared. This happens either upon <code>clearMessages</code> command or after page navigation."
1072 "domain": "Security",
1073 "description": "Security",
1077 "id": "SecurityState",
1079 "enum": ["unknown", "neutral", "insecure", "warning", "secure", "info"],
1080 "description": "The security level of a page or resource."
1083 "id": "SecurityStateExplanation",
1086 { "name": "securityState", "$ref": "SecurityState", "description": "Security state representing the severity of the factor being explained." },
1087 { "name": "summary", "type": "string", "description": "Short phrase describing the type of factor." },
1088 { "name": "description", "type": "string", "description": "Full text explanation of the factor." },
1089 { "name": "certificateId", "$ref": "Network.CertificateId", "optional": true, "description": "Associated certificate id." }
1091 "description": "An explanation of an factor contributing to the security state."
1094 "id": "MixedContentStatus",
1097 { "name": "ranInsecureContent", "type": "boolean", "description": "True if the page ran insecure content such as scripts." },
1098 { "name": "displayedInsecureContent", "type": "boolean", "description": "True if the page displayed insecure content such as images." },
1099 { "name": "ranInsecureContentStyle", "$ref": "SecurityState", "description": "Security state representing a page that ran insecure content." },
1100 { "name": "displayedInsecureContentStyle", "$ref": "SecurityState", "description": "Security state representing a page that displayed insecure content." }
1102 "description": "Information about mixed content on the page."
1108 "description": "Enables tracking security state changes.",
1109 "handlers": ["browser"]
1113 "description": "Disables tracking security state changes.",
1114 "handlers": ["browser"]
1119 "name": "securityStateChanged",
1120 "description": "The security state of the page changed.",
1122 { "name": "securityState", "$ref": "SecurityState", "description": "Security state." },
1123 { "name": "explanations", "type": "array", "items": { "$ref": "SecurityStateExplanation" }, "description": "List of explanations for the security state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included.", "optional": true },
1124 { "name": "mixedContentStatus", "$ref": "MixedContentStatus", "description": "Information about mixed content on the page.", "optional": true },
1125 { "name": "schemeIsCryptographic", "type": "boolean", "description": "True if the page was loaded over cryptographic transport such as HTTPS.", "optional": true }
1127 "handlers": ["browser"]
1132 "domain": "Network",
1133 "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
1138 "description": "Unique loader identifier."
1143 "description": "Unique request identifier."
1148 "description": "Number of seconds since epoch."
1153 "description": "Request / response headers as keys / values of JSON object."
1156 "id": "ResourceTiming",
1158 "description": "Timing information for the request.",
1160 { "name": "requestTime", "type": "number", "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime." },
1161 { "name": "proxyStart", "type": "number", "description": "Started resolving proxy." },
1162 { "name": "proxyEnd", "type": "number", "description": "Finished resolving proxy." },
1163 { "name": "dnsStart", "type": "number", "description": "Started DNS address resolve." },
1164 { "name": "dnsEnd", "type": "number", "description": "Finished DNS address resolve." },
1165 { "name": "connectStart", "type": "number", "description": "Started connecting to the remote host." },
1166 { "name": "connectEnd", "type": "number", "description": "Connected to the remote host." },
1167 { "name": "sslStart", "type": "number", "description": "Started SSL handshake." },
1168 { "name": "sslEnd", "type": "number", "description": "Finished SSL handshake." },
1169 { "name": "workerStart", "type": "number", "description": "Started running ServiceWorker.", "hidden": true },
1170 { "name": "workerReady", "type": "number", "description": "Finished Starting ServiceWorker.", "hidden": true },
1171 { "name": "sendStart", "type": "number", "description": "Started sending request." },
1172 { "name": "sendEnd", "type": "number", "description": "Finished sending request." },
1173 { "name": "receiveHeadersEnd", "type": "number", "description": "Finished receiving response headers." }
1177 "id": "ResourcePriority",
1179 "enum": ["VeryLow", "Low", "Medium", "High", "VeryHigh"],
1180 "description": "Loading priority of a resource request."
1185 "description": "HTTP request data.",
1187 { "name": "url", "type": "string", "description": "Request URL." },
1188 { "name": "method", "type": "string", "description": "HTTP request method." },
1189 { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." },
1190 { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." },
1191 { "name": "mixedContentType", "optional": true, "type": "string", "enum": ["blockable", "optionally-blockable", "none"], "description": "The mixed content status of the request, as defined in http://www.w3.org/TR/mixed-content/" },
1192 { "name": "initialPriority", "$ref": "ResourcePriority", "description": "Priority of the resource request at the time request is sent."}
1196 "id": "CertificateId",
1198 "description": "An internal certificate ID value."
1201 "id": "CertificateSubject",
1203 "description": "Subject of a certificate.",
1205 { "name": "name", "type": "string", "description": "Certificate subject name." },
1206 { "name": "sanDnsNames", "type": "array", "items": { "type": "string" }, "description": "Subject Alternative Name (SAN) DNS names." },
1207 { "name": "sanIpAddresses", "type": "array", "items": { "type": "string" }, "description": "Subject Alternative Name (SAN) IP addresses." }
1211 "id": "CertificateDetails",
1213 "description": "Details about a request's certificate.",
1215 { "name": "subject", "$ref": "CertificateSubject", "description": "Certificate subject." },
1216 { "name": "issuer", "type": "string", "description": "Name of the issuing CA." },
1217 { "name": "validFrom", "$ref": "Timestamp", "description": "Certificate valid from date." },
1218 { "name": "validTo", "$ref": "Timestamp", "description": "Certificate valid to (expiration) date" }
1222 "id": "SecurityDetails",
1224 "description": "Security details about a request.",
1226 { "name": "protocol", "type": "string", "description": "Protocol name (e.g. \"TLS 1.2\" or \"QUIC\"." },
1227 { "name": "keyExchange", "type": "string", "description": "Key Exchange used by the connection." },
1228 { "name": "cipher", "type": "string", "description": "Cipher name." },
1229 { "name": "mac", "type": "string", "optional": true, "description": "TLS MAC. Note that AEAD ciphers do not have separate MACs." },
1230 { "name": "certificateId", "$ref": "CertificateId", "description": "Certificate ID value." }
1234 "id": "BlockedReason",
1236 "description": "The reason why request was blocked.",
1237 "enum": ["csp", "mixed-content", "origin", "inspector", "other"],
1243 "description": "HTTP response data.",
1245 { "name": "url", "type": "string", "description": "Response URL. This URL can be different from CachedResource.url in case of redirect." },
1246 { "name": "status", "type": "number", "description": "HTTP response status code." },
1247 { "name": "statusText", "type": "string", "description": "HTTP response status text." },
1248 { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." },
1249 { "name": "headersText", "type": "string", "optional": true, "description": "HTTP response headers text." },
1250 { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
1251 { "name": "requestHeaders", "$ref": "Headers", "optional": true, "description": "Refined HTTP request headers that were actually transmitted over the network." },
1252 { "name": "requestHeadersText", "type": "string", "optional": true, "description": "HTTP request headers text." },
1253 { "name": "connectionReused", "type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." },
1254 { "name": "connectionId", "type": "number", "description": "Physical connection id that was actually used for this request." },
1255 { "name": "remoteIPAddress", "type": "string", "optional": true, "hidden": true, "description": "Remote IP address." },
1256 { "name": "remotePort", "type": "integer", "optional": true, "hidden": true, "description": "Remote port."},
1257 { "name": "fromDiskCache", "type": "boolean", "optional": true, "description": "Specifies that the request was served from the disk cache." },
1258 { "name": "fromServiceWorker", "type": "boolean", "optional": true, "description": "Specifies that the request was served from the ServiceWorker." },
1259 { "name": "encodedDataLength", "type": "number", "optional": false, "description": "Total number of bytes received for this request so far." },
1260 { "name": "timing", "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." },
1261 { "name": "protocol", "type": "string", "optional": true, "description": "Protocol used to fetch this request." },
1262 { "name": "securityState", "$ref": "Security.SecurityState", "description": "Security state of the request resource." },
1263 { "name": "securityDetails", "$ref": "SecurityDetails", "optional": true, "description": "Security details for the request." }
1267 "id": "WebSocketRequest",
1269 "description": "WebSocket request data.",
1272 { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." }
1276 "id": "WebSocketResponse",
1278 "description": "WebSocket response data.",
1281 { "name": "status", "type": "number", "description": "HTTP response status code." },
1282 { "name": "statusText", "type": "string", "description": "HTTP response status text." },
1283 { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." },
1284 { "name": "headersText", "type": "string", "optional": true, "description": "HTTP response headers text." },
1285 { "name": "requestHeaders", "$ref": "Headers", "optional": true, "description": "HTTP request headers." },
1286 { "name": "requestHeadersText", "type": "string", "optional": true, "description": "HTTP request headers text." }
1290 "id": "WebSocketFrame",
1292 "description": "WebSocket frame data.",
1295 { "name": "opcode", "type": "number", "description": "WebSocket frame opcode." },
1296 { "name": "mask", "type": "boolean", "description": "WebSocke frame mask." },
1297 { "name": "payloadData", "type": "string", "description": "WebSocke frame payload data." }
1301 "id": "CachedResource",
1303 "description": "Information about the cached resource.",
1305 { "name": "url", "type": "string", "description": "Resource URL. This is the url of the original network request." },
1306 { "name": "type", "$ref": "Page.ResourceType", "description": "Type of this resource." },
1307 { "name": "response", "$ref": "Response", "optional": true, "description": "Cached response data." },
1308 { "name": "bodySize", "type": "number", "description": "Cached response body size." }
1314 "description": "Information about the request initiator.",
1316 { "name": "type", "type": "string", "enum": ["parser", "script", "other"], "description": "Type of this initiator." },
1317 { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "Initiator JavaScript stack trace, set for Script only." },
1318 { "name": "url", "type": "string", "optional": true, "description": "Initiator URL, set for Parser type only." },
1319 { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only." },
1320 { "name": "asyncStackTrace", "$ref": "Console.AsyncStackTrace", "optional": true, "description": "Initiator asynchronous JavaScript stack trace, if available.", "hidden": true }
1326 "description": "Cookie object",
1328 { "name": "name", "type": "string", "description": "Cookie name." },
1329 { "name": "value", "type": "string", "description": "Cookie value." },
1330 { "name": "domain", "type": "string", "description": "Cookie domain." },
1331 { "name": "path", "type": "string", "description": "Cookie path." },
1332 { "name": "expires", "type": "number", "description": "Cookie expires." },
1333 { "name": "size", "type": "integer", "description": "Cookie size." },
1334 { "name": "httpOnly", "type": "boolean", "description": "True if cookie is http-only." },
1335 { "name": "secure", "type": "boolean", "description": "True if cookie is secure." },
1336 { "name": "session", "type": "boolean", "description": "True in case of session cookie." }
1344 "description": "Enables network tracking, network events will now be delivered to the client."
1348 "description": "Disables network tracking, prevents network events from being sent to the client."
1351 "name": "setUserAgentOverride",
1352 "description": "Allows overriding user agent with the given string.",
1354 { "name": "userAgent", "type": "string", "description": "User agent to use." }
1358 "name": "setExtraHTTPHeaders",
1359 "description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
1361 { "name": "headers", "$ref": "Headers", "description": "Map with extra HTTP headers." }
1365 "name": "getResponseBody",
1367 "description": "Returns content served for the given request.",
1369 { "name": "requestId", "$ref": "RequestId", "description": "Identifier of the network request to get content for." }
1372 { "name": "body", "type": "string", "description": "Response body." },
1373 { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." }
1377 "name": "addBlockedURL",
1378 "description": "Blocks specific URL from loading.",
1380 { "name": "url", "type": "string", "description": "URL to block." }
1385 "name": "removeBlockedURL",
1386 "description": "Cancels blocking of a specific URL from loading.",
1388 { "name": "url", "type": "string", "description": "URL to stop blocking." }
1393 "name": "replayXHR",
1394 "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.",
1396 { "name": "requestId", "$ref": "RequestId", "description": "Identifier of XHR to replay." }
1401 "name": "setMonitoringXHREnabled",
1403 { "name": "enabled", "type": "boolean", "description": "Monitoring enabled state." }
1405 "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued.",
1409 "name": "canClearBrowserCache",
1410 "description": "Tells whether clearing browser cache is supported.",
1412 { "name": "result", "type": "boolean", "description": "True if browser cache can be cleared." }
1416 "name": "clearBrowserCache",
1417 "description": "Clears browser cache.",
1418 "handlers": ["browser"]
1421 "name": "canClearBrowserCookies",
1422 "description": "Tells whether clearing browser cookies is supported.",
1424 { "name": "result", "type": "boolean", "description": "True if browser cookies can be cleared." }
1428 "name": "clearBrowserCookies",
1429 "description": "Clears browser cookies.",
1430 "handlers": ["browser"]
1433 "name": "getCookies",
1435 { "name": "cookies", "type": "array", "items": { "$ref": "Cookie" }, "description": "Array of cookie objects." }
1437 "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.",
1438 "handlers": ["browser"],
1443 "name": "deleteCookie",
1445 { "name": "cookieName", "type": "string", "description": "Name of the cookie to remove." },
1446 { "name": "url", "type": "string", "description": "URL to match cooke domain and path." }
1448 "description": "Deletes browser cookie with given name, domain and path.",
1449 "handlers": ["browser"],
1454 "name": "canEmulateNetworkConditions",
1455 "description": "Tells whether emulation of network conditions is supported.",
1457 { "name": "result", "type": "boolean", "description": "True if emulation of network conditions is supported." }
1460 "handlers": ["browser"]
1463 "name": "emulateNetworkConditions",
1464 "description": "Activates emulation of network conditions.",
1466 { "name": "offline", "type": "boolean", "description": "True to emulate internet disconnection." },
1467 { "name": "latency", "type": "number", "description": "Additional latency (ms)." },
1468 { "name": "downloadThroughput", "type": "number", "description": "Maximal aggregated download throughput." },
1469 { "name": "uploadThroughput", "type": "number", "description": "Maximal aggregated upload throughput." }
1472 "handlers": ["browser", "renderer"]
1475 "name": "setCacheDisabled",
1477 { "name": "cacheDisabled", "type": "boolean", "description": "Cache disabled state." }
1479 "description": "Toggles ignoring cache for each request. If <code>true</code>, cache will not be used."
1482 "name": "setDataSizeLimitsForTest",
1484 { "name": "maxTotalSize", "type": "integer", "description": "Maximum total buffer size." },
1485 { "name": "maxResourceSize", "type": "integer", "description": "Maximum per-resource size." }
1487 "description": "For testing.",
1491 "name": "getCertificateDetails",
1492 "description": "Returns details for the given certificate.",
1494 { "name": "certificateId", "$ref": "CertificateId", "description": "ID of the certificate to get details for." }
1497 { "name": "result", "$ref": "CertificateDetails", "description": "Certificate details." }
1499 "handlers": ["browser"]
1502 "name": "showCertificateViewer",
1503 "description": "Displays native dialog with the certificate details.",
1505 { "name": "certificateId", "$ref": "CertificateId", "description": "Certificate id." }
1507 "handlers": ["browser"]
1512 "name": "requestWillBeSent",
1513 "description": "Fired when page is about to send HTTP request.",
1515 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1516 { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "hidden": true },
1517 { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
1518 { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." },
1519 { "name": "request", "$ref": "Request", "description": "Request data." },
1520 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1521 { "name": "wallTime", "$ref": "Timestamp", "hidden": true, "description": "UTC Timestamp." },
1522 { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
1523 { "name": "redirectResponse", "optional": true, "$ref": "Response", "description": "Redirect response data." },
1524 { "name": "type", "$ref": "Page.ResourceType", "optional": true, "hidden": true, "description": "Type of this resource." }
1528 "name": "requestServedFromCache",
1529 "description": "Fired if request ended up loading from cache.",
1531 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }
1535 "name": "responseReceived",
1536 "description": "Fired when HTTP response is available.",
1538 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1539 { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "hidden": true },
1540 { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
1541 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1542 { "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." },
1543 { "name": "response", "$ref": "Response", "description": "Response data." }
1547 "name": "dataReceived",
1548 "description": "Fired when data chunk was received over the network.",
1550 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1551 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1552 { "name": "dataLength", "type": "integer", "description": "Data chunk length." },
1553 { "name": "encodedDataLength", "type": "integer", "description": "Actual bytes received (might be less than dataLength for compressed encodings)." }
1557 "name": "loadingFinished",
1558 "description": "Fired when HTTP request has finished loading.",
1560 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1561 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1562 { "name": "encodedDataLength", "type": "number", "description": "Total number of bytes received for this request." }
1566 "name": "loadingFailed",
1567 "description": "Fired when HTTP request has failed to load.",
1569 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1570 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1571 { "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." },
1572 { "name": "errorText", "type": "string", "description": "User friendly error message." },
1573 { "name": "canceled", "type": "boolean", "optional": true, "description": "True if loading was canceled." },
1574 { "name": "blockedReason", "$ref": "BlockedReason", "optional": true, "description": "The reason why loading was blocked, if any.", "hidden": true }
1578 "name": "webSocketWillSendHandshakeRequest",
1579 "description": "Fired when WebSocket is about to initiate handshake.",
1581 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1582 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1583 { "name": "wallTime", "$ref": "Timestamp", "hidden": true, "description": "UTC Timestamp." },
1584 { "name": "request", "$ref": "WebSocketRequest", "description": "WebSocket request data." }
1589 "name": "webSocketHandshakeResponseReceived",
1590 "description": "Fired when WebSocket handshake response becomes available.",
1592 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1593 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1594 { "name": "response", "$ref": "WebSocketResponse", "description": "WebSocket response data." }
1599 "name": "webSocketCreated",
1600 "description": "Fired upon WebSocket creation.",
1602 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1603 { "name": "url", "type": "string", "description": "WebSocket request URL." }
1608 "name": "webSocketClosed",
1609 "description": "Fired when WebSocket is closed.",
1611 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1612 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }
1617 "name": "webSocketFrameReceived",
1618 "description": "Fired when WebSocket frame is received.",
1620 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1621 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1622 { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." }
1627 "name": "webSocketFrameError",
1628 "description": "Fired when WebSocket frame error occurs.",
1630 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1631 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1632 { "name": "errorMessage", "type": "string", "description": "WebSocket frame error message." }
1637 "name": "webSocketFrameSent",
1638 "description": "Fired when WebSocket frame is sent.",
1640 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1641 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1642 { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." }
1647 "name": "eventSourceMessageReceived",
1648 "description": "Fired when EventSource message is received.",
1650 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1651 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1652 { "name": "eventName", "type": "string", "description": "Message type." },
1653 { "name": "eventId", "type": "string", "description": "Message identifier." },
1654 { "name": "data", "type": "string", "description": "Message content." }
1661 "domain": "Database",
1667 "description": "Unique identifier of Database object.",
1673 "description": "Database object.",
1676 { "name": "id", "$ref": "DatabaseId", "description": "Database ID." },
1677 { "name": "domain", "type": "string", "description": "Database domain." },
1678 { "name": "name", "type": "string", "description": "Database name." },
1679 { "name": "version", "type": "string", "description": "Database version." }
1685 "description": "Database error.",
1687 { "name": "message", "type": "string", "description": "Error message." },
1688 { "name": "code", "type": "integer", "description": "Error code." }
1695 "description": "Enables database tracking, database events will now be delivered to the client."
1699 "description": "Disables database tracking, prevents database events from being sent to the client."
1702 "name": "getDatabaseTableNames",
1704 { "name": "databaseId", "$ref": "DatabaseId" }
1707 { "name": "tableNames", "type": "array", "items": { "type": "string" } }
1711 "name": "executeSQL",
1714 { "name": "databaseId", "$ref": "DatabaseId" },
1715 { "name": "query", "type": "string" }
1718 { "name": "columnNames", "type": "array", "optional": true, "items": { "type": "string" } },
1719 { "name": "values", "type": "array", "optional": true, "items": { "type": "any" }},
1720 { "name": "sqlError", "$ref": "Error", "optional": true }
1726 "name": "addDatabase",
1728 { "name": "database", "$ref": "Database" }
1734 "domain": "IndexedDB",
1738 "id": "DatabaseWithObjectStores",
1740 "description": "Database with an array of object stores.",
1742 { "name": "name", "type": "string", "description": "Database name." },
1743 { "name": "version", "type": "string", "description": "Deprecated string database version." },
1744 { "name": "intVersion", "type": "integer", "description": "Integer database version." },
1745 { "name": "objectStores", "type": "array", "items": { "$ref": "ObjectStore" }, "description": "Object stores in this database." }
1749 "id": "ObjectStore",
1751 "description": "Object store.",
1753 { "name": "name", "type": "string", "description": "Object store name." },
1754 { "name": "keyPath", "$ref": "KeyPath", "description": "Object store key path." },
1755 { "name": "autoIncrement", "type": "boolean", "description": "If true, object store has auto increment flag set." },
1756 { "name": "indexes", "type": "array", "items": { "$ref": "ObjectStoreIndex" }, "description": "Indexes in this object store." }
1760 "id": "ObjectStoreIndex",
1762 "description": "Object store index.",
1764 { "name": "name", "type": "string", "description": "Index name." },
1765 { "name": "keyPath", "$ref": "KeyPath", "description": "Index key path." },
1766 { "name": "unique", "type": "boolean", "description": "If true, index is unique." },
1767 { "name": "multiEntry", "type": "boolean", "description": "If true, index allows multiple entries for a key." }
1773 "description": "Key.",
1775 { "name": "type", "type": "string", "enum": ["number", "string", "date", "array"], "description": "Key type." },
1776 { "name": "number", "type": "number", "optional": true, "description": "Number value." },
1777 { "name": "string", "type": "string", "optional": true, "description": "String value." },
1778 { "name": "date", "type": "number", "optional": true, "description": "Date value." },
1779 { "name": "array", "type": "array", "optional": true, "items": { "$ref": "Key" }, "description": "Array value." }
1785 "description": "Key range.",
1787 { "name": "lower", "$ref": "Key", "optional": true, "description": "Lower bound." },
1788 { "name": "upper", "$ref": "Key", "optional": true, "description": "Upper bound." },
1789 { "name": "lowerOpen", "type": "boolean", "description": "If true lower bound is open." },
1790 { "name": "upperOpen", "type": "boolean", "description": "If true upper bound is open." }
1796 "description": "Data entry.",
1798 { "name": "key", "type": "string", "description": "JSON-stringified key object." },
1799 { "name": "primaryKey", "type": "string", "description": "JSON-stringified primary key object." },
1800 { "name": "value", "type": "string", "description": "JSON-stringified value object." }
1806 "description": "Key path.",
1808 { "name": "type", "type": "string", "enum": ["null", "string", "array"], "description": "Key path type." },
1809 { "name": "string", "type": "string", "optional": true, "description": "String value." },
1810 { "name": "array", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Array value." }
1817 "description": "Enables events from backend."
1821 "description": "Disables events from backend."
1824 "name": "requestDatabaseNames",
1827 { "name": "securityOrigin", "type": "string", "description": "Security origin." }
1830 { "name": "databaseNames", "type": "array", "items": { "type": "string" }, "description": "Database names for origin." }
1832 "description": "Requests database names for given security origin."
1835 "name": "requestDatabase",
1838 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1839 { "name": "databaseName", "type": "string", "description": "Database name." }
1842 { "name": "databaseWithObjectStores", "$ref": "DatabaseWithObjectStores", "description": "Database with an array of object stores." }
1844 "description": "Requests database with given name in given frame."
1847 "name": "requestData",
1850 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1851 { "name": "databaseName", "type": "string", "description": "Database name." },
1852 { "name": "objectStoreName", "type": "string", "description": "Object store name." },
1853 { "name": "indexName", "type": "string", "description": "Index name, empty string for object store data requests." },
1854 { "name": "skipCount", "type": "integer", "description": "Number of records to skip." },
1855 { "name": "pageSize", "type": "integer", "description": "Number of records to fetch." },
1856 { "name": "keyRange", "$ref": "KeyRange", "optional": true, "description": "Key range." }
1859 { "name": "objectStoreDataEntries", "type": "array", "items": { "$ref": "DataEntry" }, "description": "Array of object store data entries." },
1860 { "name": "hasMore", "type": "boolean", "description": "If true, there are more entries to fetch in the given range." }
1862 "description": "Requests data from object store or index."
1865 "name": "clearObjectStore",
1868 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1869 { "name": "databaseName", "type": "string", "description": "Database name." },
1870 { "name": "objectStoreName", "type": "string", "description": "Object store name." }
1874 "description": "Clears all entries from an object store."
1879 "domain": "CacheStorage",
1885 "description": "Unique identifier of the Cache object."
1890 "description": "Data entry.",
1892 { "name": "request", "type": "string", "description": "Request url spec." },
1893 { "name": "response", "type": "string", "description": "Response stataus text." }
1899 "description": "Cache identifier.",
1901 { "name": "cacheId", "$ref": "CacheId", "description": "An opaque unique id of the cache." },
1902 { "name": "securityOrigin", "type": "string", "description": "Security origin of the cache." },
1903 { "name": "cacheName", "type": "string", "description": "The name of the cache." }
1909 "name": "requestCacheNames",
1912 { "name": "securityOrigin", "type": "string", "description": "Security origin." }
1915 { "name": "caches", "type": "array", "items": { "$ref": "Cache" }, "description": "Caches for the security origin." }
1917 "description": "Requests cache names."
1920 "name": "requestEntries",
1923 { "name": "cacheId", "$ref": "CacheId", "description": "ID of cache to get entries from." },
1924 { "name": "skipCount", "type": "integer", "description": "Number of records to skip." },
1925 { "name": "pageSize", "type": "integer", "description": "Number of records to fetch." }
1928 { "name": "cacheDataEntries", "type": "array", "items": { "$ref": "DataEntry" }, "description": "Array of object store data entries." },
1929 { "name": "hasMore", "type": "boolean", "description": "If true, there are more entries to fetch in the given range." }
1931 "description": "Requests data from cache."
1934 "name": "deleteCache",
1937 { "name": "cacheId", "$ref": "CacheId", "description": "Id of cache for deletion." }
1939 "description": "Deletes a cache."
1942 "name": "deleteEntry",
1945 { "name": "cacheId", "$ref": "CacheId", "description": "Id of cache where the entry will be deleted." },
1946 { "name": "request", "type": "string", "description": "URL spec of the request." }
1948 "description": "Deletes a cache entry."
1953 "domain": "DOMStorage",
1955 "description": "Query and modify DOM storage.",
1960 "description": "DOM Storage identifier.",
1963 { "name": "securityOrigin", "type": "string", "description": "Security origin for the storage." },
1964 { "name": "isLocalStorage", "type": "boolean", "description": "Whether the storage is local storage (not session storage)." }
1970 "description": "DOM Storage item.",
1972 "items": { "type": "string" }
1978 "description": "Enables storage tracking, storage events will now be delivered to the client."
1982 "description": "Disables storage tracking, prevents storage events from being sent to the client."
1985 "name": "getDOMStorageItems",
1987 { "name": "storageId", "$ref": "StorageId" }
1990 { "name": "entries", "type": "array", "items": { "$ref": "Item" } }
1994 "name": "setDOMStorageItem",
1996 { "name": "storageId", "$ref": "StorageId" },
1997 { "name": "key", "type": "string" },
1998 { "name": "value", "type": "string" }
2002 "name": "removeDOMStorageItem",
2004 { "name": "storageId", "$ref": "StorageId" },
2005 { "name": "key", "type": "string" }
2011 "name": "domStorageItemsCleared",
2013 { "name": "storageId", "$ref": "StorageId" }
2017 "name": "domStorageItemRemoved",
2019 { "name": "storageId", "$ref": "StorageId" },
2020 { "name": "key", "type": "string" }
2024 "name": "domStorageItemAdded",
2026 { "name": "storageId", "$ref": "StorageId" },
2027 { "name": "key", "type": "string" },
2028 { "name": "newValue", "type": "string" }
2032 "name": "domStorageItemUpdated",
2034 { "name": "storageId", "$ref": "StorageId" },
2035 { "name": "key", "type": "string" },
2036 { "name": "oldValue", "type": "string" },
2037 { "name": "newValue", "type": "string" }
2043 "domain": "ApplicationCache",
2047 "id": "ApplicationCacheResource",
2049 "description": "Detailed application cache resource information.",
2051 { "name": "url", "type": "string", "description": "Resource url." },
2052 { "name": "size", "type": "integer", "description": "Resource size." },
2053 { "name": "type", "type": "string", "description": "Resource type." }
2057 "id": "ApplicationCache",
2059 "description": "Detailed application cache information.",
2061 { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
2062 { "name": "size", "type": "number", "description": "Application cache size." },
2063 { "name": "creationTime", "type": "number", "description": "Application cache creation time." },
2064 { "name": "updateTime", "type": "number", "description": "Application cache update time." },
2065 { "name": "resources", "type": "array", "items": { "$ref": "ApplicationCacheResource" }, "description": "Application cache resources." }
2069 "id": "FrameWithManifest",
2071 "description": "Frame identifier - manifest URL pair.",
2073 { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier." },
2074 { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
2075 { "name": "status", "type": "integer", "description": "Application cache status." }
2081 "name": "getFramesWithManifests",
2083 { "name": "frameIds", "type": "array", "items": { "$ref": "FrameWithManifest" }, "description": "Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache." }
2085 "description": "Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache."
2089 "description": "Enables application cache domain notifications."
2092 "name": "getManifestForFrame",
2094 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing document whose manifest is retrieved." }
2097 { "name": "manifestURL", "type": "string", "description": "Manifest URL for document in the given frame." }
2099 "description": "Returns manifest URL for document in the given frame."
2102 "name": "getApplicationCacheForFrame",
2104 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing document whose application cache is retrieved." }
2107 { "name": "applicationCache", "$ref": "ApplicationCache", "description": "Relevant application cache data for the document in given frame." }
2109 "description": "Returns relevant application cache data for the document in given frame."
2114 "name": "applicationCacheStatusUpdated",
2116 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing document whose application cache updated status." },
2117 { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
2118 { "name": "status", "type": "integer", "description": "Updated application cache status." }
2122 "name": "networkStateUpdated",
2124 { "name": "isNowOnline", "type": "boolean" }
2130 "domain": "FileSystem",
2137 { "name": "url", "type": "string", "description": "filesystem: URL for the entry." },
2138 { "name": "name", "type": "string", "description": "The name of the file or directory." },
2139 { "name": "isDirectory", "type": "boolean", "description": "True if the entry is a directory." },
2140 { "name": "mimeType", "type": "string", "optional": true, "description": "MIME type of the entry, available for a file only." },
2141 { "name": "resourceType", "$ref": "Page.ResourceType", "optional": true, "description": "ResourceType of the entry, available for a file only." },
2142 { "name": "isTextFile", "type": "boolean", "optional": true, "description": "True if the entry is a text file." }
2144 "description": "Represents a browser side file or directory."
2150 { "name": "modificationTime", "type": "number", "description": "Modification time." },
2151 { "name": "size", "type": "number", "description": "File size. This field is always zero for directories." }
2153 "description": "Represents metadata of a file or entry."
2159 "description": "Enables events from backend."
2163 "description": "Disables events from backend."
2166 "name": "requestFileSystemRoot",
2169 { "name": "origin", "type": "string", "description": "Security origin of requesting FileSystem. One of frames in current page needs to have this security origin." },
2170 { "name": "type", "type": "string", "enum": ["temporary", "persistent"], "description": "FileSystem type of requesting FileSystem." }
2173 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
2174 { "name": "root", "$ref": "Entry", "optional": true, "description": "Contains root of the requested FileSystem if the command completed successfully." }
2176 "description": "Returns root directory of the FileSystem, if exists."
2179 "name": "requestDirectoryContent",
2182 { "name": "url", "type": "string", "description": "URL of the directory that the frontend is requesting to read from." }
2185 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
2186 { "name": "entries", "type": "array", "items": { "$ref": "Entry" }, "optional": true, "description": "Contains all entries on directory if the command completed successfully." }
2188 "description": "Returns content of the directory."
2191 "name": "requestMetadata",
2194 { "name": "url", "type": "string", "description": "URL of the entry that the frontend is requesting to get metadata from." }
2197 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
2198 { "name": "metadata", "$ref": "Metadata", "optional": true, "description": "Contains metadata of the entry if the command completed successfully." }
2200 "description": "Returns metadata of the entry."
2203 "name": "requestFileContent",
2206 { "name": "url", "type": "string", "description": "URL of the file that the frontend is requesting to read from." },
2207 { "name": "readAsText", "type": "boolean", "description": "True if the content should be read as text, otherwise the result will be returned as base64 encoded text." },
2208 { "name": "start", "type": "integer", "optional": true, "description": "Specifies the start of range to read." },
2209 { "name": "end", "type": "integer", "optional": true, "description": "Specifies the end of range to read exclusively." },
2210 { "name": "charset", "type": "string", "optional": true, "description": "Overrides charset of the content when content is served as text." }
2213 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
2214 { "name": "content", "type": "string", "optional": true, "description": "Content of the file." },
2215 { "name": "charset", "type": "string", "optional": true, "description": "Charset of the content if it is served as text." }
2217 "description": "Returns content of the file. Result should be sliced into [start, end)."
2220 "name": "deleteEntry",
2223 { "name": "url", "type": "string", "description": "URL of the entry to delete." }
2226 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise errorCode is set to FileError::ErrorCode value." }
2228 "description": "Deletes specified entry. If the entry is a directory, the agent deletes children recursively."
2234 "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
2239 "description": "Unique DOM node identifier."
2242 "id": "BackendNodeId",
2244 "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.",
2248 "id": "BackendNode",
2251 { "name": "nodeType", "type": "integer", "description": "<code>Node</code>'s nodeType." },
2252 { "name": "nodeName", "type": "string", "description": "<code>Node</code>'s nodeName." },
2253 { "name": "backendNodeId", "$ref": "BackendNodeId" }
2256 "description": "Backend node with a friendly name."
2268 "first-line-inherited",
2273 "scrollbar-track-piece",
2278 "description": "Pseudo element type."
2281 "id": "ShadowRootType",
2283 "enum": ["user-agent", "open", "closed"],
2284 "description": "Shadow root type."
2290 { "name": "nodeId", "$ref": "NodeId", "description": "Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client." },
2291 { "name": "nodeType", "type": "integer", "description": "<code>Node</code>'s nodeType." },
2292 { "name": "nodeName", "type": "string", "description": "<code>Node</code>'s nodeName." },
2293 { "name": "localName", "type": "string", "description": "<code>Node</code>'s localName." },
2294 { "name": "nodeValue", "type": "string", "description": "<code>Node</code>'s nodeValue." },
2295 { "name": "childNodeCount", "type": "integer", "optional": true, "description": "Child count for <code>Container</code> nodes." },
2296 { "name": "children", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Child nodes of this node when requested with children." },
2297 { "name": "attributes", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Attributes of the <code>Element</code> node in the form of flat array <code>[name1, value1, name2, value2]</code>." },
2298 { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." },
2299 { "name": "baseURL", "type": "string", "optional": true, "description": "Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion.", "hidden": true },
2300 { "name": "publicId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId." },
2301 { "name": "systemId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId." },
2302 { "name": "internalSubset", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset." },
2303 { "name": "xmlVersion", "type": "string", "optional": true, "description": "<code>Document</code>'s XML version in case of XML documents." },
2304 { "name": "name", "type": "string", "optional": true, "description": "<code>Attr</code>'s name." },
2305 { "name": "value", "type": "string", "optional": true, "description": "<code>Attr</code>'s value." },
2306 { "name": "pseudoType", "$ref": "PseudoType", "optional": true, "description": "Pseudo element type for this node." },
2307 { "name": "shadowRootType", "$ref": "ShadowRootType", "optional": true, "description": "Shadow root type." },
2308 { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "Frame ID for frame owner elements.", "hidden": true },
2309 { "name": "contentDocument", "$ref": "Node", "optional": true, "description": "Content document for frame owner elements." },
2310 { "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host.", "hidden": true },
2311 { "name": "templateContent", "$ref": "Node", "optional": true, "description": "Content document fragment for template elements.", "hidden": true },
2312 { "name": "pseudoElements", "type": "array", "items": { "$ref": "Node" }, "optional": true, "description": "Pseudo elements associated with this node.", "hidden": true },
2313 { "name": "importedDocument", "$ref": "Node", "optional": true, "description": "Import document for the HTMLImport links." },
2314 { "name": "distributedNodes", "type": "array", "items": { "$ref": "BackendNode" }, "optional": true, "description": "Distributed nodes for given insertion point.", "hidden": true }
2316 "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
2322 { "name": "r", "type": "integer", "description": "The red component, in the [0-255] range." },
2323 { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." },
2324 { "name": "b", "type": "integer", "description": "The blue component, in the [0-255] range." },
2325 { "name": "a", "type": "number", "optional": true, "description": "The alpha component, in the [0-1] range (default: 1)." }
2327 "description": "A structure holding an RGBA color."
2332 "items": { "type": "number" },
2335 "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise.",
2343 { "name": "content", "$ref": "Quad", "description": "Content box" },
2344 { "name": "padding", "$ref": "Quad", "description": "Padding box" },
2345 { "name": "border", "$ref": "Quad", "description": "Border box" },
2346 { "name": "margin", "$ref": "Quad", "description": "Margin box" },
2347 { "name": "width", "type": "integer", "description": "Node width" },
2348 { "name": "height", "type": "integer", "description": "Node height" },
2349 { "name": "shapeOutside", "$ref": "ShapeOutsideInfo", "optional": true, "description": "Shape outside coordinates" }
2351 "description": "Box model."
2354 "id": "ShapeOutsideInfo",
2358 { "name": "bounds", "$ref": "Quad", "description": "Shape bounds" },
2359 { "name": "shape", "type": "array", "items": { "type": "any"}, "description": "Shape coordinate details" },
2360 { "name": "marginShape", "type": "array", "items": { "type": "any"}, "description": "Margin shape bounds" }
2362 "description": "CSS Shape Outside details."
2369 { "name": "x", "type": "number", "description": "X coordinate" },
2370 { "name": "y", "type": "number", "description": "Y coordinate" },
2371 { "name": "width", "type": "number", "description": "Rectangle width" },
2372 { "name": "height", "type": "number", "description": "Rectangle height" }
2374 "description": "Rectangle."
2377 "id": "HighlightConfig",
2380 { "name": "showInfo", "type": "boolean", "optional": true, "description": "Whether the node info tooltip should be shown (default: false)." },
2381 { "name": "showRulers", "type": "boolean", "optional": true, "description": "Whether the rulers should be shown (default: false)." },
2382 { "name": "showExtensionLines", "type": "boolean", "optional": true, "description": "Whether the extension lines from node to the rulers should be shown (default: false)." },
2383 { "name": "displayAsMaterial", "type": "boolean", "optional": true, "hidden": true},
2384 { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
2385 { "name": "paddingColor", "$ref": "RGBA", "optional": true, "description": "The padding highlight fill color (default: transparent)." },
2386 { "name": "borderColor", "$ref": "RGBA", "optional": true, "description": "The border highlight fill color (default: transparent)." },
2387 { "name": "marginColor", "$ref": "RGBA", "optional": true, "description": "The margin highlight fill color (default: transparent)." },
2388 { "name": "eventTargetColor", "$ref": "RGBA", "optional": true, "hidden": true, "description": "The event target element highlight fill color (default: transparent)." },
2389 { "name": "shapeColor", "$ref": "RGBA", "optional": true, "hidden": true, "description": "The shape outside fill color (default: transparent)." },
2390 { "name": "shapeMarginColor", "$ref": "RGBA", "optional": true, "hidden": true, "description": "The shape margin fill color (default: transparent)." }
2392 "description": "Configuration data for the highlighting of page elements."
2395 "id": "InspectMode",
2400 "searchForUAShadowDOM",
2409 "description": "Enables DOM agent for the given page."
2413 "description": "Disables DOM agent for the given page."
2416 "name": "getDocument",
2418 { "name": "root", "$ref": "Node", "description": "Resulting node." }
2420 "description": "Returns the root DOM node to the caller."
2423 "name": "requestChildNodes",
2425 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." },
2426 { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", "hidden": true }
2428 "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events where not only immediate children are retrieved, but all children down to the specified depth."
2431 "name": "querySelector",
2433 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
2434 { "name": "selector", "type": "string", "description": "Selector string." }
2437 { "name": "nodeId", "$ref": "NodeId", "description": "Query selector result." }
2439 "description": "Executes <code>querySelector</code> on a given node."
2442 "name": "querySelectorAll",
2444 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
2445 { "name": "selector", "type": "string", "description": "Selector string." }
2448 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Query selector result." }
2450 "description": "Executes <code>querySelectorAll</code> on a given node."
2453 "name": "setNodeName",
2455 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set name for." },
2456 { "name": "name", "type": "string", "description": "New node's name." }
2459 { "name": "nodeId", "$ref": "NodeId", "description": "New node's id." }
2461 "description": "Sets node name for a node with given id."
2464 "name": "setNodeValue",
2466 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set value for." },
2467 { "name": "value", "type": "string", "description": "New node's value." }
2469 "description": "Sets node value for a node with given id."
2472 "name": "removeNode",
2474 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to remove." }
2476 "description": "Removes node with given id."
2479 "name": "setAttributeValue",
2481 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attribute for." },
2482 { "name": "name", "type": "string", "description": "Attribute name." },
2483 { "name": "value", "type": "string", "description": "Attribute value." }
2485 "description": "Sets attribute for an element with given id."
2488 "name": "setAttributesAsText",
2490 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attributes for." },
2491 { "name": "text", "type": "string", "description": "Text with a number of attributes. Will parse this text using HTML parser." },
2492 { "name": "name", "type": "string", "optional": true, "description": "Attribute name to replace with new attributes derived from text in case text parsed successfully." }
2494 "description": "Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs."
2497 "name": "removeAttribute",
2499 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to remove attribute from." },
2500 { "name": "name", "type": "string", "description": "Name of the attribute to remove." }
2502 "description": "Removes attribute with given name from an element with given id."
2505 "name": "getOuterHTML",
2507 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get markup for." }
2510 { "name": "outerHTML", "type": "string", "description": "Outer HTML markup." }
2512 "description": "Returns node's HTML markup."
2515 "name": "setOuterHTML",
2517 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set markup for." },
2518 { "name": "outerHTML", "type": "string", "description": "Outer HTML markup to set." }
2520 "description": "Sets node HTML markup, returns new node id."
2523 "name": "performSearch",
2525 { "name": "query", "type": "string", "description": "Plain text or query selector or XPath search query." },
2526 { "name": "includeUserAgentShadowDOM", "type": "boolean", "optional": true, "description": "True to search in user agent shadow DOM.", "hidden": true }
2529 { "name": "searchId", "type": "string", "description": "Unique search session identifier." },
2530 { "name": "resultCount", "type": "integer", "description": "Number of search results." }
2532 "description": "Searches for a given string in the DOM tree. Use <code>getSearchResults</code> to access search results or <code>cancelSearch</code> to end this search session.",
2536 "name": "getSearchResults",
2538 { "name": "searchId", "type": "string", "description": "Unique search session identifier." },
2539 { "name": "fromIndex", "type": "integer", "description": "Start index of the search result to be returned." },
2540 { "name": "toIndex", "type": "integer", "description": "End index of the search result to be returned." }
2543 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the search result nodes." }
2545 "description": "Returns search results from given <code>fromIndex</code> to given <code>toIndex</code> from the sarch with the given identifier.",
2549 "name": "discardSearchResults",
2551 { "name": "searchId", "type": "string", "description": "Unique search session identifier." }
2553 "description": "Discards search results from the session with the given id. <code>getSearchResults</code> should no longer be called for that search.",
2557 "name": "requestNode",
2559 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "JavaScript object id to convert into node." }
2562 { "name": "nodeId", "$ref": "NodeId", "description": "Node id for given object." }
2564 "description": "Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of <code>setChildNodes</code> notifications."
2567 "name": "setInspectMode",
2570 { "name": "mode", "$ref": "InspectMode", "description": "Set an inspection mode." },
2571 { "name": "highlightConfig", "$ref": "HighlightConfig", "optional": true, "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if <code>enabled == false</code>." }
2573 "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection."
2576 "name": "highlightRect",
2578 { "name": "x", "type": "integer", "description": "X coordinate" },
2579 { "name": "y", "type": "integer", "description": "Y coordinate" },
2580 { "name": "width", "type": "integer", "description": "Rectangle width" },
2581 { "name": "height", "type": "integer", "description": "Rectangle height" },
2582 { "name": "color", "$ref": "RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." },
2583 { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." }
2585 "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport."
2588 "name": "highlightQuad",
2590 { "name": "quad", "$ref": "Quad", "description": "Quad to highlight" },
2591 { "name": "color", "$ref": "RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." },
2592 { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." }
2594 "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.",
2598 "name": "highlightNode",
2600 { "name": "highlightConfig", "$ref": "HighlightConfig", "description": "A descriptor for the highlight appearance." },
2601 { "name": "nodeId", "$ref": "NodeId", "optional": true, "description": "Identifier of the node to highlight." },
2602 { "name": "backendNodeId", "$ref": "BackendNodeId", "optional": true, "description": "Identifier of the backend node to highlight." },
2603 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "JavaScript object id of the node to be highlighted.", "hidden": true }
2605 "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified."
2608 "name": "hideHighlight",
2609 "description": "Hides DOM node highlight."
2612 "name": "highlightFrame",
2614 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame to highlight." },
2615 { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
2616 { "name": "contentOutlineColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight outline color (default: transparent)." }
2618 "description": "Highlights owner element of the frame with given id.",
2622 "name": "pushNodeByPathToFrontend",
2624 { "name": "path", "type": "string", "description": "Path to node in the proprietary format." }
2627 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node for given path." }
2629 "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath",
2633 "name": "pushNodesByBackendIdsToFrontend",
2635 { "name": "backendNodeIds", "type": "array", "items": {"$ref": "BackendNodeId"}, "description": "The array of backend node ids." }
2638 { "name": "nodeIds", "type": "array", "items": {"$ref": "NodeId"}, "description": "The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds." }
2640 "description": "Requests that a batch of nodes is sent to the caller given their backend node ids.",
2644 "name": "setInspectedNode",
2646 { "name": "nodeId", "$ref": "NodeId", "description": "DOM node id to be accessible by means of $x command line API." }
2648 "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).",
2652 "name": "resolveNode",
2654 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to resolve." },
2655 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }
2658 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "JavaScript object wrapper for given node." }
2660 "description": "Resolves JavaScript node object for given node id."
2663 "name": "getAttributes",
2665 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attibutes for." }
2668 { "name": "attributes", "type": "array", "items": { "type": "string" }, "description": "An interleaved array of node attribute names and values." }
2670 "description": "Returns attributes for the specified node."
2675 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to copy." },
2676 { "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop the copy into." },
2677 { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop the copy before this node (if absent, the copy becomes the last child of <code>targetNodeId</code>)." }
2680 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node clone." }
2682 "description": "Creates a deep copy of the specified node and places it into the target container before the given anchor.",
2688 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to move." },
2689 { "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop the moved node into." },
2690 { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop node before this one (if absent, the moved node becomes the last child of <code>targetNodeId</code>)." }
2693 { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." }
2695 "description": "Moves node into the new container, places it before the given anchor."
2699 "description": "Undoes the last performed action.",
2704 "description": "Re-does the last undone action.",
2708 "name": "markUndoableState",
2709 "description": "Marks last undoable state.",
2715 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to focus." }
2717 "description": "Focuses the given element.",
2721 "name": "setFileInputFiles",
2723 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the file input node to set files for." },
2724 { "name": "files", "type": "array", "items": { "type": "string" }, "description": "Array of file paths to set." }
2726 "description": "Sets files for the given file input element.",
2728 "handlers": ["browser", "renderer"]
2731 "name": "getBoxModel",
2733 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get box model for." }
2736 { "name": "model", "$ref": "BoxModel", "description": "Box model for the node." }
2738 "description": "Returns boxes for the currently selected nodes.",
2742 "name": "getNodeForLocation",
2744 { "name": "x", "type": "integer", "description": "X coordinate." },
2745 { "name": "y", "type": "integer", "description": "Y coordinate." }
2748 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node at given coordinates." }
2750 "description": "Returns node id at given location.",
2754 "name": "getRelayoutBoundary",
2756 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node." }
2759 { "name": "nodeId", "$ref": "NodeId", "description": "Relayout boundary node id for the given node." }
2761 "description": "Returns the id of the nearest ancestor that is a relayout boundary.",
2765 "name": "getHighlightObjectForTest",
2767 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get highlight object for." }
2770 { "name": "highlight", "type": "object", "description": "Highlight data for the node." }
2772 "description": "For testing.",
2778 "name": "documentUpdated",
2779 "description": "Fired when <code>Document</code> has been totally updated. Node ids are no longer valid."
2782 "name": "inspectNodeRequested",
2784 { "name": "backendNodeId", "$ref": "BackendNodeId", "description": "Id of the node to inspect." }
2786 "description": "Fired when the node should be inspected. This happens after call to <code>setInspectMode</code>.",
2790 "name": "setChildNodes",
2792 { "name": "parentId", "$ref": "NodeId", "description": "Parent node id to populate with children." },
2793 { "name": "nodes", "type": "array", "items": { "$ref": "Node" }, "description": "Child nodes array." }
2795 "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids."
2798 "name": "attributeModified",
2800 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2801 { "name": "name", "type": "string", "description": "Attribute name." },
2802 { "name": "value", "type": "string", "description": "Attribute value." }
2804 "description": "Fired when <code>Element</code>'s attribute is modified."
2807 "name": "attributeRemoved",
2809 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2810 { "name": "name", "type": "string", "description": "A ttribute name." }
2812 "description": "Fired when <code>Element</code>'s attribute is removed."
2815 "name": "inlineStyleInvalidated",
2817 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the nodes for which the inline styles have been invalidated." }
2819 "description": "Fired when <code>Element</code>'s inline style is modified via a CSS property modification.",
2823 "name": "characterDataModified",
2825 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2826 { "name": "characterData", "type": "string", "description": "New text value." }
2828 "description": "Mirrors <code>DOMCharacterDataModified</code> event."
2831 "name": "childNodeCountUpdated",
2833 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2834 { "name": "childNodeCount", "type": "integer", "description": "New node count." }
2836 "description": "Fired when <code>Container</code>'s child node count has changed."
2839 "name": "childNodeInserted",
2841 { "name": "parentNodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2842 { "name": "previousNodeId", "$ref": "NodeId", "description": "If of the previous siblint." },
2843 { "name": "node", "$ref": "Node", "description": "Inserted node data." }
2845 "description": "Mirrors <code>DOMNodeInserted</code> event."
2848 "name": "childNodeRemoved",
2850 { "name": "parentNodeId", "$ref": "NodeId", "description": "Parent id." },
2851 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has been removed." }
2853 "description": "Mirrors <code>DOMNodeRemoved</code> event."
2856 "name": "shadowRootPushed",
2858 { "name": "hostId", "$ref": "NodeId", "description": "Host element id." },
2859 { "name": "root", "$ref": "Node", "description": "Shadow root." }
2861 "description": "Called when shadow root is pushed into the element.",
2865 "name": "shadowRootPopped",
2867 { "name": "hostId", "$ref": "NodeId", "description": "Host element id." },
2868 { "name": "rootId", "$ref": "NodeId", "description": "Shadow root id." }
2870 "description": "Called when shadow root is popped from the element.",
2874 "name": "pseudoElementAdded",
2876 { "name": "parentId", "$ref": "NodeId", "description": "Pseudo element's parent element id." },
2877 { "name": "pseudoElement", "$ref": "Node", "description": "The added pseudo element." }
2879 "description": "Called when a pseudo element is added to an element.",
2883 "name": "pseudoElementRemoved",
2885 { "name": "parentId", "$ref": "NodeId", "description": "Pseudo element's parent element id." },
2886 { "name": "pseudoElementId", "$ref": "NodeId", "description": "The removed pseudo element id." }
2888 "description": "Called when a pseudo element is removed from an element.",
2892 "name": "distributedNodesUpdated",
2894 { "name": "insertionPointId", "$ref": "NodeId", "description": "Insertion point where distrubuted nodes were updated." },
2895 { "name": "distributedNodes", "type": "array", "items": { "$ref": "BackendNode" }, "description": "Distributed nodes for given insertion point." }
2897 "description": "Called when distrubution is changed.",
2905 "description": "This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). A client can also discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method (or keeping track of the <code>styleSheetAdded</code>/<code>styleSheetRemoved</code> events) and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
2908 "id": "StyleSheetId",
2912 "id": "StyleSheetOrigin",
2914 "enum": ["injected", "user-agent", "inspector", "regular"],
2915 "description": "Stylesheet type: \"injected\" for stylesheets injected via extension, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets."
2918 "id": "PseudoIdMatches",
2921 { "name": "pseudoId", "type": "integer", "description": "Pseudo style identifier (see <code>enum PseudoId</code> in <code>ComputedStyleConstants.h</code>)."},
2922 { "name": "matches", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules applicable to the pseudo style."}
2924 "description": "CSS rule collection for a single pseudo style."
2927 "id": "InheritedStyleEntry",
2930 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." },
2931 { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules matching the ancestor node in the style inheritance chain." }
2933 "description": "Inherited CSS rule collection from ancestor node."
2939 { "name": "rule", "$ref": "CSSRule", "description": "CSS rule in the match." },
2940 { "name": "matchingSelectors", "type": "array", "items": { "type": "integer" }, "description": "Matching selector indices in the rule's selectorList selectors (0-based)." }
2942 "description": "Match data for a CSS rule."
2948 { "name": "value", "type": "string", "description": "Selector text." },
2949 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Selector range in the underlying resource (if available)." }
2951 "description": "Data for a simple selector (these are delimited by commas in a selector list)."
2954 "id": "SelectorList",
2957 { "name": "selectors", "type": "array", "items": { "$ref": "Selector" }, "description": "Selectors in the list." },
2958 { "name": "text", "type": "string", "description": "Rule selector text." }
2960 "description": "Selector list data."
2963 "id": "CSSStyleSheetHeader",
2966 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."},
2967 { "name": "frameId", "$ref": "Page.FrameId", "description": "Owner frame identifier."},
2968 { "name": "sourceURL", "type": "string", "description": "Stylesheet resource URL."},
2969 { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with the stylesheet (if any)." },
2970 { "name": "origin", "$ref": "StyleSheetOrigin", "description": "Stylesheet origin."},
2971 { "name": "title", "type": "string", "description": "Stylesheet title."},
2972 { "name": "ownerNode", "$ref": "DOM.BackendNodeId", "optional": true, "description": "The backend id for the owner node of the stylesheet." },
2973 { "name": "disabled", "type": "boolean", "description": "Denotes whether the stylesheet is disabled."},
2974 { "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "Whether the sourceURL field value comes from the sourceURL comment." },
2975 { "name": "isInline", "type": "boolean", "description": "Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags." },
2976 { "name": "startLine", "type": "number", "description": "Line offset of the stylesheet within the resource (zero based)." },
2977 { "name": "startColumn", "type": "number", "description": "Column offset of the stylesheet within the resource (zero based)." }
2979 "description": "CSS stylesheet metainformation."
2985 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional": true, "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from." },
2986 { "name": "selectorList", "$ref": "SelectorList", "description": "Rule selector data." },
2987 { "name": "origin", "$ref": "StyleSheetOrigin", "description": "Parent stylesheet's origin."},
2988 { "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." },
2989 { "name": "media", "type": "array", "items": { "$ref": "CSSMedia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." }
2991 "description": "CSS rule representation."
2994 "id": "SourceRange",
2997 { "name": "startLine", "type": "integer", "description": "Start line of range." },
2998 { "name": "startColumn", "type": "integer", "description": "Start column of range (inclusive)." },
2999 { "name": "endLine", "type": "integer", "description": "End line of range" },
3000 { "name": "endColumn", "type": "integer", "description": "End column of range (exclusive)." }
3002 "description": "Text range within a resource. All numbers are zero-based."
3005 "id": "ShorthandEntry",
3008 { "name": "name", "type": "string", "description": "Shorthand name." },
3009 { "name": "value", "type": "string", "description": "Shorthand value." },
3010 { "name": "important", "type": "boolean", "optional": true, "description": "Whether the property has \"!important\" annotation (implies <code>false</code> if absent)." }
3014 "id": "CSSComputedStyleProperty",
3017 { "name": "name", "type": "string", "description": "Computed style property name." },
3018 { "name": "value", "type": "string", "description": "Computed style property value." }
3025 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional": true, "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from." },
3026 { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style." },
3027 { "name": "shorthandEntries", "type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." },
3028 { "name": "cssText", "type": "string", "optional": true, "description": "Style declaration text (if available)." },
3029 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." }
3031 "description": "CSS style representation."
3034 "id": "CSSProperty",
3037 { "name": "name", "type": "string", "description": "The property name." },
3038 { "name": "value", "type": "string", "description": "The property value." },
3039 { "name": "important", "type": "boolean", "optional": true, "description": "Whether the property has \"!important\" annotation (implies <code>false</code> if absent)." },
3040 { "name": "implicit", "type": "boolean", "optional": true, "description": "Whether the property is implicit (implies <code>false</code> if absent)." },
3041 { "name": "text", "type": "string", "optional": true, "description": "The full property text as specified in the style." },
3042 { "name": "parsedOk", "type": "boolean", "optional": true, "description": "Whether the property is understood by the browser (implies <code>true</code> if absent)." },
3043 { "name": "disabled", "type": "boolean", "optional": true, "description": "Whether the property is disabled by the user (present for source-based properties only)." },
3044 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." }
3046 "description": "CSS property declaration data."
3052 { "name": "text", "type": "string", "description": "Media query text." },
3053 { "name": "source", "type": "string", "enum": ["mediaRule", "importRule", "linkedSheet", "inlineSheet"], "description": "Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline stylesheet's STYLE tag." },
3054 { "name": "sourceURL", "type": "string", "optional": true, "description": "URL of the document containing the media query description." },
3055 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The associated rule (@media or @import) header range in the enclosing stylesheet (if available)." },
3056 { "name": "parentStyleSheetId", "$ref": "StyleSheetId", "optional": true, "description": "Identifier of the stylesheet containing this object (if exists)." },
3057 { "name": "mediaList", "type": "array", "items": { "$ref": "MediaQuery" }, "optional": true, "hidden": true, "description": "Array of media queries." }
3059 "description": "CSS media rule descriptor."
3065 { "name": "expressions", "type": "array", "items": { "$ref": "MediaQueryExpression" }, "description": "Array of media query expressions." },
3066 { "name": "active", "type": "boolean", "description": "Whether the media query condition is satisfied." }
3068 "description": "Media query descriptor.",
3072 "id": "MediaQueryExpression",
3075 { "name": "value", "type": "number", "description": "Media query expression value."},
3076 { "name": "unit", "type": "string", "description": "Media query expression units."},
3077 { "name": "feature", "type": "string", "description": "Media query expression feature."},
3078 { "name": "valueRange", "$ref": "SourceRange", "optional": true, "description": "The associated range of the value text in the enclosing stylesheet (if available)." },
3079 { "name": "computedLength", "type": "number", "optional": true, "description": "Computed length of media query expression (if applicable)."}
3081 "description": "Media query expression descriptor.",
3085 "id": "PlatformFontUsage",
3088 { "name": "familyName", "type": "string", "description": "Font's family name reported by platform."},
3089 { "name": "glyphCount", "type": "number", "description": "Amount of glyphs that were rendered with this font."}
3091 "description": "Information about amount of glyphs that were rendered with given font.",
3099 "description": "Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received."
3103 "description": "Disables the CSS agent for the given page."
3106 "name": "getMatchedStylesForNode",
3108 { "name": "nodeId", "$ref": "DOM.NodeId" }
3111 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "Inline style for the specified DOM node." },
3112 { "name": "attributesStyle", "$ref": "CSSStyle", "optional": true, "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."},
3113 { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "optional": true, "description": "CSS rules matching this node, from all applicable stylesheets." },
3114 { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoIdMatches" }, "optional": true, "description": "Pseudo style matches for this node." },
3115 { "name": "inherited", "type": "array", "items": { "$ref": "InheritedStyleEntry" }, "optional": true, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." }
3117 "description": "Returns requested styles for a DOM node identified by <code>nodeId</code>."
3120 "name": "getInlineStylesForNode",
3122 { "name": "nodeId", "$ref": "DOM.NodeId" }
3125 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "Inline style for the specified DOM node." },
3126 { "name": "attributesStyle", "$ref": "CSSStyle", "optional": true, "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."}
3128 "description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node identified by <code>nodeId</code>."
3131 "name": "getComputedStyleForNode",
3133 { "name": "nodeId", "$ref": "DOM.NodeId" }
3136 { "name": "computedStyle", "type": "array", "items": { "$ref": "CSSComputedStyleProperty" }, "description": "Computed style for the specified DOM node." }
3138 "description": "Returns the computed style for a DOM node identified by <code>nodeId</code>."
3141 "name": "getPlatformFontsForNode",
3143 { "name": "nodeId", "$ref": "DOM.NodeId" }
3146 { "name": "fonts", "type": "array", "items": { "$ref": "PlatformFontUsage" }, "description": "Usage statistics for every employed platform font." }
3148 "description": "Requests information about platform fonts which we used to render child TextNodes in the given node.",
3152 "name": "getStyleSheetText",
3154 { "name": "styleSheetId", "$ref": "StyleSheetId" }
3157 { "name": "text", "type": "string", "description": "The stylesheet text." }
3159 "description": "Returns the current textual content and the URL for a stylesheet."
3162 "name": "setStyleSheetText",
3164 { "name": "styleSheetId", "$ref": "StyleSheetId" },
3165 { "name": "text", "type": "string" }
3167 "description": "Sets the new stylesheet text."
3170 "name": "setRuleSelector",
3172 { "name": "styleSheetId", "$ref": "StyleSheetId" },
3173 { "name": "range", "$ref": "SourceRange" },
3174 { "name": "selector", "type": "string" }
3177 { "name": "rule", "$ref": "CSSRule", "description": "The resulting rule after the selector modification." }
3179 "description": "Modifies the rule selector."
3182 "name": "setStyleText",
3184 { "name": "styleSheetId", "$ref": "StyleSheetId" },
3185 { "name": "range", "$ref": "SourceRange" },
3186 { "name": "text", "type": "string" }
3189 { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the selector modification." }
3191 "description": "Modifies the style text."
3194 "name": "setMediaText",
3196 { "name": "styleSheetId", "$ref": "StyleSheetId" },
3197 { "name": "range", "$ref": "SourceRange" },
3198 { "name": "text", "type": "string" }
3201 { "name": "media", "$ref": "CSSMedia", "description": "The resulting CSS media rule after modification." }
3203 "description": "Modifies the rule selector."
3206 "name": "createStyleSheet",
3208 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created."}
3211 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the created \"via-inspector\" stylesheet." }
3213 "description": "Creates a new special \"via-inspector\" stylesheet in the frame with given <code>frameId</code>."
3218 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The css style sheet identifier where a new rule should be inserted." },
3219 { "name": "ruleText", "type": "string", "description": "The text of a new rule." },
3220 { "name": "location", "$ref": "SourceRange", "description": "Text position of a new rule in the target style sheet." }
3223 { "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." }
3225 "description": "Inserts a new rule with the given <code>ruleText</code> in a stylesheet with given <code>styleSheetId</code>, at the position specified by <code>location</code>."
3228 "name": "forcePseudoState",
3230 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The element id for which to force the pseudo state." },
3231 { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "description": "Element pseudo classes to force when computing the element's style." }
3233 "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser."
3236 "name": "getMediaQueries",
3238 { "name": "medias", "type": "array", "items": { "$ref": "CSSMedia" } }
3240 "description": "Returns all media queries parsed by the rendering engine.",
3244 "name": "setEffectivePropertyValueForNode",
3246 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The element id for which to set property." },
3247 { "name": "propertyName", "type": "string"},
3248 { "name": "value", "type": "string"}
3250 "description": "Find a rule with the given active property for the given node and set the new value for this property",
3256 "name": "mediaQueryResultChanged",
3257 "description": "Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features."
3260 "name": "styleSheetChanged",
3262 { "name": "styleSheetId", "$ref": "StyleSheetId" }
3264 "description": "Fired whenever a stylesheet is changed as a result of the client operation."
3267 "name": "styleSheetAdded",
3269 { "name": "header", "$ref": "CSSStyleSheetHeader", "description": "Added stylesheet metainfo." }
3271 "description": "Fired whenever an active document stylesheet is added."
3274 "name": "styleSheetRemoved",
3276 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the removed stylesheet." }
3278 "description": "Fired whenever an active document stylesheet is removed."
3281 "name": "layoutEditorChange",
3283 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the stylesheet where the modification occurred."},
3284 { "name": "changeRange", "$ref": "SourceRange", "description": "Range where the modification occurred."}
3291 "description": "Input/Output operations for streams produced by DevTools.",
3295 "id": "StreamHandle",
3302 "description": "Read a chunk of the stream",
3305 { "name": "handle", "$ref": "StreamHandle", "description": "Handle of the stream to read." },
3306 { "name": "offset", "type": "integer", "optional": true, "description": "Seek to the specified offset before reading (if not specificed, proceed with offset following the last read)." },
3307 { "name": "size", "type": "integer", "optional": true, "description": "Maximum number of bytes to read (left upon the agent discretion if not specified)." }
3310 { "name": "data", "type": "string", "description": "Data that were read." },
3311 { "name": "eof", "type": "boolean", "description": "Set if the end-of-file condition occured while reading." }
3313 "handlers": ["browser"]
3317 "description": "Close the stream, discard any temporary backing storage.",
3319 { "name": "handle", "$ref": "StreamHandle", "description": "Handle of the stream to close." }
3321 "handlers": ["browser"]
3326 "domain": "Timeline",
3327 "description": "Timeline domain is deprecated. Please use Tracing instead.",
3330 "id": "TimelineEvent",
3333 { "name": "type", "type": "string", "description": "Event type." },
3334 { "name": "data", "type": "object", "description": "Event data." },
3335 { "name": "startTime", "type": "number", "description": "Start time." },
3336 { "name": "endTime", "type": "number", "optional": true, "description": "End time." },
3337 { "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineEvent" }, "description": "Nested records." },
3338 { "name": "thread", "type": "string", "optional": true, "hidden": true, "description": "If present, identifies the thread that produced the event." },
3339 { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "hidden": true, "description": "Stack trace." },
3340 { "name": "frameId", "type": "string", "optional": true, "hidden": true, "description": "Unique identifier of the frame within the page that the event relates to." }
3342 "description": "Timeline record contains information about the recorded activity."
3348 "description": "Deprecated."
3352 "description": "Deprecated."
3357 { "name": "maxCallStackDepth", "optional": true, "type": "integer", "description": "Samples JavaScript stack traces up to <code>maxCallStackDepth</code>, defaults to 5." },
3358 { "name": "bufferEvents", "optional": true, "type": "boolean", "hidden": true, "description": "Whether instrumentation events should be buffered and returned upon <code>stop</code> call." },
3359 { "name": "liveEvents", "optional": true, "type": "string", "hidden": true, "description": "Coma separated event types to issue although bufferEvents is set."},
3360 { "name": "includeCounters", "optional": true, "type": "boolean", "hidden": true, "description": "Whether counters data should be included into timeline events." },
3361 { "name": "includeGPUEvents", "optional": true, "type": "boolean", "hidden": true, "description": "Whether events from GPU process should be collected." }
3363 "description": "Deprecated."
3367 "description": "Deprecated."
3372 "name": "eventRecorded",
3374 { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." }
3376 "description": "Deprecated."
3381 "domain": "Debugger",
3382 "description": "Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.",
3385 "id": "BreakpointId",
3387 "description": "Breakpoint identifier."
3392 "description": "Unique script identifier."
3395 "id": "CallFrameId",
3397 "description": "Call frame identifier."
3403 { "name": "scriptId", "$ref": "ScriptId", "description": "Script identifier as reported in the <code>Debugger.scriptParsed</code>." },
3404 { "name": "lineNumber", "type": "integer", "description": "Line number in the script (0-based)." },
3405 { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number in the script (0-based)." }
3407 "description": "Location in the source code."
3410 "id": "FunctionDetails",
3414 { "name": "location", "$ref": "Location", "optional": true, "description": "Location of the function, none for native functions." },
3415 { "name": "functionName", "type": "string", "description": "Name of the function." },
3416 { "name": "isGenerator", "type": "boolean", "description": "Whether this is a generator function." },
3417 { "name": "scopeChain", "type": "array", "optional": true, "items": { "$ref": "Scope" }, "description": "Scope chain for this closure." }
3419 "description": "Information about the function."
3422 "id": "GeneratorObjectDetails",
3426 { "name": "function", "$ref": "Runtime.RemoteObject", "description": "Generator function." },
3427 { "name": "functionName", "type": "string", "description": "Name of the generator function." },
3428 { "name": "status", "type": "string", "enum": ["running", "suspended", "closed"], "description": "Current generator object status." },
3429 { "name": "location", "$ref": "Location", "optional": true, "description": "If suspended, location where generator function was suspended (e.g. location of the last 'yield'). Otherwise, location of the generator function." }
3431 "description": "Information about the generator object."
3434 "id": "CollectionEntry",
3438 { "name": "key", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Entry key of a map-like collection, otherwise not provided." },
3439 { "name": "value", "$ref": "Runtime.RemoteObject", "description": "Entry value." }
3441 "description": "Collection entry."
3447 { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused." },
3448 { "name": "functionName", "type": "string", "description": "Name of the JavaScript function called on this call frame." },
3449 { "name": "functionLocation", "$ref": "Location", "optional": true, "hidden": true, "description": "Location in the source code." },
3450 { "name": "location", "$ref": "Location", "description": "Location in the source code." },
3451 { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for this call frame." },
3452 { "name": "this", "$ref": "Runtime.RemoteObject", "description": "<code>this</code> object for this call frame." },
3453 { "name": "returnValue", "$ref": "Runtime.RemoteObject", "optional": true, "hidden": true, "description": "The value being returned, if the function is at return point." }
3455 "description": "JavaScript call frame. Array of call frames form the call stack."
3461 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call frames of the stack trace." },
3462 { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." },
3463 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." }
3465 "description": "JavaScript call stack, including async stack traces.",
3472 { "name": "type", "type": "string", "enum": ["global", "local", "with", "closure", "catch", "block", "script"], "description": "Scope type." },
3473 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties." }
3475 "description": "Scope description."
3478 "id": "ExceptionDetails",
3480 "description": "Detailed information on exception (or error) that was thrown during script compilation or execution.",
3482 { "name": "text", "type": "string", "description": "Exception text." },
3483 { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },
3484 { "name": "scriptId", "type": "string", "optional": true, "description": "Script ID of the message origin." },
3485 { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." },
3486 { "name": "column", "type": "integer", "optional": true, "description": "Column number in the resource that generated this message." },
3487 { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." }
3491 "id": "SetScriptSourceError",
3494 { "name": "compileError", "optional": true, "type": "object", "properties":
3496 { "name": "message", "type": "string", "description": "Compiler error message" },
3497 { "name": "lineNumber", "type": "integer", "description": "Compile error line number (1-based)" },
3498 { "name": "columnNumber", "type": "integer", "description": "Compile error column number (1-based)" }
3502 "description": "Error data for setScriptSource command. compileError is a case type for uncompilable script source error.",
3506 "id": "PromiseDetails",
3508 "description": "Information about the promise. All fields but id are optional and if present they reflect the new state of the property on the promise with given id.",
3510 { "name": "id", "type": "integer", "description": "Unique id of the promise." },
3511 { "name": "status", "type": "string", "optional": true, "enum": ["pending", "resolved", "rejected"], "description": "Status of the promise." },
3512 { "name": "parentId", "type": "integer", "optional": true, "description": "Id of the parent promise." },
3513 { "name": "callFrame", "$ref": "Console.CallFrame", "optional": true, "description": "Top call frame on promise creation."},
3514 { "name": "creationTime", "type": "number", "optional": true, "description": "Creation time of the promise." },
3515 { "name": "settlementTime", "type": "number", "optional": true, "description": "Settlement time of the promise." },
3516 { "name": "creationStack", "$ref": "Console.StackTrace", "optional": true, "description": "JavaScript stack trace on promise creation." },
3517 { "name": "asyncCreationStack", "$ref": "Console.AsyncStackTrace", "optional": true, "description": "JavaScript asynchronous stack trace on promise creation, if available." },
3518 { "name": "settlementStack", "$ref": "Console.StackTrace", "optional": true, "description": "JavaScript stack trace on promise settlement." },
3519 { "name": "asyncSettlementStack", "$ref": "Console.AsyncStackTrace", "optional": true, "description": "JavaScript asynchronous stack trace on promise settlement, if available." }
3524 "id": "AsyncOperation",
3526 "description": "Information about the async operation.",
3528 { "name": "id", "type": "integer", "description": "Unique id of the async operation." },
3529 { "name": "description", "type": "string", "description": "String description of the async operation." },
3530 { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "Stack trace where async operation was scheduled." },
3531 { "name": "asyncStackTrace", "$ref": "Console.AsyncStackTrace", "optional": true, "description": "Asynchronous stack trace where async operation was scheduled, if available." }
3536 "id": "SearchMatch",
3538 "description": "Search match for resource.",
3540 { "name": "lineNumber", "type": "number", "description": "Line number in resource content." },
3541 { "name": "lineContent", "type": "string", "description": "Line with match content." }
3549 "description": "Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received."
3553 "description": "Disables debugger for given page."
3556 "name": "setBreakpointsActive",
3558 { "name": "active", "type": "boolean", "description": "New value for breakpoints active state." }
3560 "description": "Activates / deactivates all breakpoints on the page."
3563 "name": "setSkipAllPauses",
3566 { "name": "skipped", "type": "boolean", "description": "New value for skip pauses state." }
3568 "description": "Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)."
3571 "name": "setBreakpointByUrl",
3573 { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." },
3574 { "name": "url", "type": "string", "optional": true, "description": "URL of the resources to set breakpoint on." },
3575 { "name": "urlRegex", "type": "string", "optional": true, "description": "Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified." },
3576 { "name": "columnNumber", "type": "integer", "optional": true, "description": "Offset in the line to set breakpoint at." },
3577 { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." }
3580 { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." },
3581 { "name": "locations", "type": "array", "items": { "$ref": "Location" }, "description": "List of the locations this breakpoint resolved into upon addition." }
3583 "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads."
3586 "name": "setBreakpoint",
3588 { "name": "location", "$ref": "Location", "description": "Location to set breakpoint in." },
3589 { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." }
3592 { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." },
3593 { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." }
3595 "description": "Sets JavaScript breakpoint at a given location."
3598 "name": "removeBreakpoint",
3600 { "name": "breakpointId", "$ref": "BreakpointId" }
3602 "description": "Removes JavaScript breakpoint."
3605 "name": "continueToLocation",
3607 { "name": "location", "$ref": "Location", "description": "Location to continue to." },
3608 { "name": "interstatementLocation", "type": "boolean", "optional": true, "hidden": true, "description": "Allows breakpoints at the intemediate positions inside statements." }
3610 "description": "Continues execution until specific location is reached."
3614 "description": "Steps over the statement."
3618 "description": "Steps into the function call."
3622 "description": "Steps out of the function call."
3626 "description": "Stops on the next JavaScript statement."
3630 "description": "Resumes JavaScript execution."
3633 "name": "stepIntoAsync",
3634 "description": "Steps into the first async operation handler that was scheduled by or after the current statement.",
3638 "name": "searchInContent",
3640 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to search in." },
3641 { "name": "query", "type": "string", "description": "String to search for." },
3642 { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
3643 { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." }
3646 { "name": "result", "type": "array", "items": { "$ref": "SearchMatch" }, "description": "List of search matches." }
3648 "description": "Searches for given string in script content."
3651 "name": "canSetScriptSource",
3653 { "name": "result", "type": "boolean", "description": "True if <code>setScriptSource</code> is supported." }
3655 "description": "Always returns true."
3658 "name": "setScriptSource",
3660 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to edit." },
3661 { "name": "scriptSource", "type": "string", "description": "New content of the script." },
3662 { "name": "preview", "type": "boolean", "optional": true, "description": " If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code.", "hidden": true }
3665 { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing has happened while VM was stopped." },
3666 { "name": "stackChanged", "type": "boolean", "optional": true, "description": "Whether current call stack was modified after applying the changes.", "hidden": true },
3667 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any.", "hidden": true }
3670 "$ref": "SetScriptSourceError"
3672 "description": "Edits JavaScript source live."
3675 "name": "restartFrame",
3677 { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." }
3680 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "New stack trace." },
3681 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." }
3684 "description": "Restarts particular call frame from the beginning."
3687 "name": "getScriptSource",
3689 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to get source for." }
3692 { "name": "scriptSource", "type": "string", "description": "Script source." }
3694 "description": "Returns source for the script with given id."
3697 "name": "getFunctionDetails",
3700 { "name": "functionId", "$ref": "Runtime.RemoteObjectId", "description": "Id of the function to get details for." }
3703 { "name": "details", "$ref": "FunctionDetails", "description": "Information about the function." }
3705 "description": "Returns detailed information on given function."
3708 "name": "getGeneratorObjectDetails",
3711 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "Id of the generator object to get details for." }
3714 { "name": "details", "$ref": "GeneratorObjectDetails", "description": "Information about the generator object." }
3716 "description": "Returns detailed information on given generator object."
3719 "name": "getCollectionEntries",
3722 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "Id of the collection to get entries for." }
3725 { "name": "entries", "type": "array", "items": { "$ref": "CollectionEntry" }, "description": "Array of collection entries." }
3727 "description": "Returns entries of given collection."
3730 "name": "setPauseOnExceptions",
3732 { "name": "state", "type": "string", "enum": ["none", "uncaught", "all"], "description": "Pause on exceptions mode." }
3734 "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>."
3737 "name": "evaluateOnCallFrame",
3739 { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." },
3740 { "name": "expression", "type": "string", "description": "Expression to evaluate." },
3741 { "name": "objectGroup", "type": "string", "optional": true, "description": "String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>)." },
3742 { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false.", "hidden": true },
3743 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true },
3744 { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." },
3745 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." }
3748 { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Object wrapper for the evaluation result." },
3749 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
3750 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "optional": true, "hidden": true, "description": "Exception details."}
3752 "description": "Evaluates expression on a given call frame."
3755 "name": "compileScript",
3758 { "name": "expression", "type": "string", "description": "Expression to compile." },
3759 { "name": "sourceURL", "type": "string", "description": "Source url to be set for the script." },
3760 { "name": "persistScript", "type": "boolean", "description": "Specifies whether the compiled script should be persisted." },
3761 { "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page." }
3764 { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." },
3765 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "optional": true, "description": "Exception details."}
3767 "description": "Compiles expression."
3770 "name": "runScript",
3773 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." },
3774 { "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page." },
3775 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." },
3776 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether script run should stop on exceptions and mute console. Overrides setPauseOnException state." }
3779 { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Run result." },
3780 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "optional": true, "description": "Exception details."}
3782 "description": "Runs script with given id in a given context."
3785 "name": "setVariableValue",
3787 { "name": "scopeNumber", "type": "integer", "description": "0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually." },
3788 { "name": "variableName", "type": "string", "description": "Variable name." },
3789 { "name": "newValue", "$ref": "Runtime.CallArgument", "description": "New variable value." },
3790 { "name": "callFrameId", "$ref": "CallFrameId", "optional": true, "description": "Id of callframe that holds variable." },
3791 { "name": "functionObjectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "Object id of closure (function) that holds variable." }
3794 "description": "Changes value of variable in a callframe or a closure. Either callframe or function must be specified. Object-based scopes are not supported and must be mutated manually."
3797 "name": "getStepInPositions",
3799 { "name": "callFrameId", "$ref": "CallFrameId", "description": "Id of a call frame where the current statement should be analized" }
3802 { "name": "stepInPositions", "type": "array", "items": { "$ref": "Location" }, "optional": true, "description": "experimental" }
3805 "description": "Lists all positions where step-in is possible for a current statement in a specified call frame"
3808 "name": "getBacktrace",
3810 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." },
3811 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." }
3814 "description": "Returns call stack including variables changed since VM was paused. VM must be paused."
3817 "name": "skipStackFrames",
3819 { "name": "script", "type": "string", "optional": true, "description": "Regular expression defining the scripts to ignore while stepping." },
3820 { "name": "skipContentScripts", "type": "boolean", "optional": true, "description": "True, if all content scripts should be ignored." }
3823 "description": "Makes backend skip steps in the sources with names matching given pattern. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful."
3826 "name": "setAsyncCallStackDepth",
3828 { "name": "maxDepth", "type": "integer", "description": "Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default)." }
3831 "description": "Enables or disables async call stacks tracking."
3834 "name": "enablePromiseTracker",
3836 { "name": "captureStacks", "type": "boolean", "optional": true, "description": "Whether to capture stack traces for promise creation and settlement events (default: false)." }
3839 "description": "Enables promise tracking, information about <code>Promise</code>s created or updated will now be stored on the backend."
3842 "name": "disablePromiseTracker",
3844 "description": "Disables promise tracking."
3847 "name": "getPromiseById",
3849 { "name": "promiseId", "type": "integer" },
3850 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }
3853 { "name": "promise", "$ref": "Runtime.RemoteObject", "description": "Object wrapper for <code>Promise</code> with specified ID, if any." }
3856 "description": "Returns <code>Promise</code> with specified ID."
3859 "name": "flushAsyncOperationEvents",
3861 "description": "Fires pending <code>asyncOperationStarted</code> events (if any), as if a debugger stepping session has just been started."
3864 "name": "setAsyncOperationBreakpoint",
3866 { "name": "operationId", "type": "integer", "description": "ID of the async operation to set breakpoint for." }
3869 "description": "Sets breakpoint on AsyncOperation callback handler."
3872 "name": "removeAsyncOperationBreakpoint",
3874 { "name": "operationId", "type": "integer", "description": "ID of the async operation to remove breakpoint for." }
3877 "description": "Removes AsyncOperation breakpoint."
3882 "name": "globalObjectCleared",
3883 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload."
3886 "name": "scriptParsed",
3888 { "name": "scriptId", "$ref": "ScriptId", "description": "Identifier of the script parsed." },
3889 { "name": "url", "type": "string", "description": "URL or name of the script parsed (if any)." },
3890 { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource with given URL (for script tags)." },
3891 { "name": "startColumn", "type": "integer", "description": "Column offset of the script within the resource with given URL." },
3892 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
3893 { "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." },
3894 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." },
3895 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", "hidden": true },
3896 { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." },
3897 { "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "True, if this script has sourceURL.", "hidden": true }
3899 "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger."
3902 "name": "scriptFailedToParse",
3904 { "name": "scriptId", "$ref": "ScriptId", "description": "Identifier of the script parsed." },
3905 { "name": "url", "type": "string", "description": "URL or name of the script parsed (if any)." },
3906 { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource with given URL (for script tags)." },
3907 { "name": "startColumn", "type": "integer", "description": "Column offset of the script within the resource with given URL." },
3908 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
3909 { "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." },
3910 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." },
3911 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", "hidden": true },
3912 { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." },
3913 { "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "True, if this script has sourceURL.", "hidden": true }
3915 "description": "Fired when virtual machine fails to parse the script."
3918 "name": "breakpointResolved",
3920 { "name": "breakpointId", "$ref": "BreakpointId", "description": "Breakpoint unique identifier." },
3921 { "name": "location", "$ref": "Location", "description": "Actual breakpoint location." }
3923 "description": "Fired when breakpoint is resolved to an actual script and location."
3928 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." },
3929 { "name": "reason", "type": "string", "enum": [ "XHR", "DOM", "EventListener", "exception", "assert", "CSPViolation", "debugCommand", "promiseRejection", "AsyncOperation", "other" ], "description": "Pause reason." },
3930 { "name": "data", "type": "object", "optional": true, "description": "Object containing break-specific auxiliary properties." },
3931 { "name": "hitBreakpoints", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden": true },
3932 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any.", "hidden": true }
3934 "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria."
3938 "description": "Fired when the virtual machine resumed execution."
3941 "name": "promiseUpdated",
3943 { "name": "eventType", "type": "string", "enum": ["new", "update", "gc"], "description": "Type of the event." },
3944 { "name": "promise", "$ref": "PromiseDetails", "description": "Information about the updated <code>Promise</code>." }
3946 "description": "Fired when a <code>Promise</code> is created, updated or garbage collected.",
3950 "name": "asyncOperationStarted",
3952 { "name": "operation", "$ref": "AsyncOperation", "description": "Information about the async operation." }
3954 "description": "Fired when an async operation is scheduled (while in a debugger stepping session).",
3958 "name": "asyncOperationCompleted",
3960 { "name": "id", "type": "integer", "description": "ID of the async operation that was completed." }
3962 "description": "Fired when an async operation is completed (while in a debugger stepping session).",
3968 "domain": "DOMDebugger",
3969 "description": "DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.",
3972 "id": "DOMBreakpointType",
3974 "enum": ["subtree-modified", "attribute-modified", "node-removed"],
3975 "description": "DOM breakpoint type."
3978 "id": "EventListener",
3980 "description": "Object event listener.",
3982 { "name": "type", "type": "string", "description": "<code>EventListener</code>'s type." },
3983 { "name": "useCapture", "type": "boolean", "description": "<code>EventListener</code>'s useCapture." },
3984 { "name": "location", "$ref": "Debugger.Location", "description": "Handler code location." },
3985 { "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." },
3986 { "name": "originalHandler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event original handler function value." }
3993 "name": "setDOMBreakpoint",
3995 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to set breakpoint on." },
3996 { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the operation to stop upon." }
3998 "description": "Sets breakpoint on particular operation with DOM."
4001 "name": "removeDOMBreakpoint",
4003 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to remove breakpoint from." },
4004 { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the breakpoint to remove." }
4006 "description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>."
4009 "name": "setEventListenerBreakpoint",
4011 { "name": "eventName", "type": "string", "description": "DOM Event name to stop on (any DOM event will do)." },
4012 { "name": "targetName", "type": "string", "optional": true, "description": "EventTarget interface name to stop on. If equal to <code>\"*\"</code> or not provided, will stop on any EventTarget.", "hidden": true }
4014 "description": "Sets breakpoint on particular DOM event."
4017 "name": "removeEventListenerBreakpoint",
4019 { "name": "eventName", "type": "string", "description": "Event name." },
4020 { "name": "targetName", "type": "string", "optional": true, "description": "EventTarget interface name.", "hidden": true }
4022 "description": "Removes breakpoint on particular DOM event."
4025 "name": "setInstrumentationBreakpoint",
4027 { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." }
4029 "description": "Sets breakpoint on particular native event.",
4033 "name": "removeInstrumentationBreakpoint",
4035 { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." }
4037 "description": "Removes breakpoint on particular native event.",
4041 "name": "setXHRBreakpoint",
4043 { "name": "url", "type": "string", "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon." }
4045 "description": "Sets breakpoint on XMLHttpRequest."
4048 "name": "removeXHRBreakpoint",
4050 { "name": "url", "type": "string", "description": "Resource URL substring." }
4052 "description": "Removes breakpoint from XMLHttpRequest."
4055 "name": "getEventListeners",
4058 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "Identifier of the object to return listeners for." }
4061 { "name": "listeners", "type": "array", "items": { "$ref": "EventListener" }, "description": "Array of relevant listeners." }
4063 "description": "Returns event listeners of the given object."
4068 "domain": "Profiler",
4072 "id": "CPUProfileNode",
4074 "description": "CPU Profile node. Holds callsite information, execution statistics and child nodes.",
4076 { "name": "functionName", "type": "string", "description": "Function name." },
4077 { "name": "scriptId", "$ref": "Debugger.ScriptId", "description": "Script identifier." },
4078 { "name": "url", "type": "string", "description": "URL." },
4079 { "name": "lineNumber", "type": "integer", "description": "1-based line number of the function start position." },
4080 { "name": "columnNumber", "type": "integer", "description": "1-based column number of the function start position." },
4081 { "name": "hitCount", "type": "integer", "description": "Number of samples where this node was on top of the call stack." },
4082 { "name": "callUID", "type": "number", "description": "Call UID." },
4083 { "name": "children", "type": "array", "items": { "$ref": "CPUProfileNode" }, "description": "Child nodes." },
4084 { "name": "deoptReason", "type": "string", "description": "The reason of being not optimized. The function may be deoptimized or marked as don't optimize."},
4085 { "name": "id", "type": "integer", "description": "Unique id of the node." },
4086 { "name": "positionTicks", "type": "array", "items": { "$ref": "PositionTickInfo" }, "description": "An array of source position ticks." }
4092 "description": "Profile.",
4094 { "name": "head", "$ref": "CPUProfileNode" },
4095 { "name": "startTime", "type": "number", "description": "Profiling start time in seconds." },
4096 { "name": "endTime", "type": "number", "description": "Profiling end time in seconds." },
4097 { "name": "samples", "optional": true, "type": "array", "items": { "type": "integer" }, "description": "Ids of samples top nodes." },
4098 { "name": "timestamps", "optional": true, "type": "array", "items": { "type": "number" }, "description": "Timestamps of the samples in microseconds." }
4102 "id": "PositionTickInfo",
4104 "description": "Specifies a number of samples attributed to a certain source position.",
4106 { "name": "line", "type": "integer", "description": "Source line number (1-based)." },
4107 { "name": "ticks", "type": "integer", "description": "Number of samples attributed to the source line." }
4119 "name": "setSamplingInterval",
4121 { "name": "interval", "type": "integer", "description": "New sampling interval in microseconds." }
4123 "description": "Changes CPU profiler sampling interval. Must be called before CPU profiles recording started."
4131 { "name": "profile", "$ref": "CPUProfile", "description": "Recorded profile." }
4137 "name": "consoleProfileStarted",
4139 { "name": "id", "type": "string" },
4140 { "name": "location", "$ref": "Debugger.Location", "description": "Location of console.profile()." },
4141 { "name": "title", "type": "string", "optional": true, "description": "Profile title passed as argument to console.profile()." }
4144 "description": "Sent when new profile recodring is started using console.profile() call."
4147 "name": "consoleProfileFinished",
4149 { "name": "id", "type": "string" },
4150 { "name": "location", "$ref": "Debugger.Location", "description": "Location of console.profileEnd()." },
4151 { "name": "profile", "$ref": "CPUProfile" },
4152 { "name": "title", "type": "string", "optional": true, "description": "Profile title passed as argunet to console.profile()." }
4158 "domain": "HeapProfiler",
4162 "id": "HeapSnapshotObjectId",
4164 "description": "Heap snapshot object id."
4175 "name": "startTrackingHeapObjects",
4177 { "name": "trackAllocations", "type": "boolean", "optional": true }
4181 "name": "stopTrackingHeapObjects",
4183 { "name": "reportProgress", "type": "boolean", "optional": true, "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped." }
4188 "name": "takeHeapSnapshot",
4190 { "name": "reportProgress", "type": "boolean", "optional": true, "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken." }
4194 "name": "collectGarbage"
4197 "name": "getObjectByHeapObjectId",
4199 { "name": "objectId", "$ref": "HeapSnapshotObjectId" },
4200 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }
4203 { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Evaluation result." }
4207 "name": "addInspectedHeapObject",
4209 { "name": "heapObjectId", "$ref": "HeapSnapshotObjectId", "description": "Heap snapshot object id to be accessible by means of $x command line API." }
4211 "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions)."
4214 "name": "getHeapObjectId",
4216 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "Identifier of the object to get heap object id for." }
4219 { "name": "heapSnapshotObjectId", "$ref": "HeapSnapshotObjectId", "description": "Id of the heap snapshot object corresponding to the passed remote object id." }
4225 "name": "addHeapSnapshotChunk",
4227 { "name": "chunk", "type": "string" }
4231 "name": "resetProfiles"
4234 "name": "reportHeapSnapshotProgress",
4236 { "name": "done", "type": "integer" },
4237 { "name": "total", "type": "integer" },
4238 { "name": "finished", "type": "boolean", "optional": true }
4242 "name": "lastSeenObjectId",
4243 "description": "If heap objects tracking has been started then backend regulary sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.",
4245 { "name": "lastSeenObjectId", "type": "integer" },
4246 { "name": "timestamp", "type": "number" }
4250 "name": "heapStatsUpdate",
4251 "description": "If heap objects tracking has been started then backend may send update for one or more fragments",
4253 { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment."}
4270 "name": "sendMessageToWorker",
4272 { "name": "workerId", "type": "string" },
4273 { "name": "message", "type": "string" }
4277 "name": "connectToWorker",
4279 { "name": "workerId", "type": "string" }
4283 "name": "disconnectFromWorker",
4285 { "name": "workerId", "type": "string" }
4289 "name": "setAutoconnectToWorkers",
4291 { "name": "value", "type": "boolean" }
4297 "name": "workerCreated",
4299 { "name": "workerId", "type": "string" },
4300 { "name": "url", "type": "string" },
4301 { "name": "inspectorConnected", "type": "boolean" }
4305 "name": "workerTerminated",
4307 { "name": "workerId", "type": "string" }
4311 "name": "dispatchMessageFromWorker",
4313 { "name": "workerId", "type": "string" },
4314 { "name": "message", "type": "string" }
4320 "domain": "ServiceWorker",
4324 "id": "ServiceWorkerRegistration",
4326 "description": "ServiceWorker registration.",
4328 { "name": "registrationId", "type": "string" },
4329 { "name": "scopeURL", "type": "string" },
4330 { "name": "isDeleted", "type": "boolean" },
4331 { "name": "forceUpdateOnPageLoad", "type": "boolean", "optional": true }
4335 "id": "ServiceWorkerVersionRunningStatus",
4337 "enum": ["stopped", "starting", "running", "stopping"]
4340 "id": "ServiceWorkerVersionStatus",
4342 "enum": ["new", "installing", "installed", "activating", "activated", "redundant"]
4349 "id": "ServiceWorkerVersion",
4351 "description": "ServiceWorker version.",
4353 { "name": "versionId", "type": "string" },
4354 { "name": "registrationId", "type": "string" },
4355 { "name": "scriptURL", "type": "string" },
4356 { "name": "runningStatus", "$ref": "ServiceWorkerVersionRunningStatus" },
4357 { "name": "status", "$ref": "ServiceWorkerVersionStatus" },
4358 { "name": "scriptLastModified", "type": "number", "optional": true, "description": "The Last-Modified header value of the main script." },
4359 { "name": "scriptResponseTime", "type": "number", "optional": true, "description": "The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated." },
4360 { "name": "controlledClients", "type": "array", "optional": true, "items": { "$ref": "TargetID" } }
4364 "id": "ServiceWorkerErrorMessage",
4366 "description": "ServiceWorker error message.",
4368 { "name": "errorMessage", "type": "string" },
4369 { "name": "registrationId", "type": "string" },
4370 { "name": "versionId", "type": "string" },
4371 { "name": "sourceURL", "type": "string" },
4372 { "name": "lineNumber", "type": "integer" },
4373 { "name": "columnNumber", "type": "integer" }
4380 { "name": "id", "$ref": "TargetID" },
4381 { "name": "type", "type": "string" },
4382 { "name": "title", "type": "string" },
4383 { "name": "url", "type": "string" }
4390 "handlers": ["browser"]
4394 "handlers": ["browser"]
4397 "name": "sendMessage",
4399 { "name": "workerId", "type": "string" },
4400 { "name": "message", "type": "string" }
4402 "handlers": ["browser"]
4407 { "name": "workerId", "type": "string" }
4409 "handlers": ["browser"]
4412 "name": "unregister",
4414 { "name": "scopeURL", "type": "string" }
4416 "handlers": ["browser"]
4419 "name": "updateRegistration",
4421 { "name": "scopeURL", "type": "string" }
4423 "handlers": ["browser"]
4426 "name": "startWorker",
4428 { "name": "scopeURL", "type": "string" }
4430 "handlers": ["browser"]
4433 "name": "stopWorker",
4435 { "name": "versionId", "type": "string" }
4437 "handlers": ["browser"]
4440 "name": "inspectWorker",
4442 { "name": "versionId", "type": "string" }
4444 "handlers": ["browser"]
4447 "name": "skipWaiting",
4449 { "name": "versionId", "type": "string" }
4451 "handlers": ["browser"]
4454 "name": "setDebugOnStart",
4456 { "name": "debugOnStart", "type": "boolean" }
4458 "handlers": ["browser"]
4461 "name": "setForceUpdateOnPageLoad",
4463 { "name": "registrationId", "type": "string" },
4464 { "name": "forceUpdateOnPageLoad", "type": "boolean" }
4466 "handlers": ["browser"]
4469 "name": "deliverPushMessage",
4471 { "name": "origin", "type": "string" },
4472 { "name": "registrationId", "type": "string" },
4473 { "name": "data", "type": "string" }
4475 "handlers": ["browser"]
4478 "name": "getTargetInfo",
4480 { "name": "targetId", "$ref": "TargetID" }
4483 { "name": "targetInfo","$ref": "TargetInfo" }
4485 "handlers": ["browser"]
4488 "name": "activateTarget",
4490 { "name": "targetId", "$ref": "TargetID" }
4492 "handlers": ["browser"]
4497 "name": "workerCreated",
4499 { "name": "workerId", "type": "string" },
4500 { "name": "url", "type": "string" },
4501 { "name": "versionId", "type": "string" }
4503 "handlers": ["browser"]
4506 "name": "workerTerminated",
4508 { "name": "workerId", "type": "string" }
4510 "handlers": ["browser"]
4513 "name": "dispatchMessage",
4515 { "name": "workerId", "type": "string" },
4516 { "name": "message", "type": "string" }
4518 "handlers": ["browser"]
4521 "name": "workerRegistrationUpdated",
4523 { "name": "registrations", "type": "array", "items": { "$ref": "ServiceWorkerRegistration" } }
4525 "handlers": ["browser"]
4528 "name": "workerVersionUpdated",
4530 { "name": "versions", "type": "array", "items": { "$ref": "ServiceWorkerVersion" } }
4532 "handlers": ["browser"]
4535 "name": "workerErrorReported",
4537 { "name": "errorMessage", "$ref": "ServiceWorkerErrorMessage" }
4539 "handlers": ["browser"]
4542 "name": "debugOnStartUpdated",
4544 { "name": "debugOnStart", "type": "boolean" }
4546 "handlers": ["browser"]
4558 { "name": "state", "type": "string", "enum": ["touchPressed", "touchReleased", "touchMoved", "touchStationary", "touchCancelled"], "description": "State of the touch point." },
4559 { "name": "x", "type": "integer", "description": "X coordinate of the event relative to the main frame's viewport."},
4560 { "name": "y", "type": "integer", "description": "Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."},
4561 { "name": "radiusX", "type": "integer", "optional": true, "description": "X radius of the touch area (default: 1)."},
4562 { "name": "radiusY", "type": "integer", "optional": true, "description": "Y radius of the touch area (default: 1)."},
4563 { "name": "rotationAngle", "type": "number", "optional": true, "description": "Rotation angle (default: 0.0)."},
4564 { "name": "force", "type": "number", "optional": true, "description": "Force (default: 1.0)."},
4565 { "name": "id", "type": "number", "optional": true, "description": "Identifier used to track touch sources between events, must be unique within an event."}
4569 "id": "GestureSourceType",
4572 "enum": ["default", "touch", "mouse"]
4577 "name": "dispatchKeyEvent",
4579 { "name": "type", "type": "string", "enum": ["keyDown", "keyUp", "rawKeyDown", "char"], "description": "Type of the key event." },
4580 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." },
4581 { "name": "timestamp", "type": "number", "optional": true, "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)." },
4582 { "name": "text", "type": "string", "optional": true, "description": "Text as generated by processing a virtual key code with a keyboard layout. Not needed for for <code>keyUp</code> and <code>rawKeyDown</code> events (default: \"\")" },
4583 { "name": "unmodifiedText", "type": "string", "optional": true, "description": "Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: \"\")." },
4584 { "name": "keyIdentifier", "type": "string", "optional": true, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." },
4585 { "name": "code", "type": "string", "optional": true, "description": "Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: \"\")." },
4586 { "name": "key", "type": "string", "optional": true, "description": "Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: \"\")." },
4587 { "name": "windowsVirtualKeyCode", "type": "integer", "optional": true, "description": "Windows virtual key code (default: 0)." },
4588 { "name": "nativeVirtualKeyCode", "type": "integer", "optional": true, "description": "Native virtual key code (default: 0)." },
4589 { "name": "autoRepeat", "type": "boolean", "optional": true, "description": "Whether the event was generated from auto repeat (default: false)." },
4590 { "name": "isKeypad", "type": "boolean", "optional": true, "description": "Whether the event was generated from the keypad (default: false)." },
4591 { "name": "isSystemKey", "type": "boolean", "optional": true, "description": "Whether the event was a system key event (default: false)." }
4593 "description": "Dispatches a key event to the page.",
4594 "handlers": ["browser"]
4597 "name": "dispatchMouseEvent",
4599 { "name": "type", "type": "string", "enum": ["mousePressed", "mouseReleased", "mouseMoved"], "description": "Type of the mouse event." },
4600 { "name": "x", "type": "integer", "description": "X coordinate of the event relative to the main frame's viewport."},
4601 { "name": "y", "type": "integer", "description": "Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."},
4602 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." },
4603 { "name": "timestamp", "type": "number", "optional": true, "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)." },
4604 { "name": "button", "type": "string", "enum": ["none", "left", "middle", "right"], "optional": true, "description": "Mouse button (default: \"none\")." },
4605 { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." }
4607 "description": "Dispatches a mouse event to the page.",
4608 "handlers": ["browser"]
4611 "name": "dispatchTouchEvent",
4614 { "name": "type", "type": "string", "enum": ["touchStart", "touchEnd", "touchMove"], "description": "Type of the touch event." },
4615 { "name": "touchPoints", "type": "array", "items": { "$ref": "TouchPoint" }, "description": "Touch points." },
4616 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." },
4617 { "name": "timestamp", "type": "number", "optional": true, "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)." }
4619 "description": "Dispatches a touch event to the page."
4622 "name": "emulateTouchFromMouseEvent",
4625 { "name": "type", "type": "string", "enum": ["mousePressed", "mouseReleased", "mouseMoved", "mouseWheel"], "description": "Type of the mouse event." },
4626 { "name": "x", "type": "integer", "description": "X coordinate of the mouse pointer in DIP."},
4627 { "name": "y", "type": "integer", "description": "Y coordinate of the mouse pointer in DIP."},
4628 { "name": "timestamp", "type": "number", "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970." },
4629 { "name": "button", "type": "string", "enum": ["none", "left", "middle", "right"], "description": "Mouse button." },
4630 { "name": "deltaX", "type": "number", "optional": true, "description": "X delta in DIP for mouse wheel event (default: 0)."},
4631 { "name": "deltaY", "type": "number", "optional": true, "description": "Y delta in DIP for mouse wheel event (default: 0)."},
4632 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." },
4633 { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." }
4635 "description": "Emulates touch event from the mouse event parameters.",
4636 "handlers": ["browser"]
4639 "name": "synthesizePinchGesture",
4642 { "name": "x", "type": "integer", "description": "X coordinate of the start of the gesture in CSS pixels." },
4643 { "name": "y", "type": "integer", "description": "Y coordinate of the start of the gesture in CSS pixels." },
4644 { "name": "scaleFactor", "type": "number", "description": "Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out)." },
4645 { "name": "relativeSpeed", "type": "integer", "optional": true, "description": "Relative pointer speed in pixels per second (default: 800)." },
4646 { "name": "gestureSourceType", "$ref": "GestureSourceType", "optional": true, "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)." }
4648 "description": "Synthesizes a pinch gesture over a time period by issuing appropriate touch events.",
4650 "handlers": ["browser"]
4653 "name": "synthesizeScrollGesture",
4656 { "name": "x", "type": "integer", "description": "X coordinate of the start of the gesture in CSS pixels." },
4657 { "name": "y", "type": "integer", "description": "Y coordinate of the start of the gesture in CSS pixels." },
4658 { "name": "xDistance", "type": "integer", "optional": true, "description": "The distance to scroll along the X axis (positive to scroll left)." },
4659 { "name": "yDistance", "type": "integer", "optional": true, "description": "The distance to scroll along the Y axis (positive to scroll up)." },
4660 { "name": "xOverscroll", "type": "integer", "optional": true, "description": "The number of additional pixels to scroll back along the X axis, in addition to the given distance." },
4661 { "name": "yOverscroll", "type": "integer", "optional": true, "description": "The number of additional pixels to scroll back along the Y axis, in addition to the given distance." },
4662 { "name": "preventFling", "type": "boolean", "optional": true, "description": "Prevent fling (default: true)." },
4663 { "name": "speed", "type": "integer", "optional": true, "description": "Swipe speed in pixels per second (default: 800)." },
4664 { "name": "gestureSourceType", "$ref": "GestureSourceType", "optional": true, "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)." },
4665 { "name": "repeatCount", "type": "integer", "optional": true, "description": "The number of times to repeat the gesture (default: 0)." },
4666 { "name": "repeatDelayMs", "type": "integer", "optional": true, "description": "The number of milliseconds delay between each repeat. (default: 250)." },
4667 { "name": "interactionMarkerName", "type": "string", "optional": true, "description": "The name of the interaction markers to generate, if not empty (default: \"\")." }
4669 "description": "Synthesizes a scroll gesture over a time period by issuing appropriate touch events.",
4671 "handlers": ["browser"]
4674 "name": "synthesizeTapGesture",
4677 { "name": "x", "type": "integer", "description": "X coordinate of the start of the gesture in CSS pixels." },
4678 { "name": "y", "type": "integer", "description": "Y coordinate of the start of the gesture in CSS pixels." },
4679 { "name": "duration", "type": "integer", "optional": true, "description": "Duration between touchdown and touchup events in ms (default: 50)." },
4680 { "name": "tapCount", "type": "integer", "optional": true, "description": "Number of times to perform the tap (e.g. 2 for double tap, default: 1)." },
4681 { "name": "gestureSourceType", "$ref": "GestureSourceType", "optional": true, "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)." }
4683 "description": "Synthesizes a tap gesture over a time period by issuing appropriate touch events.",
4685 "handlers": ["browser"]
4691 "domain": "LayerTree",
4697 "description": "Unique Layer identifier."
4702 "description": "Unique snapshot identifier."
4707 "description": "Rectangle where scrolling happens on the main thread.",
4709 { "name": "rect", "$ref": "DOM.Rect", "description": "Rectangle itself." },
4710 { "name": "type", "type": "string", "enum": ["RepaintsOnScroll", "TouchEventHandler", "WheelEventHandler"], "description": "Reason for rectangle to force scrolling on the main thread" }
4714 "id": "PictureTile",
4716 "description": "Serialized fragment of layer picture along with its offset within the layer.",
4718 { "name": "x", "type": "number", "description": "Offset from owning layer left boundary" },
4719 { "name": "y", "type": "number", "description": "Offset from owning layer top boundary" },
4720 { "name": "picture", "type": "string", "description": "Base64-encoded snapshot data." }
4726 "description": "Information about a compositing layer.",
4728 { "name": "layerId", "$ref": "LayerId", "description": "The unique id for this layer." },
4729 { "name": "parentLayerId", "$ref": "LayerId", "optional": true, "description": "The id of parent (not present for root)." },
4730 { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "optional": true, "description": "The backend id for the node associated with this layer." },
4731 { "name": "offsetX", "type": "number", "description": "Offset from parent layer, X coordinate." },
4732 { "name": "offsetY", "type": "number", "description": "Offset from parent layer, Y coordinate." },
4733 { "name": "width", "type": "number", "description": "Layer width." },
4734 { "name": "height", "type": "number", "description": "Layer height." },
4735 { "name": "transform", "type": "array", "items": { "type": "number" }, "minItems": 16, "maxItems": 16, "optional": true, "description": "Transformation matrix for layer, default is identity matrix" },
4736 { "name": "anchorX", "type": "number", "optional": true, "description": "Transform anchor point X, absent if no transform specified" },
4737 { "name": "anchorY", "type": "number", "optional": true, "description": "Transform anchor point Y, absent if no transform specified" },
4738 { "name": "anchorZ", "type": "number", "optional": true, "description": "Transform anchor point Z, absent if no transform specified" },
4739 { "name": "paintCount", "type": "integer", "description": "Indicates how many time this layer has painted." },
4740 { "name": "drawsContent", "type": "boolean", "description": "Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only." },
4741 { "name": "invisible", "type": "boolean", "optional": true, "description": "Set if layer is not visible." },
4742 { "name": "scrollRects", "type": "array", "items": { "$ref": "ScrollRect"}, "optional": true, "description": "Rectangles scrolling on main thread only."}
4746 "id": "PaintProfile",
4748 "description": "Array of timings, one per paint step.",
4751 "description": "A time in seconds since the end of previous step (for the first step, time since painting started)"
4758 "description": "Enables compositing tree inspection."
4762 "description": "Disables compositing tree inspection."
4765 "name": "compositingReasons",
4767 { "name": "layerId", "$ref": "LayerId", "description": "The id of the layer for which we want to get the reasons it was composited." }
4769 "description": "Provides the reasons why the given layer was composited.",
4771 { "name": "compositingReasons", "type": "array", "items": { "type": "string" }, "description": "A list of strings specifying reasons for the given layer to become composited." }
4775 "name": "makeSnapshot",
4777 { "name": "layerId", "$ref": "LayerId", "description": "The id of the layer." }
4779 "description": "Returns the layer snapshot identifier.",
4781 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." }
4785 "name": "loadSnapshot",
4787 { "name": "tiles", "type": "array", "items": { "$ref": "PictureTile" }, "minItems": 1, "description": "An array of tiles composing the snapshot." }
4789 "description": "Returns the snapshot identifier.",
4791 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the snapshot." }
4795 "name": "releaseSnapshot",
4797 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." }
4799 "description": "Releases layer snapshot captured by the back-end."
4802 "name": "profileSnapshot",
4804 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." },
4805 { "name": "minRepeatCount", "type": "integer", "optional": true, "description": "The maximum number of times to replay the snapshot (1, if not specified)." },
4806 { "name": "minDuration", "type": "number", "optional": true, "description": "The minimum duration (in seconds) to replay the snapshot." },
4807 { "name": "clipRect", "$ref": "DOM.Rect", "optional": true, "description": "The clip rectangle to apply when replaying the snapshot." }
4810 { "name": "timings", "type": "array", "items": { "$ref": "PaintProfile" }, "description": "The array of paint profiles, one per run." }
4814 "name": "replaySnapshot",
4816 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." },
4817 { "name": "fromStep", "type": "integer", "optional": true, "description": "The first step to replay from (replay from the very start if not specified)." },
4818 { "name": "toStep", "type": "integer", "optional": true, "description": "The last step to replay to (replay till the end if not specified)." },
4819 { "name": "scale", "type": "number", "optional": true, "description": "The scale to apply while replaying (defaults to 1)." }
4821 "description": "Replays the layer snapshot and returns the resulting bitmap.",
4823 { "name": "dataURL", "type": "string", "description": "A data: URL for resulting image." }
4827 "name": "snapshotCommandLog",
4829 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." }
4831 "description": "Replays the layer snapshot and returns canvas log.",
4833 { "name": "commandLog", "type": "array", "items": { "type": "object" }, "description": "The array of canvas function calls." }
4839 "name": "layerTreeDidChange",
4841 { "name": "layers", "type": "array", "items": { "$ref": "Layer" }, "optional": true, "description": "Layer tree, absent if not in the comspositing mode." }
4845 "name": "layerPainted",
4847 { "name": "layerId", "$ref": "LayerId", "description": "The id of the painted layer." },
4848 { "name": "clip", "$ref": "DOM.Rect", "description": "Clip rectangle." }
4854 "domain": "DeviceOrientation",
4858 "name": "setDeviceOrientationOverride",
4859 "description": "Overrides the Device Orientation.",
4861 { "name": "alpha", "type": "number", "description": "Mock alpha"},
4862 { "name": "beta", "type": "number", "description": "Mock beta"},
4863 { "name": "gamma", "type": "number", "description": "Mock gamma"}
4867 "name": "clearDeviceOrientationOverride",
4868 "description": "Clears the overridden Device Orientation."
4873 "domain": "ScreenOrientation",
4877 "id": "OrientationType",
4879 "enum": ["portraitPrimary", "portraitSecondary", "landscapePrimary", "landscapeSecondary"],
4880 "description": "Orientation type"
4885 "name": "setScreenOrientationOverride",
4886 "description": "Overrides the Screen Orientation.",
4888 { "name": "angle", "type": "integer", "description": "Orientation angle" },
4889 { "name": "type", "$ref": "OrientationType", "description": "Orientation type" }
4893 "name": "clearScreenOrientationOverride",
4894 "description": "Clears the overridden Screen Orientation."
4899 "domain": "Tracing",
4904 "description": "Start trace events collection.",
4906 { "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" },
4907 { "name": "options", "type": "string", "optional": true, "description": "Tracing options" },
4908 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage events at this interval, specified in milliseconds" },
4909 { "name": "transferMode", "type": "string", "enum": ["ReportEvents", "ReturnAsStream"], "optional": true, "description": "Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to <code>ReportEvents</code>)." }
4911 "handlers": ["browser", "renderer"]
4916 "description": "Stop trace events collection.",
4917 "handlers": ["browser", "renderer"]
4920 "name": "getCategories",
4922 "description": "Gets supported tracing categories.",
4924 { "name": "categories", "type": "array", "items": { "type": "string" }, "description": "A list of supported tracing categories." }
4926 "handlers": ["browser"]
4929 "name": "requestMemoryDump",
4931 "description": "Request a global memory dump.",
4933 { "name": "dumpGuid", "type": "string", "description": "GUID of the resulting global memory dump." },
4934 { "name": "success", "type": "boolean", "description": "True iff the global memory dump succeeded." }
4936 "handlers": ["browser"]
4941 "name": "dataCollected",
4943 { "name": "value", "type": "array", "items": { "type": "object" } }
4945 "description": "Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.",
4946 "handlers": ["browser"]
4949 "name": "tracingComplete",
4950 "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.",
4952 { "name": "stream", "$ref": "IO.StreamHandle", "optional": true, "description": "A handle of the stream that holds resulting trace data." }
4954 "handlers": ["browser"]
4957 "name": "bufferUsage",
4959 { "name": "percentFull", "type": "number", "optional": true, "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." },
4960 { "name": "eventCount", "type": "number", "optional": true, "description": "An approximate number of events in the trace log." },
4961 { "name": "value", "type": "number", "optional": true, "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." }
4963 "handlers": ["browser"]
4975 { "name": "type", "type": "string", "description": "Power Event Type." },
4976 { "name": "timestamp", "type": "number", "description": "Power Event Time, in milliseconds." },
4977 { "name": "value", "type": "number", "description": "Power Event Value." }
4979 "description": "PowerEvent item"
4985 "description": "Start power events collection.",
4987 "handlers": ["browser", "frontend"]
4991 "description": "Stop power events collection.",
4993 "handlers": ["browser", "frontend"]
4996 "name": "canProfilePower",
4997 "description": "Tells whether power profiling is supported.",
4999 { "name": "result", "type": "boolean", "description": "True if power profiling is supported." }
5002 "handlers": ["browser", "frontend"]
5005 "name": "getAccuracyLevel",
5006 "description": "Describes the accuracy level of the data provider.",
5008 { "name": "result", "type": "string", "enum": ["high", "moderate", "low"] }
5010 "handlers": ["browser", "frontend"]
5015 "name": "dataAvailable",
5017 {"name": "value", "type": "array", "items": { "$ref": "PowerEvent" }, "description": "List of power events." }
5019 "handlers": ["browser", "frontend"]
5024 "domain": "Animation",
5032 { "name": "id", "type": "string", "description": "<code>Animation</code>'s id." },
5033 { "name": "pausedState", "type": "boolean", "hidden": "true", "description": "<code>Animation</code>'s internal paused state." },
5034 { "name": "playState", "type": "string", "description": "<code>Animation</code>'s play state." },
5035 { "name": "playbackRate", "type": "number", "description": "<code>Animation</code>'s playback rate." },
5036 { "name": "startTime", "type": "number", "description": "<code>Animation</code>'s start time." },
5037 { "name": "currentTime", "type": "number", "description": "<code>Animation</code>'s current time." },
5038 { "name": "source", "$ref": "AnimationEffect", "description": "<code>Animation</code>'s source animation node." },
5039 { "name": "type", "type": "string", "enum": ["CSSTransition", "CSSAnimation", "WebAnimation"], "description": "Animation type of <code>Animation</code>." }
5041 "description": "Animation instance."
5044 "id": "AnimationEffect",
5048 { "name": "delay", "type": "number", "description": "<code>AnimationEffect</code>'s delay." },
5049 { "name": "endDelay", "type": "number", "description": "<code>AnimationEffect</code>'s end delay." },
5050 { "name": "playbackRate", "type": "number", "description": "<code>AnimationEffect</code>'s playbackRate." },
5051 { "name": "iterationStart", "type": "number", "description": "<code>AnimationEffect</code>'s iteration start." },
5052 { "name": "iterations", "type": "number", "description": "<code>AnimationEffect</code>'s iterations." },
5053 { "name": "duration", "type": "number", "description": "<code>AnimationEffect</code>'s iteration duration." },
5054 { "name": "direction", "type": "string", "description": "<code>AnimationEffect</code>'s playback direction." },
5055 { "name": "fill", "type": "string", "description": "<code>AnimationEffect</code>'s fill mode." },
5056 { "name": "name", "type": "string", "description": "<code>AnimationEffect</code>'s name." },
5057 { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "description": "<code>AnimationEffect</code>'s target node." },
5058 { "name": "keyframesRule", "$ref": "KeyframesRule", "optional": true, "description": "<code>AnimationEffect</code>'s keyframes." },
5059 { "name": "easing", "type": "string", "description": "<code>AnimationEffect</code>'s timing function." }
5061 "description": "AnimationEffect instance"
5064 "id": "KeyframesRule",
5067 { "name": "name", "type": "string", "optional": true, "description": "CSS keyframed animation's name." },
5068 { "name": "keyframes", "type": "array", "items": { "$ref": "KeyframeStyle" }, "description": "List of animation keyframes." }
5070 "description": "Keyframes Rule"
5073 "id": "KeyframeStyle",
5076 { "name": "offset", "type": "string", "description": "Keyframe's time offset." },
5077 { "name": "easing", "type": "string", "description": "<code>AnimationEffect</code>'s timing function." }
5079 "description": "Keyframe Style"
5085 "description": "Enables animation domain notifications."
5089 "description": "Disables animation domain notifications."
5092 "name": "getPlaybackRate",
5094 { "name": "playbackRate", "type": "number", "description": "Playback rate for animations on page."}
5096 "description": "Gets the playback rate of the document timeline."
5099 "name": "setPlaybackRate",
5101 { "name": "playbackRate", "type": "number", "description": "Playback rate for animations on page" }
5103 "description": "Sets the playback rate of the document timeline."
5106 "name": "setCurrentTime",
5108 { "name": "currentTime", "type": "number", "description": "Current time for the page animation timeline" }
5110 "description": "Sets the current time of the document timeline."
5113 "name": "setTiming",
5115 { "name": "playerId", "type": "string", "description": "AnimationPlayer id." },
5116 { "name": "duration", "type": "number", "description": "Duration of the animation." },
5117 { "name": "delay", "type": "number", "description": "Delay of the animation." }
5119 "description": "Sets the timing of an animation node."
5124 "name": "animationCreated",
5126 { "name": "id", "type": "string", "description": "Id of the animation that was created." }
5128 "description": "Event for each animation that has been created."
5131 "name": "animationStarted",
5133 { "name": "animation", "$ref": "Animation", "description": "Animation that was started." }
5135 "description": "Event for animation that has been started."
5138 "name": "animationCanceled",
5140 { "name": "id", "type": "string", "description": "Id of the Animation that was cancelled." }
5142 "description": "Event for Animations in the frontend that have been cancelled."
5147 "domain": "Accessibility",
5153 "description": "Unique accessibility node identifier."
5156 "id": "AXValueType",
5158 "enum": [ "boolean", "tristate", "booleanOrUndefined", "idref", "idrefList", "integer", "number", "string", "token", "tokenList", "domRelation", "role", "internalRole" ],
5159 "description": "Enum of possible property types."
5162 "id": "AXPropertySourceType",
5164 "enum": [ "attribute", "implicit", "style" ],
5165 "description": "Enum of possible property sources."
5168 "id": "AXPropertySource",
5171 { "name": "name", "type": "string", "description": "The name/label of this source." },
5172 { "name": "sourceType", "$ref": "AXPropertySourceType", "description": "What type of source this is." },
5173 { "name": "value", "type": "any", "description": "The value of this property source." },
5174 { "name": "type", "$ref": "AXValueType", "description": "What type the value should be interpreted as." },
5175 { "name": "invalid", "type": "boolean", "description": "Whether the value for this property is invalid.", "optional": true },
5176 { "name": "invalidReason", "type": "string", "description": "Reason for the value being invalid, if it is.", "optional": true }
5178 "description": "A single source for a computed AX property."
5181 "id": "AXRelatedNode",
5184 { "name": "idref", "type": "string", "description": "The IDRef value provided, if any.", "optional": true },
5185 { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "description": "The BackendNodeId of the related node." }
5192 { "name": "name", "type": "string", "description": "The name of this property." },
5193 { "name": "value", "$ref": "AXValue", "description": "The value of this property." }
5200 { "name": "type", "$ref": "AXValueType", "description": "The type of this value." },
5202 { "name": "value", "type": "any", "description": "The computed value of this property.", "optional": true },
5203 { "name": "relatedNodeValue", "$ref": "AXRelatedNode", "description": "The related node value, if any.", "optional": true },
5204 { "name": "relatedNodeArrayValue", "type": "array", "items": { "$ref": "AXRelatedNode" }, "description": "Multiple relted nodes, if applicable.", "optional": true },
5205 { "name": "sources", "type": "array", "items": { "$ref": "AXPropertySource" }, "description": "The sources which contributed to the computation of this property.", "optional": true }
5207 "description": "A single computed AX property."
5210 "id": "AXGlobalStates",
5212 "enum": [ "disabled", "hidden", "hiddenRoot", "invalid" ],
5213 "description": "States which apply to every AX node."
5216 "id": "AXLiveRegionAttributes",
5218 "enum": [ "live", "atomic", "relevant", "busy", "root" ],
5219 "description": "Attributes which apply to nodes in live regions."
5222 "id": "AXWidgetAttributes",
5224 "enum": [ "autocomplete", "haspopup", "level", "multiselectable", "orientation", "multiline", "readonly", "required", "valuemin", "valuemax", "valuetext" ],
5225 "Description": "Attributes which apply to widgets."
5228 "id": "AXWidgetStates",
5230 "enum": [ "checked", "expanded", "pressed", "selected" ],
5231 "description": "States which apply to widgets."
5234 "id": "AXRelationshipAttributes",
5236 "enum": [ "activedescendant", "flowto", "controls", "describedby", "labelledby", "owns" ],
5237 "description": "Relationships between elements other than parent/child/sibling."
5243 { "name": "nodeId", "$ref": "AXNodeId", "description": "Unique identifier for this node." },
5244 { "name": "ignored", "type": "boolean", "description": "Whether this node is ignored for accessibility" },
5245 { "name": "ignoredReasons", "type": "array", "items": { "$ref": "AXProperty" }, "description": "Collection of reasons why this node is hidden.", "optional": true },
5246 { "name": "role", "$ref": "AXValue", "description": "This <code>Node</code>'s role, whether explicit or implicit.", "optional": true},
5247 { "name": "name", "$ref": "AXValue", "description": "The accessible name for this <code>Node</code>.", "optional": true },
5248 { "name": "description", "$ref": "AXValue", "description": "The accessible description for this <code>Node</code>.", "optional": true },
5249 { "name": "value", "$ref": "AXValue", "description": "The value for this <code>Node</code>.", "optional": true },
5250 { "name": "help", "$ref": "AXValue", "description": "Help.", "optional": true },
5251 { "name": "properties", "type": "array", "items": { "$ref": "AXProperty" }, "description": "All other properties", "optional": true }
5253 "description": "A node in the accessibility tree."
5258 "name": "getAXNode",
5260 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "ID of node to get accessibility node for." }
5263 { "name": "accessibilityNode", "$ref": "AXNode", "description": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "optional": true }
5265 "description": "Fetches the accessibility node for this DOM node, if it exists.",