Web Inspector: Switch to type-safe JSON ConsoleMessage.cpp, InspectorDOMAgent.cpp...
[WebKit-https.git] / Source / WebCore / inspector / Inspector-0.1.json
1 {
2     "compatible": [],
3     "domains" : [{
4         "domain": "Inspector",
5         "hidden": true,
6         "types": [],
7         "commands": [
8         ],
9         "events": [
10             {
11                 "name": "frontendReused"
12             },
13             {
14                 "name": "bringToFront"
15             },
16             {
17                 "name": "disconnectFromBackend"
18             },
19             {
20                 "name": "reset"
21             },
22             {
23                 "name": "showPanel",
24                 "parameters": [
25                     { "name": "panel", "type": "string" }
26                 ]
27             },
28             {
29                 "name": "startUserInitiatedDebugging"
30             },
31             {
32                 "name": "evaluateForTestInFrontend",
33                 "parameters": [
34                     { "name": "testCallId", "type": "integer" },
35                     { "name": "script", "type": "string" }
36                 ]
37             },
38             {
39                 "name": "inspect",
40                 "parameters": [
41                     { "name": "object", "$ref": "Runtime.RemoteObject" },
42                     { "name": "hints", "type": "object" }
43                 ]
44             },
45             {
46                 "name": "didCreateWorker",
47                 "parameters": [
48                     { "name": "id", "type": "integer" },
49                     { "name": "url", "type": "string" },
50                     { "name": "isShared", "type": "boolean" }
51                 ]
52             },
53             {
54                 "name": "didDestroyWorker",
55                 "parameters": [
56                     { "name": "id", "type": "integer" }
57                 ]
58             }
59         ]
60     },
61     {
62         "domain": "Page",
63         "description": "Actions and events related to the inspected page belong to the page domain.",
64         "types": [
65             {
66                 "id": "ResourceType",
67                 "type": "string",
68                 "enum": ["Document", "Stylesheet", "Image", "Font", "Script", "XHR", "WebSocket", "Other"],
69                 "description": "Resource type as it was perceived by the rendering engine."
70             },
71             {
72                 "id": "Frame",
73                 "type": "object",
74                 "description": "Information about the Frame on the page.",
75                 "properties": [
76                     { "name": "id", "type": "string", "description": "Frame unique identifier." },
77                     { "name": "parentId", "type": "string", "optional": true, "description": "Parent frame identifier." },
78                     { "name": "loaderId", "$ref": "Network.LoaderId", "description": "Identifier of the loader associated with this frame." },
79                     { "name": "name", "type": "string", "optional": true, "description": "Frame's name as specified in the tag." },
80                     { "name": "url", "type": "string", "description": "Frame document's URL." },
81                     { "name": "mimeType", "type": "string", "description": "Frame document's mimeType as determined by the browser." }
82                 ],
83                 "hidden": true
84             },
85             {
86                 "id": "FrameResourceTree",
87                 "type": "object",
88                 "description": "Information about the Frame hierarchy along with their cached resources.",
89                 "properties": [
90                     { "name": "frame", "$ref": "Frame", "description": "Frame information for this tree item." },
91                     { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." },
92                     { "name": "resources", "type": "array",
93                         "items": {
94                             "type": "object",
95                             "properties": [
96                                 { "name": "url", "type": "string", "description": "Resource URL." },
97                                 { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." },
98                                 { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." }
99                             ]
100                         },
101                         "description": "Information about frame resources."
102                     }
103                 ],
104                 "hidden": true
105             },
106             {
107                 "id": "SearchResult",
108                 "type": "object",
109                 "description": "Search result for resource.",
110                 "properties": [
111                         { "name": "url", "type": "string", "description": "Resource URL." },
112                     { "name": "frameId", "type": "string", "description": "Resource frame id." },
113                     { "name": "matchesCount", "type": "number", "description": "Number of matches in the resource content." }
114                 ],
115                 "hidden": true
116             }
117         ],
118         "commands": [
119             {
120                 "name": "enable",
121                 "description": "Enables page domain notifications."
122             },
123             {
124                 "name": "disable",
125                 "description": "Disables page domain notifications."
126             },
127             {
128                 "name": "addScriptToEvaluateOnLoad",
129                 "parameters": [
130                     { "name": "scriptSource", "type": "string" }
131                 ],
132                 "hidden": true
133             },
134             {
135                 "name": "removeAllScriptsToEvaluateOnLoad",
136                 "hidden": true
137             },
138             {
139                 "name": "reload",
140                 "parameters": [
141                     { "name": "ignoreCache", "type": "boolean", "optional": true, "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh)." }
142                 ],
143                 "description": "Reloads given page optionally ignoring the cache."
144             },
145             {
146                 "name": "open",
147                 "parameters": [
148                     { "name": "url", "type": "string", "description": "URL to open." },
149                     { "name": "newWindow", "optional": true, "type": "boolean", "description": "If true, opens given URL in a new window or tab." }
150                 ],
151                 "description": "Opens given URL either in the inspected page or in a new tab / window.",
152                 "hidden": true
153             },
154             {
155                 "name": "getCookies",
156                 "returns": [
157                     { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"}, "description": "Array of cookie objects." },
158                     { "name": "cookiesString", "type": "string", "description": "document.cookie string representation of the cookies." }
159                 ],
160                 "description": "Returns all browser cookies. Depending on the backend support, will either return detailed cookie information in the <code>cookie</code> field or string cookie representation using <code>cookieString</code>.",
161                 "hidden": true
162             },
163             {
164                 "name": "deleteCookie",
165                 "parameters": [
166                     { "name": "cookieName", "type": "string", "description": "Name of the cookie to remove." },
167                     { "name": "domain", "type": "string", "description": "Domain of the cookie to remove." }
168                 ],
169                 "description": "Deletes browser cookie with given name for the given domain.",
170                 "hidden": true
171             },
172             {
173                 "name": "getResourceTree",
174                 "description": "Returns present frame / resource tree structure.",
175                 "returns": [
176                     { "name": "frameTree", "$ref": "FrameResourceTree", "description": "Present frame / resource tree structure." }
177                 ],
178                 "hidden": true
179             },
180             {
181                 "name": "getResourceContent",
182                 "description": "Returns content of the given resource.",
183                 "parameters": [
184                     { "name": "frameId", "type": "string", "description": "Frame id to get resource for." },
185                     { "name": "url", "type": "string", "description": "URL of the resource to get content for." }
186                 ],
187                 "returns": [
188                     { "name": "content", "type": "string", "description": "Resource content." },
189                     { "name": "base64Encoded", "type": "boolean", "description": "True, if content was served as base64." }
190                 ],
191                 "hidden": true
192             },
193             {
194                 "name": "searchInResources",
195                 "description": "Searches for given string in frame / resource tree structure.",
196                 "parameters": [
197                     { "name": "text", "type": "string", "description": "String to search for."  },
198                     { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
199                     { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." }
200                 ],
201                 "returns": [
202                     { "name": "result", "type": "array", "items": { "$ref": "SearchResult" }, "description": "List of search results." }
203                 ],
204                 "hidden": true
205             }
206         ],
207         "events": [
208             {
209                 "name": "domContentEventFired",
210                 "parameters": [
211                     { "name": "timestamp", "type": "number" }
212                 ]
213             },
214             {
215                 "name": "loadEventFired",
216                 "parameters": [
217                     { "name": "timestamp", "type": "number" }
218                 ]
219             },
220             {
221                 "name": "frameNavigated",
222                 "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
223                 "parameters": [
224                     { "name": "frame", "$ref": "Frame", "description": "Frame object." },
225                     { "name": "loaderId", "$ref": "Network.LoaderId", "description": "Loader identifier." }
226                 ],
227                 "hidden": true
228             },
229             {
230                 "name": "frameDetached",
231                 "description": "Fired when frame has been detached from its parent.",
232                 "parameters": [
233                     { "name": "frameId", "type": "string", "description": "Id of the frame that has been detached." }
234                 ],
235                 "hidden": true
236             }
237         ]
238     },
239     {
240         "domain": "Runtime",
241         "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.",
242         "types": [
243             {
244                 "id": "RemoteObjectId",
245                 "type": "string",
246                 "description": "Unique object identifier."
247             },
248             {
249                 "id": "RemoteObject",
250                 "type": "object",
251                 "description": "Mirror object referencing original JavaScript object.",
252                 "properties": [
253                     { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean"], "description": "Object type." },
254                     { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date"], "description": "Object subtype hint. Specified for <code>object</code> type values only." },
255                     { "name": "className", "type": "string", "optional": true, "description": "Object class (constructor) name. Specified for <code>object</code> type values only." },
256                     { "name": "value", "type": "any", "optional": true, "description": "Remote object value (in case of primitive values or JSON values if it was requested)." },
257                     { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." },
258                     { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Unique object identifier (for non-primitive values)." }
259                 ]
260             },
261             {
262                 "id": "PropertyDescriptor",
263                 "type": "object",
264                 "description": "Object property descriptor.",
265                 "properties": [
266                     { "name": "name", "type": "string", "description": "Property name." },
267                     { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." },
268                     { "name": "writable", "type": "boolean", "description": "True if the value associated with the property may be changed (data descriptors only)." },
269                     { "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)." },
270                     { "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)." },
271                     { "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." },
272                     { "name": "enumerable", "type": "boolean", "description": "True if this property shows up during enumeration of the properties on the corresponding object." },
273                     { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
274                 ]
275             },
276             {
277                 "id": "CallArgument",
278                 "type": "object",
279                 "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.",
280                 "properties": [
281                     { "name": "value", "type": "any", "optional": true, "description": "Primitive value." },
282                     { "name": "objectId", "$ref": "RemoteObject", "optional": true, "description": "Remote object handle." }
283                 ]
284             }
285         ],
286         "commands": [
287             {
288                 "name": "evaluate",
289                 "parameters": [
290                     { "name": "expression", "type": "string", "description": "Expression to evaluate." },
291                     { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." },
292                     { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Determines whether Command Line API should be available during the evaluation.", "hidden": true },
293                     { "name": "doNotPauseOnExceptions", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions. Overrides setPauseOnException state.", "hidden": true },
294                     { "name": "frameId", "type": "string", "optional": true, "description": "Specifies in which frame to perform evaluation.", "hidden": true },
295                     { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." }
296                 ],
297                 "returns": [
298                     { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." },
299                     { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
300                 ],
301                 "description": "Evaluates expression on global object."
302             },
303             {
304                 "name": "callFunctionOn",
305                 "parameters": [
306                     { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to call function on." },
307                     { "name": "functionDeclaration", "type": "string", "description": "Declaration of the function to call." },
308                     { "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." },
309                     { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object which should be sent by value." }
310                 ],
311                 "returns": [
312                     { "name": "result", "$ref": "RemoteObject", "description": "Call result." },
313                     { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
314                 ],
315                 "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
316             },
317             {
318                 "name": "getProperties",
319                 "parameters": [
320                     { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return properties for." },
321                     { "name": "ownProperties", "optional": true, "type": "boolean", "description": "If true, returns properties belonging only to the element itself, not to its prototype chain." }
322                 ],
323                 "returns": [
324                     { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor"}, "description": "Object properties." }
325                 ],
326                 "description": "Returns properties of a given object. Object group of the result is inherited from the target object."
327             },
328             {
329                 "name": "releaseObject",
330                 "parameters": [
331                     { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to release." }
332                 ],
333                 "description": "Releases remote object with given id."
334             },
335             {
336                 "name": "releaseObjectGroup",
337                 "parameters": [
338                     { "name": "objectGroup", "type": "string", "description": "Symbolic object group name." }
339                 ],
340                 "description": "Releases all remote objects that belong to a given group."
341             }
342         ]
343     },
344     {
345         "domain": "Console",
346         "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.",
347         "types": [
348             {
349                 "id": "ConsoleMessage",
350                 "type": "object",
351                 "description": "Console message.",
352                 "properties": [
353                     { "name": "source", "type": "string", "enum": ["html", "wml", "xml", "javascript", "network", "console-api", "other"], "description": "Message source." },
354                     { "name": "level", "type": "string", "enum": ["tip", "log", "warning", "error", "debug"], "description": "Message severity." },
355                     { "name": "text", "type": "string", "description": "Message text." },
356                     { "name": "type", "type": "string", "optional": true, "enum": ["log", "dir", "dirxml", "trace", "startGroup", "startGroupCollapsed", "endGroup", "assert"], "description": "Console message type." },
357                     { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },
358                     { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." },
359                     { "name": "repeatCount", "type": "integer", "optional": true, "description": "Repeat count for repeated messages." },
360                     { "name": "networkRequestId", "$ref": "Network.RequestId", "optional": true, "description": "Identifier of the network request associated with this message." },
361                     { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters in case of the formatted message." },
362                     { "name": "stackTrace", "$ref": "StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." }
363                 ]
364             },
365             {
366                 "id": "CallFrame",
367                 "type": "object",
368                 "description": "Stack entry for console errors and assertions.",
369                 "properties": [
370                     { "name": "functionName", "type": "string", "description": "JavaScript function name." },
371                     { "name": "url", "type": "string", "description": "JavaScript script name or url." },
372                     { "name": "lineNumber", "type": "integer", "description": "JavaScript script line number." },
373                     { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
374                 ]
375             },
376             {
377                 "id": "StackTrace",
378                 "type": "array",
379                 "items": { "$ref": "CallFrame" },
380                 "description": "Call frames for assertions or error messages."
381             }
382         ],
383         "commands": [
384             {
385                 "name": "enable",
386                 "returns": [
387                     { "name": "expiredMessagesCount", "type": "integer",  "optional": true, "description": "Number of messages dropped due to message threashold overflow." }
388                 ],
389                 "description": "Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification." 
390             },
391             {
392                 "name": "disable",
393                 "description": "Disables console domain, prevents further console messages from being reported to the client." 
394             },
395             {
396                 "name": "clearMessages",
397                 "description": "Clears console messages collected in the browser." 
398             },
399             {
400                 "name": "setMonitoringXHREnabled",
401                 "parameters": [
402                     { "name": "enabled", "type": "boolean", "description": "Monitoring enabled state." }
403                 ],
404                 "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued.", 
405                 "hidden": true
406             },
407             {
408                 "name": "addInspectedNode",
409                 "parameters": [
410                     { "name": "nodeId", "$ref": "DOM.NodeId", "description": "DOM node id to be accessible by means of $x command line API." }
411                 ],
412                 "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).",
413                 "hidden": true
414             }
415         ],
416         "events": [
417             {
418                 "name": "messageAdded",
419                 "parameters": [
420                     { "name": "message", "$ref": "ConsoleMessage", "description": "Console message that has been added." }
421                 ],
422                 "description": "Issued when new console message is added."
423             },
424             {
425                 "name": "messageRepeatCountUpdated",
426                 "parameters": [
427                     { "name": "count", "type": "integer", "description": "New repeat count value." }
428                 ],
429                 "description": "Issued when subsequent message(s) are equal to the previous one(s)."
430             },
431             {
432                 "name": "messagesCleared",
433                 "description": "Issued when console is cleared. This happens either upon <code>clearMessages</code> command or after page navigation."
434             }
435         ]
436     },
437     {
438         "domain": "Network",
439         "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.",
440         "types": [
441             {
442                 "id": "LoaderId",
443                 "type": "string",
444                 "description": "Unique loader identifier."
445             },
446             {
447                 "id": "RequestId",
448                 "type": "string",
449                 "description": "Unique request identifier."
450             },
451             {
452                 "id": "Timestamp",
453                 "type": "number",
454                 "description": "Number of seconds since epoch."
455             },
456             {
457                 "id": "Headers",
458                 "type": "object",
459                 "description": "Request / response headers as keys / values of JSON object."
460             },
461             {
462                 "id": "ResourceTiming",
463                 "type": "object",
464                 "description": "Timing information for the request.",
465                 "properties": [
466                     { "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." },
467                     { "name": "proxyStart", "type": "number", "description": "Started resolving proxy." },
468                     { "name": "proxyEnd", "type": "number", "description": "Finished resolving proxy." },
469                     { "name": "dnsStart", "type": "number", "description": "Started DNS address resolve." },
470                     { "name": "dnsEnd", "type": "number", "description": "Finished DNS address resolve." },
471                     { "name": "connectStart", "type": "number", "description": "Started connecting to the remote host." },
472                     { "name": "connectEnd", "type": "number", "description": "Connected to the remote host." },
473                     { "name": "sslStart", "type": "number", "description": "Started SSL handshake." },
474                     { "name": "sslEnd", "type": "number", "description": "Finished SSL handshake." },
475                     { "name": "sendStart", "type": "number", "description": "Started sending request." },
476                     { "name": "sendEnd", "type": "number", "description": "Finished sending request." },
477                     { "name": "receiveHeadersEnd", "type": "number", "description": "Finished receiving response headers." }
478                 ]
479             },
480             {
481                 "id": "Request",
482                 "type": "object",
483                 "description": "HTTP request data.",
484                 "properties": [
485                     { "name": "url", "type": "string", "description": "Request URL." },
486                     { "name": "method", "type": "string", "description": "HTTP request method." },
487                     { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." },
488                     { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." }
489                 ]
490             },
491             {
492                 "id": "Response",
493                 "type": "object",
494                 "description": "HTTP response data.",
495                 "properties": [
496                     { "name": "url", "type": "string", "description": "Response URL." },
497                     { "name": "status", "type": "number", "description": "HTTP response status code." },
498                     { "name": "statusText", "type": "string", "description": "HTTP response status text." },
499                     { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." },
500                     { "name": "headersText", "type": "string", "optional": true, "description": "HTTP response headers text." },
501                     { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
502                     { "name": "requestHeaders", "$ref": "Headers", "optional": true, "description": "Refined HTTP request headers that were actually transmitted over the network." },
503                     { "name": "requestHeadersText", "type": "string", "optional": true, "description": "HTTP request headers text." },
504                     { "name": "connectionReused", "type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." },
505                     { "name": "connectionId", "type": "number", "description": "Physical connection id that was actually used for this request." },
506                     { "name": "fromDiskCache", "type": "boolean", "optional": true, "description": "Specifies that the request was served from the disk cache." },
507                     { "name": "timing", "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." }
508                 ]
509             },
510             {
511                 "id": "CachedResource",
512                 "type": "object",
513                 "description": "Information about the cached resource.",
514                 "properties": [
515                     { "name": "url", "type": "string", "description": "Resource URL." },
516                     { "name": "type", "$ref": "Page.ResourceType", "description": "Type of this resource." },
517                     { "name": "response", "$ref": "Response", "description": "Cached response data." },
518                     { "name": "bodySize", "type": "number", "description": "Cached response body size." }
519                 ]
520             },
521             {
522                 "id": "Initiator",
523                 "type": "object",
524                 "description": "Information about the request initiator.",
525                 "properties": [
526                     { "name": "type", "type": "string", "enum": ["parser", "script", "other"], "description": "Type of this initiator." },
527                     { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "Initiator JavaScript stack trace, set for Script only." },
528                     { "name": "url", "type": "string", "optional": true, "description": "Initiator URL, set for Parser type only." },
529                     { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only." }
530                 ]
531             }
532         ],
533         "commands": [
534             {
535                 "name": "enable",
536                 "description": "Enables network tracking, network events will now be delivered to the client."
537             },
538             {
539                 "name": "disable",
540                 "description": "Disables network tracking, prevents network events from being sent to the client."
541             },
542             {
543                 "name": "setUserAgentOverride",
544                 "description": "Allows overriding user agent with the given string.",
545                 "parameters": [
546                     { "name": "userAgent", "type": "string", "description": "User agent to use." }
547                 ]
548             },
549             {
550                 "name": "setExtraHTTPHeaders",
551                 "description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
552                 "parameters": [
553                     { "name": "headers", "$ref": "Headers", "description": "Map with extra HTTP headers." }
554                 ]
555             },
556             {
557                 "name": "getResponseBody",
558                 "description": "Returns content served for the given request.",
559                 "parameters": [
560                     { "name": "requestId", "$ref": "RequestId", "description": "Identifier of the network request to get content for." }
561                 ],
562                 "returns": [
563                     { "name": "body", "type": "string", "description": "Response body." },
564                     { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." }
565                 ]
566             },
567             {
568                 "name": "clearBrowserCache",
569                 "description": "Clears browser cache."
570             },
571             {
572                 "name": "clearBrowserCookies",
573                 "description": "Clears browser cookies."
574             },
575             {
576                 "name": "setCacheDisabled",
577                 "parameters": [
578                     { "name": "cacheDisabled", "type": "boolean", "description": "Cache disabled state." }
579                 ],
580                 "description": "Toggles ignoring cache for each request. If <code>true</code>, cache will not be used." 
581             }
582         ],
583         "events": [
584             {
585                 "name": "requestWillBeSent",
586                 "description": "Fired when page is about to send HTTP request.",
587                 "parameters": [
588                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
589                     { "name": "frameId", "type": "string", "description": "Frame identifier.", "hidden": true },
590                     { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
591                     { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." },
592                     { "name": "request", "$ref": "Request", "description": "Request data." },
593                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
594                     { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
595                     { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "JavaScript stack trace upon issuing this request." },
596                     { "name": "redirectResponse", "optional": true, "$ref": "Response", "description": "Redirect response data." }
597                 ]
598             },
599             {
600                 "name": "requestServedFromCache",
601                 "description": "Fired if request ended up loading from cache.",
602                 "parameters": [
603                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }
604                 ]
605             },
606             {
607                 "name": "responseReceived",
608                 "description": "Fired when HTTP response is available.",
609                 "parameters": [
610                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
611                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
612                     { "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." },
613                     { "name": "response", "$ref": "Response", "description": "Response data." }
614                 ]
615             },
616             {
617                 "name": "dataReceived",
618                 "description": "Fired when data chunk was received over the network.",
619                 "parameters": [
620                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
621                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
622                     { "name": "dataLength", "type": "integer", "description": "Data chunk length." },
623                     { "name": "encodedDataLength", "type": "integer", "description": "Actual bytes received (might be less than dataLength for compressed encodings)." }
624                 ]
625             },
626             {
627                 "name": "loadingFinished",
628                 "description": "Fired when HTTP request has finished loading.",
629                 "parameters": [
630                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
631                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }
632                 ]
633             },
634             {
635                 "name": "loadingFailed",
636                 "description": "Fired when HTTP request has failed to load.",
637                 "parameters": [
638                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
639                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
640                     { "name": "errorText", "type": "string", "description": "User friendly error message." },
641                     { "name": "canceled", "type": "boolean", "optional": true, "description": "True if loading was canceled." }
642                 ]
643             },
644             {
645                 "name": "requestServedFromMemoryCache",
646                 "description": "Fired when HTTP request has been served from memory cache.",
647                 "parameters": [
648                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
649                     { "name": "frameId", "type": "string", "description": "Frame identifier.", "hidden": true },
650                     { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
651                     { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." },
652                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
653                     { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
654                     { "name": "resource", "$ref": "CachedResource", "description": "Cached resource data." }
655                 ]
656             },
657             {
658                 "name": "webSocketWillSendHandshakeRequest",
659                 "description": "Fired when WebSocket is about to initiate handshake.",
660                 "parameters": [
661                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
662                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
663                     { "name": "request", "type": "object", "description": "WebSocket request data." }
664                 ],
665                 "hidden": true
666             },
667             {
668                 "name": "webSocketHandshakeResponseReceived",
669                 "description": "Fired when WebSocket handshake response becomes available.",
670                 "parameters": [
671                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
672                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
673                     { "name": "response", "type": "object", "description": "WebSocket response data." }
674                 ],
675                 "hidden": true
676             },
677             {
678                 "name": "webSocketCreated",
679                 "description": "Fired upon WebSocket creation.",
680                 "parameters": [
681                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
682                     { "name": "url", "type": "string", "description": "WebSocket request URL." }
683                 ],
684                 "hidden": true
685             },
686             {
687                 "name": "webSocketClosed",
688                 "description": "Fired when WebSocket is closed.",
689                 "parameters": [
690                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
691                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }
692                 ],
693                 "hidden": true
694             }
695         ]
696     },
697     {
698         "domain": "Database",
699         "hidden": true,
700         "types": [
701             {
702                 "id": "Database",
703                 "type": "object",
704                 "description": "Database object."
705             },
706             {
707                 "id": "Error",
708                 "type": "object",
709                 "description": "Database error."
710             }
711         ],
712         "commands": [
713             {
714                 "name": "enable",
715                 "description": "Enables database tracking, database events will now be delivered to the client."
716             },
717             {
718                 "name": "disable",
719                 "description": "Disables database tracking, prevents database events from being sent to the client."
720             },
721             {
722                 "name": "getDatabaseTableNames",
723                 "parameters": [
724                     { "name": "databaseId", "type": "integer" }
725                 ],
726                 "returns": [
727                     { "name": "tableNames", "type": "array", "items": { "type": "string" } }
728                 ]
729             },
730             {
731                 "name": "executeSQL",
732                 "parameters": [
733                     { "name": "databaseId", "type": "integer" },
734                     { "name": "query", "type": "string" }
735                 ],
736                 "returns": [
737                     { "name": "success", "type": "boolean" },
738                     { "name": "transactionId", "type": "integer" }
739                 ]
740             }
741         ],
742         "events": [
743             {
744                 "name": "addDatabase",
745                 "parameters": [
746                     { "name": "database", "$ref": "Database" }
747                 ]
748             },
749             {
750                 "name": "sqlTransactionSucceeded",
751                 "parameters": [
752                     { "name": "transactionId", "type": "integer" },
753                     { "name": "columnNames", "type": "array", "items": { "type": "string" } },
754                     { "name": "values", "type": "array", "items": { "type": "string or number" }}
755                 ]
756             },
757             {
758                 "name": "sqlTransactionFailed",
759                 "parameters": [
760                     { "name": "transactionId", "type": "integer" },
761                     { "name": "sqlError", "$ref": "Error" }
762                 ]
763             }
764         ]
765     },
766     {
767         "domain": "DOMStorage",
768         "hidden": true,
769         "types": [],
770         "commands": [
771             {
772                 "name": "enable",
773                 "description": "Enables storage tracking, storage events will now be delivered to the client."
774             },
775             {
776                 "name": "disable",
777                 "description": "Disables storage tracking, prevents storage events from being sent to the client."
778             },
779             {
780                 "name": "getDOMStorageEntries",
781                 "parameters": [
782                     { "name": "storageId", "type": "integer" }
783                 ],
784                 "returns": [
785                     { "name": "entries", "type": "array", "items": { "$ref": "DOMStorageEntry"} }
786                 ]
787             },
788             {
789                 "name": "setDOMStorageItem",
790                 "parameters": [
791                     { "name": "storageId", "type": "integer" },
792                     { "name": "key", "type": "string" },
793                     { "name": "value", "type": "string" }
794                 ],
795                 "returns": [
796                     { "name": "success", "type": "boolean" }
797                 ]
798             },
799             {
800                 "name": "removeDOMStorageItem",
801                 "parameters": [
802                     { "name": "storageId", "type": "integer" },
803                     { "name": "key", "type": "string" }
804                 ],
805                 "returns": [
806                     { "name": "success", "type": "boolean" }
807                 ]
808             }
809         ],
810         "events": [
811             {
812                 "name": "addDOMStorage",
813                 "parameters": [
814                     { "name": "storage", "type": "object" }
815                 ]
816             },
817             {
818                 "name": "updateDOMStorage",
819                 "parameters": [
820                     { "name": "storageId", "type": "integer" }
821                 ]
822             }
823         ]
824     },
825     {
826         "domain": "ApplicationCache",
827         "hidden": true,
828         "types": [
829             {
830                 "id": "AppCache",
831                 "type": "object",
832                 "description": "AppCache."
833             }
834         ],
835         "commands": [
836             {
837                 "name": "getApplicationCaches",
838                 "returns": [
839                     { "name": "applicationCaches", "$ref": "AppCache" }
840                 ]
841             }
842         ],
843         "events": [
844             {
845                 "name": "updateApplicationCacheStatus",
846                 "parameters": [
847                     { "name": "status", "type": "integer" }
848                 ]
849             },
850             {
851                 "name": "updateNetworkState",
852                 "parameters": [
853                     { "name": "isNowOnline", "type": "boolean" }
854                 ]
855             }
856         ]
857     },
858     {
859         "domain": "DOM",
860         "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>",
861         "types": [
862             {
863                 "id": "NodeId",
864                 "type": "integer",
865                 "description": "Unique DOM node identifier."
866             },
867             {
868                 "id": "Node",
869                 "type": "object",
870                 "properties": [
871                     { "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." },
872                     { "name": "nodeType", "type": "integer", "description": "<code>Node</code>'s nodeType." },
873                     { "name": "nodeName", "type": "string", "description": "<code>Node</code>'s nodeName." },
874                     { "name": "localName", "type": "string", "description": "<code>Node</code>'s localName." },
875                     { "name": "nodeValue", "type": "string", "description": "<code>Node</code>'s nodeValue." },
876                     { "name": "childNodeCount", "type": "integer", "optional": true, "description": "Child count for <code>Container</code> nodes." },
877                     { "name": "children", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Child nodes of this node when requested with children." },
878                     { "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>." },
879                     { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." },
880                     { "name": "publicId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId." },
881                     { "name": "systemId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId." },
882                     { "name": "internalSubset", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset." },
883                     { "name": "name", "type": "string", "optional": true, "description": "<code>Attr</code>'s name." },
884                     { "name": "value", "type": "string", "optional": true, "description": "<code>Attr</code>'s value." }
885                 ],
886                 "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
887             },
888             {
889                 "id": "EventListener",
890                 "type": "object",
891                 "hidden": true,
892                 "properties": [
893                     { "name": "type", "type": "string", "description": "<code>EventListener</code>'s type." },
894                     { "name": "useCapture", "type": "boolean", "description": "<code>EventListener</code>'s useCapture." },
895                     { "name": "isAttribute", "type": "boolean", "description": "<code>EventListener</code>'s isAttribute." },
896                     { "name": "nodeId", "$ref": "NodeId", "description": "Target <code>DOMNode</code> id." },
897                     { "name": "handlerBody", "type": "string", "description": "Event handler function body." },
898                     { "name": "location", "$ref": "Debugger.Location", "optional": true, "description": "Handler code location." }
899                 ],
900                 "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
901             },
902             {
903                 "id": "RGBA",
904                 "type": "object",
905                 "properties": [
906                     { "name": "r", "type": "integer", "description": "The red component, in the [0-255] range." },
907                     { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." },
908                     { "name": "b", "type": "integer", "description": "The blue component, in the [0-255] range." },
909                     { "name": "a", "type": "number", "optional": true, "description": "The alpha component, in the [0-1] range (default: 1)." }
910                 ],
911                 "description": "A structure holding an RGBA color."
912             },
913             {
914                 "id": "HighlightConfig",
915                 "type": "object",
916                 "properties": [
917                     { "name": "showInfo", "type": "boolean", "optional": true, "description": "Whether the node info tooltip should be shown (default: false)." },
918                     { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
919                     { "name": "paddingColor", "$ref": "RGBA", "optional": true, "description": "The padding highlight fill color (default: transparent)." },
920                     { "name": "borderColor", "$ref": "RGBA", "optional": true, "description": "The border highlight fill color (default: transparent)." },
921                     { "name": "marginColor", "$ref": "RGBA", "optional": true, "description": "The margin highlight fill color (default: transparent)." }
922                 ],
923                 "description": "Configuration data for the highlighting of page elements."
924             }
925         ],
926         "commands": [
927             {
928                 "name": "getDocument",
929                 "returns": [
930                     { "name": "root", "$ref": "Node", "description": "Resulting node." }
931                 ],
932                 "description": "Returns the root DOM node to the caller."
933             },
934             {
935                 "name": "requestChildNodes",
936                 "parameters": [
937                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." }
938                 ],
939                 "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events."
940             },
941             {
942                 "name": "querySelector",
943                 "parameters": [
944                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
945                     { "name": "selector", "type": "string", "description": "Selector string." }
946                 ],
947                 "returns": [
948                     { "name": "nodeId", "$ref": "NodeId", "description": "Query selector result." }
949                 ],
950                 "description": "Executes <code>querySelector</code> on a given node."
951             },
952             {
953                 "name": "querySelectorAll",
954                 "parameters": [
955                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
956                     { "name": "selector", "type": "string", "description": "Selector string." }
957                 ],
958                 "returns": [
959                     { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Query selector result." }
960                 ],
961                 "description": "Executes <code>querySelectorAll</code> on a given node."
962             },
963             {
964                 "name": "setNodeName",
965                 "parameters": [
966                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set name for." },
967                     { "name": "name", "type": "string", "description": "New node's name." }
968                 ],
969                 "returns": [
970                     { "name": "nodeId", "$ref": "NodeId", "description": "New node's id." }
971                 ],
972                 "description": "Sets node name for a node with given id."
973             },
974             {
975                 "name": "setNodeValue",
976                 "parameters": [
977                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set value for." },
978                     { "name": "value", "type": "string", "description": "New node's value." }
979                 ],
980                 "description": "Sets node value for a node with given id."
981             },
982             {
983                 "name": "removeNode",
984                 "parameters": [
985                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to remove." }
986                 ],
987                 "description": "Removes node with given id."
988             },
989             {
990                 "name": "setAttributeValue",
991                 "parameters": [
992                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attribute for." },
993                     { "name": "name", "type": "string", "description": "Attribute name." },
994                     { "name": "value", "type": "string", "description": "Attribute value." }
995                 ],
996                 "description": "Sets attribute for an element with given id."
997             },
998             {
999                 "name": "setAttributesAsText",
1000                 "parameters": [
1001                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attributes for." },
1002                     { "name": "text", "type": "string", "description": "Text with a number of attributes. Will parse this text using HTML parser." },
1003                     { "name": "name", "type": "string", "optional": true, "description": "Attribute name to replace with new attributes derived from text in case text parsed successfully." }
1004                 ],
1005                 "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."
1006             },
1007             {
1008                 "name": "removeAttribute",
1009                 "parameters": [
1010                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to remove attribute from." },
1011                     { "name": "name", "type": "string", "description": "Name of the attribute to remove." }
1012                 ],
1013                 "description": "Removes attribute with given name from an element with given id."
1014             },
1015             {
1016                 "name": "getEventListenersForNode",
1017                 "parameters": [
1018                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get listeners for." }
1019                 ],
1020                 "returns": [
1021                     { "name": "listeners", "type": "array", "items": { "$ref": "EventListener"}, "description": "Array of relevant listeners." }
1022                 ],
1023                 "description": "Returns event listeners relevant to the node.",
1024                 "hidden": true
1025             },
1026             {
1027                 "name": "copyNode",
1028                 "parameters": [
1029                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to copy." }
1030                 ],
1031                 "description": "Copies node's HTML markup into the clipboard.",
1032                 "hidden": true
1033             },
1034             {
1035                 "name": "getOuterHTML",
1036                 "parameters": [
1037                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get markup for." }
1038                 ],
1039                 "returns": [
1040                     { "name": "outerHTML", "type": "string", "description": "Outer HTML markup." }
1041                 ],
1042                 "description": "Returns node's HTML markup."
1043             },
1044             {
1045                 "name": "setOuterHTML",
1046                 "parameters": [
1047                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set markup for." },
1048                     { "name": "outerHTML", "type": "string", "description": "Outer HTML markup to set." }
1049                 ],
1050                 "returns": [
1051                     { "name": "nodeId", "$ref": "NodeId", "description": "Setting outer HTML can change node's id." }
1052                 ],
1053                 "description": "Sets node HTML markup, returns new node id."
1054             },
1055             {
1056                 "name": "performSearch",
1057                 "parameters": [
1058                     { "name": "query", "type": "string", "description": "Plain text or query selector or XPath search query." },
1059                     { "name": "runSynchronously", "type": "boolean", "optional": true, "description": "When set to true, performing search synchronously (can block user interaction)." }
1060                 ],
1061                 "description": "Starts asynchronous search for a given string in the DOM tree. Use <code>cancelSearch</code> to stop given asynchronous search task.",
1062                 "hidden": true
1063             },
1064             {
1065                 "name": "cancelSearch",
1066                 "description": "Cancels asynchronous search started with <code>performSearch</code>.",
1067                 "hidden": true
1068             },
1069             {
1070                 "name": "requestNode",
1071                 "parameters": [
1072                     { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "JavaScript object id to convert into node." }
1073                 ],
1074                 "returns": [
1075                     { "name": "nodeId", "$ref": "NodeId", "description": "Node id for given object." }
1076                 ],
1077                 "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."
1078             },
1079             {
1080                 "name": "setInspectModeEnabled",
1081                 "hidden": true,
1082                 "parameters": [
1083                     { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." },
1084                     { "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>." }
1085                 ],
1086                 "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspect' command upon element selection."
1087             },
1088             {
1089                 "name": "highlightRect",
1090                 "parameters": [
1091                     { "name": "x", "type": "integer", "description": "X coordinate" },
1092                     { "name": "y", "type": "integer", "description": "Y coordinate" },
1093                     { "name": "width", "type": "integer", "description": "Rectangle width" },
1094                     { "name": "height", "type": "integer", "description": "Rectangle height" },
1095                     { "name": "color", "$ref": "RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." },
1096                     { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." }
1097                 ],
1098                 "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport."
1099             },
1100             {
1101                 "name": "highlightNode",
1102                 "parameters": [
1103                     { "name": "nodeId", "$ref": "NodeId", "description": "Identifier of the node to highlight." },
1104                     { "name": "highlightConfig", "$ref": "HighlightConfig", "description": "A descriptor for the highlight appearance." }
1105                 ],
1106                 "description": "Highlights DOM node with given id."
1107             },
1108             {
1109                 "name": "hideHighlight",
1110                 "description": "Hides DOM node highlight."
1111             },
1112             {
1113                 "name": "highlightFrame",
1114                 "parameters": [
1115                     { "name": "frameId", "type": "string", "description": "Identifier of the frame to highlight." },
1116                     { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
1117                     { "name": "contentOutlineColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight outline color (default: transparent)." }
1118                 ],
1119                 "description": "Highlights owner element of the frame with given id.",
1120                 "hidden": true
1121             },
1122             {
1123                 "name": "pushNodeByPathToFrontend",
1124                 "parameters": [
1125                     { "name": "path", "type": "string", "description": "Path to node in the proprietary format." }
1126                 ],
1127                 "returns": [
1128                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node for given path." }
1129                 ],
1130                 "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath",
1131                 "hidden": true
1132             },
1133             {
1134                 "name": "resolveNode",
1135                 "parameters": [
1136                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to resolve." },
1137                     { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }
1138                 ],
1139                 "returns": [
1140                     { "name": "object", "$ref": "Runtime.RemoteObject", "description": "JavaScript object wrapper for given node." }
1141                 ],
1142                 "description": "Resolves JavaScript node object for given node id."
1143             },
1144             {
1145                 "name": "getAttributes",
1146                 "parameters": [
1147                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attibutes for." }
1148                 ],
1149                 "returns": [
1150                     { "name": "attributes", "type": "array", "items": { "type": "string" }, "description": "An interleaved array of node attribute names and values." }
1151                 ],
1152                 "description": "Returns attributes for the specified node."
1153             },
1154             {
1155                 "name": "moveTo",
1156                 "parameters": [
1157                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to drop." },
1158                     { "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop into." },
1159                     { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop node before given one." }
1160                 ],
1161                 "returns": [
1162                     { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." }
1163                 ],
1164                 "description": "Moves node into the new container, places it before the given anchor."
1165             }
1166         ],
1167         "events": [
1168             {
1169                 "name": "documentUpdated",
1170                 "description": "Fired when <code>Document</code> has been totally updated. Node ids are no longer valid."
1171             },
1172             {
1173                 "name": "setChildNodes",
1174                 "parameters": [
1175                     { "name": "parentId", "$ref": "NodeId", "description": "Parent node id to populate with children." },
1176                     { "name": "nodes", "type": "array", "items": { "$ref": "Node"}, "description": "Child nodes array." }
1177                 ],
1178                 "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids."
1179             },
1180             {
1181                 "name": "attributeModified",
1182                 "parameters": [
1183                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1184                     { "name": "name", "type": "string", "description": "Attribute name." },
1185                     { "name": "value", "type": "string", "description": "Attribute value." }
1186                 ],
1187                 "description": "Fired when <code>Element</code>'s attribute is modified."
1188             },
1189             {
1190                 "name": "attributeRemoved",
1191                 "parameters": [
1192                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1193                     { "name": "name", "type": "string", "description": "Local attribute name." }
1194                 ],
1195                 "description": "Fired when <code>Element</code>'s attribute is removed."
1196             },
1197             {
1198                 "name": "inlineStyleInvalidated",
1199                 "parameters": [
1200                     { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the nodes for which the inline styles have been invalidated." }
1201                 ],
1202                 "description": "Fired when <code>Element</code>'s inline style is modified via a CSS property modification.",
1203                 "hidden": true
1204             },
1205             {
1206                 "name": "characterDataModified",
1207                 "parameters": [
1208                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1209                     { "name": "characterData", "type": "string", "description": "New text value." }
1210                 ],
1211                 "description": "Mirrors <code>DOMCharacterDataModified</code> event."
1212             },
1213             {
1214                 "name": "childNodeCountUpdated",
1215                 "parameters": [
1216                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1217                     { "name": "childNodeCount", "type": "integer", "description": "New node count." }
1218                 ],
1219                 "description": "Fired when <code>Container</code>'s child node count has changed."
1220             },
1221             {
1222                 "name": "childNodeInserted",
1223                 "parameters": [
1224                     { "name": "parentNodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1225                     { "name": "previousNodeId", "$ref": "NodeId", "description": "If of the previous siblint." },
1226                     { "name": "node", "$ref": "Node", "description": "Inserted node data." }
1227                 ],
1228                 "description": "Mirrors <code>DOMNodeInserted</code> event."
1229             },
1230             {
1231                 "name": "childNodeRemoved",
1232                 "parameters": [
1233                     { "name": "parentNodeId", "$ref": "NodeId", "description": "Parent id." },
1234                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has been removed." }
1235                 ],
1236                 "description": "Mirrors <code>DOMNodeRemoved</code> event."
1237             },
1238             {
1239                 "name": "searchResults",
1240                 "parameters": [
1241                     { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the search result nodes." }
1242                 ],
1243                 "description": "Pushes search results initiated using <code>performSearch</code> to the client.",
1244                 "hidden": true
1245             }
1246         ]
1247     },
1248     {
1249         "domain": "CSS",
1250         "hidden": true,
1251         "description": "This domain exposes CSS read/write operations. All CSS objects, like 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). Alternatively, a client can discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
1252         "types": [
1253             {
1254                 "id": "CSSStyleId",
1255                 "type": "object",
1256                 "properties": [
1257                     { "name": "styleSheetId", "type": "string", "description": "Enclosing stylesheet identifier." },
1258                     { "name": "ordinal", "type": "integer", "description": "The style ordinal within the stylesheet." }
1259                 ],
1260                 "description": "This object identifies a CSS style in a unique way."
1261             },
1262             {
1263                 "id": "CSSRuleId",
1264                 "type": "object",
1265                 "properties": [
1266                     { "name": "styleSheetId", "type": "string", "description": "Enclosing stylesheet identifier." },
1267                     { "name": "ordinal", "type": "integer", "description": "The rule ordinal within the stylesheet." }
1268                 ],
1269                 "description": "This object identifies a CSS rule in a unique way."
1270             },
1271             {
1272                 "id": "CSSNodeStyles",
1273                 "type": "object",
1274                 "properties": [
1275                     { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The node's inline style, if any." },
1276                     { "name": "computedStyle", "$ref": "CSSComputedStyle", "description": "The node's computed style." },
1277                     { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules matching this node, from all applicable stylesheets." },
1278                     { "name": "styleAttributes", "type": "array", "items": { "$ref": "CSSStyleAttribute" }, "description": "Entries for style-related element attributes (e.g. width=20)."},
1279                     { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoIdRules" }, "description": "Pseudo style rules for this node." },
1280                     { "name": "inherited", "type": "array", "items": { "$ref": "InheritedStyleEntry" }, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." }
1281                 ],
1282                 "description": "A holder for all CSS styles applicable to a particular DOM node."
1283             },
1284             {
1285                 "id": "PseudoIdRules",
1286                 "type": "object",
1287                 "properties": [
1288                     { "name": "pseudoId", "type": "integer", "description": "Pseudo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>)."},
1289                     { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules applicable to the pseudo style."}
1290                 ],
1291                 "description": "CSS rule collection for a single pseudo style."
1292             },
1293             {
1294                 "id": "InheritedStyleEntry",
1295                 "type": "object",
1296                 "properties": [
1297                     { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." },
1298                     { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules matching the ancestor node in the style inheritance chain." }
1299                 ],
1300                 "description": "CSS rule collection for a single pseudo style."
1301             },
1302             {
1303                 "id": "CSSStyleAttribute",
1304                 "type": "object",
1305                 "properties": [
1306                     { "name": "name", "type": "string", "description": "DOM attribute name (e.g. \"width\")."},
1307                     { "name": "style", "$ref": "CSSStyle", "description": "CSS style generated by the respective DOM attribute."}
1308                 ],
1309                 "description": "CSS style information for a DOM style attribute."
1310             },
1311             {
1312                 "id": "CSSStyleSheetHeader",
1313                 "type": "object",
1314                 "properties": [
1315                     { "name": "styleSheetId", "type": "string", "description": "The stylesheet identifier."},
1316                     { "name": "sourceURL", "type": "string", "description": "Stylesheet resource URL."},
1317                     { "name": "title", "type": "string", "description": "Stylesheet title."},
1318                     { "name": "disabled", "type": "boolean", "description": "Denotes whether the stylesheet is disabled."}
1319                 ],
1320                 "description": "CSS stylesheet metainformation."
1321             },
1322             {
1323                 "id": "CSSStyleSheetBody",
1324                 "type": "object",
1325                 "properties": [
1326                     { "name": "styleSheetId", "type": "string", "description": "The stylesheet identifier."},
1327                     { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "Stylesheet resource URL."},
1328                     { "name": "text", "type": "string", "optional": true, "description": "Stylesheet resource contents (if available)."}
1329                 ],
1330                 "description": "CSS stylesheet contents."
1331             },
1332             {
1333                 "id": "CSSRule",
1334                 "type": "object",
1335                 "properties": [
1336                     { "name": "ruleId", "$ref": "CSSRuleId", "description": "The CSS rule identifier."},
1337                     { "name": "selectorText", "type": "string", "description": "Rule selector."},
1338                     { "name": "sourceURL", "type": "string", "optional": true, "description": "Parent stylesheet resource URL (for regular rules)."},
1339                     { "name": "sourceLine", "type": "integer", "description": "Line ordinal of the rule selector start character in the resource."},
1340                     { "name": "origin", "type": "string", "enum": ["user", "user-agent", "inspector", ""], "description": "The parent stylesheet type: \"user\" for user stylesheets, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding new rules created with <code>addRule()</code>), \"\" for regular stylesheets."},
1341                     { "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." },
1342                     { "name": "selectorRange", "$ref": "SourceRange", "optional": true, "description": "The rule selector range in the underlying resource (if available)." }
1343                 ],
1344                 "description": "CSS rule representation."
1345             },
1346             {
1347                 "id": "SourceRange",
1348                 "type": "object",
1349                 "properties": [
1350                     { "name": "start", "type": "integer", "description": "Start of range (inclusive)."},
1351                     { "name": "end", "type": "integer", "description": "End of range (exclusive)."}
1352                 ],
1353                 "description": "Text range within a resource."
1354             },
1355             {
1356                 "id": "ShorthandEntry",
1357                 "type": "object"
1358             },
1359             {
1360                 "id": "CSSComputedStyle",
1361                 "type": "object"
1362             },            
1363             {
1364                 "id": "CSSStyle",
1365                 "type": "object",
1366                 "properties": [
1367                     { "name": "styleId", "$ref": "CSSStyleId", "description": "The CSS style identifier."},
1368                     { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style."},
1369                     { "name": "shorthandEntries", "type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." },
1370                     { "name": "cssText", "type": "string", "optional": true, "description": "Style declaration text (if available)."},
1371                     { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." },
1372                     { "name": "width", "type": "integer", "description": "The effective \"width\" property value from this style." },
1373                     { "name": "height", "type": "integer", "description": "The effective \"height\" property value from this style." }
1374                 ],
1375                 "description": "CSS style representation."
1376             },
1377             {
1378                 "id": "CSSProperty",
1379                 "type": "object",
1380                 "properties": [
1381                     { "name": "name", "type": "string", "description": "The property name." },
1382                     { "name": "value", "type": "string", "description": "The property value." },
1383                     { "name": "priority", "type": "string", "optional": true, "description": "The property priority (implies \"\" if absent)." },
1384                     { "name": "implicit", "type": "boolean", "optional": true, "description": "Whether the property is implicit (implies <code>false</code> if absent)." },
1385                     { "name": "parsedOk", "type": "boolean", "optional": true, "description": "Whether the property is understood by the browser (implies <code>true</code> if absent)." },
1386                     { "name": "status", "type": "string", "enum": ["active", "inactive", "disabled", "style"], "optional": true, "description": "The property status: \"active\" (implied if absent) if the property is effective in the style, \"inactive\" if the property is overridden by a same-named property in this style later on, \"disabled\" if the property is disabled by the user, \"style\" if the property is reported by the browser rather than by the CSS source parser." },
1387                     { "name": "shorthandName", "type": "string", "description": "The related shorthand property name (absent if this property is not a longhand)." },
1388                     { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." }
1389                 ],
1390                 "description": "CSS style effective visual dimensions and source offsets."
1391             }
1392         ],
1393         "commands": [
1394             {
1395                 "name": "getStylesForNode",
1396                 "parameters": [
1397                     { "name": "nodeId", "$ref": "DOM.NodeId" },
1398                     { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "optional": true, "description": "Element pseudo classes to force when computing applicable style rules." }
1399                 ],
1400                 "returns": [
1401                     { "name": "styles", "$ref": "CSSNodeStyles", "description": "All styles for the specified DOM node." }
1402                 ],
1403                 "description": "Returns all styles for a DOM node identified by <code>nodeId</code>."
1404             },
1405             {
1406                 "name": "getComputedStyleForNode",
1407                 "parameters": [
1408                     { "name": "nodeId", "$ref": "DOM.NodeId" }
1409                 ],
1410                 "returns": [
1411                     { "name": "style", "$ref": "CSSStyle", "description": "Computed style for the specified DOM node." }
1412                 ],
1413                 "description": "Returns the computed style for a DOM node identified by <code>nodeId</code>."
1414             },
1415             {
1416                 "name": "getInlineStyleForNode",
1417                 "parameters": [
1418                     { "name": "nodeId", "$ref": "DOM.NodeId" }
1419                 ],
1420                 "returns": [
1421                     { "name": "style", "$ref": "CSSStyle", "description": "Inline style for the specified DOM node." }
1422                 ],
1423                 "description": "Returns the inline style (if present) for a DOM node identified by <code>nodeId</code>."
1424             },
1425             {
1426                 "name": "getAllStyleSheets",
1427                 "returns": [
1428                     { "name": "headers", "type": "array", "items": { "$ref": "CSSStyleSheetHeader" }, "description": "Descriptor entries for all available stylesheets." }
1429                 ],
1430                 "description": "Returns metainfo entries for all known stylesheets."
1431             },
1432             {
1433                 "name": "getStyleSheet",
1434                 "parameters": [
1435                     { "name": "styleSheetId", "type": "string" }
1436                 ],
1437                 "returns": [
1438                     { "name": "styleSheet", "$ref": "CSSStyleSheetBody", "description": "Stylesheet contents for the specified <code>styleSheetId</code>." }
1439                 ],
1440                 "description": "Returns stylesheet data for the specified <code>styleSheetId</code>."
1441             },
1442             {
1443                 "name": "getStyleSheetText",
1444                 "parameters": [
1445                     { "name": "styleSheetId", "type": "string" }
1446                 ],
1447                 "returns": [
1448                     { "name": "text", "type": "string", "description": "The stylesheet text." }
1449                 ],
1450                 "description": "Returns the current textual content and the URL for a stylesheet."
1451             },
1452             {
1453                 "name": "setStyleSheetText",
1454                 "parameters": [
1455                     { "name": "styleSheetId", "type": "string" },
1456                     { "name": "text", "type": "string" }
1457                 ],
1458                 "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet."
1459             },
1460             {
1461                 "name": "setPropertyText",
1462                 "parameters": [
1463                     { "name": "styleId", "$ref": "CSSStyleId" },
1464                     { "name": "propertyIndex", "type": "integer" },
1465                     { "name": "text", "type": "string" },
1466                     { "name": "overwrite", "type": "boolean" }
1467                 ],
1468                 "returns": [
1469                     { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property text modification." }
1470                 ],
1471                 "description": "Sets the new <code>text</code> for a property in the respective style, at offset <code>propertyIndex</code>. If <code>overwrite</code> is <code>true</code>, a property at the given offset is overwritten, otherwise inserted. <code>text</code> entirely replaces the property <code>name: value</code>."
1472             },
1473             {
1474                 "name": "toggleProperty",
1475                 "parameters": [
1476                     { "name": "styleId", "$ref": "CSSStyleId" },
1477                     { "name": "propertyIndex", "type": "integer" },
1478                     { "name": "disable", "type": "boolean" }
1479                 ],
1480                 "returns": [
1481                     { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property toggling." }
1482                 ],
1483                 "description": "Toggles the property in the respective style, at offset <code>propertyIndex</code>. The <code>disable</code> parameter denotes whether the property should be disabled (i.e. removed from the style declaration). If <code>disable == false</code>, the property gets put back into its original place in the style declaration."
1484             },
1485             {
1486                 "name": "setRuleSelector",
1487                 "parameters": [
1488                     { "name": "ruleId", "$ref": "CSSRuleId" },
1489                     { "name": "selector", "type": "string" }
1490                 ],
1491                 "returns": [
1492                     { "name": "rule", "$ref": "CSSRule", "description": "The resulting rule after the selector modification." }
1493                 ],
1494                 "description": "Modifies the rule selector."
1495             },
1496             {
1497                 "name": "addRule",
1498                 "parameters": [
1499                     { "name": "contextNodeId", "$ref": "DOM.NodeId" },
1500                     { "name": "selector", "type": "string" }
1501                 ],
1502                 "returns": [
1503                     { "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." }
1504                 ],
1505                 "description": "Creates a new empty rule with the given <code>selector</code> in a special \"inspector\" stylesheet in the owner document of the context node."
1506             },
1507             {
1508                 "name": "getSupportedCSSProperties",
1509                 "returns": [
1510                     { "name": "cssProperties", "type": "array", "items": { "type": "string" }, "description": "Supported property names." }
1511                 ],
1512                 "description": "Returns all supported CSS property names."
1513             }
1514         ]
1515     },
1516     {
1517         "domain": "Timeline",
1518         "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
1519         "types": [
1520             {
1521                 "id": "TimelineEvent",
1522                 "type": "object",
1523                 "properties": [
1524                     { "name": "type", "type": "string", "description": "Event type." },
1525                     { "name": "data", "type": "object", "description": "Event data." },
1526                     { "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineEvent" }, "description": "Nested records." }
1527                 ],
1528                 "description": "Timeline record contains information about the recorded activity."
1529             }
1530         ],
1531         "commands": [
1532             {
1533                 "name": "start",
1534                 "parameters": [
1535                     { "name": "maxCallStackDepth", "optional": true, "type": "integer", "description": "Samples JavaScript stack traces up to <code>maxCallStackDepth</code>, defaults to 5." }
1536                 ],
1537                 "description": "Starts capturing instrumentation events."
1538             },
1539             {
1540                 "name": "stop",
1541                 "description": "Stops capturing instrumentation events."
1542             }
1543         ],
1544         "events": [
1545             {
1546                 "name": "started",
1547                 "description": "Fired when timeline has been started.",
1548                 "hidden": true
1549             },
1550             {
1551                 "name": "stopped",
1552                 "description": "Fired when timeline has been stopped.",
1553                 "hidden": true
1554             },
1555             {
1556                 "name": "eventRecorded",
1557                 "parameters": [
1558                     { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." }
1559                 ],
1560                 "description": "Fired for every instrumentation event while timeline is started."
1561             }
1562         ]
1563     },
1564     {
1565         "domain": "Debugger",
1566         "description": "Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.",
1567         "types": [
1568             {
1569                 "id": "BreakpointId",
1570                 "type": "string",
1571                 "description": "Breakpoint identifier."
1572             },
1573             {
1574                 "id": "ScriptId",
1575                 "type": "string",
1576                 "description": "Unique script identifier."
1577             },
1578             {
1579                 "id": "CallFrameId",
1580                 "type": "string",
1581                 "description": "Call frame identifier."
1582             },
1583             {
1584                 "id": "Location",
1585                 "type": "object",
1586                 "properties": [
1587                     { "name": "scriptId", "$ref": "ScriptId", "description": "Script identifier as reported in the <code>Debugger.scriptParsed</code>." },
1588                     { "name": "lineNumber", "type": "integer", "description": "Line number in the script." },
1589                     { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number in the script." }
1590                 ],
1591                 "description": "Location in the source code."
1592             },
1593             {
1594                 "id": "CallFrame",
1595                 "type": "object",
1596                 "properties": [
1597                     { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused." },
1598                     { "name": "functionName", "type": "string", "description": "Name of the JavaScript function called on this call frame." },
1599                     { "name": "location", "$ref": "Location", "description": "Location in the source code." },
1600                     { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for this call frame." },
1601                     { "name": "this", "$ref": "Runtime.RemoteObject", "description": "<code>this</code> object for this call frame." }
1602                 ],
1603                 "description": "JavaScript call frame. Array of call frames form the call stack."
1604             },
1605             {
1606                 "id": "Scope",
1607                 "type": "object",
1608                 "properties": [
1609                     { "name": "type", "type": "string", "enum": ["global", "local", "with", "closure", "catch"], "description": "Scope type." },
1610                     { "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." }
1611                 ],
1612                 "description": "Scope description."
1613             }
1614         ],
1615         "commands": [
1616             {
1617                 "name": "enable",
1618                 "description": "Enables debugger for given page."
1619             },
1620             {
1621                 "name": "disable",
1622                 "description": "Disables debugger for given page."
1623             },
1624             {
1625                 "name": "setBreakpointsActive",
1626                 "parameters": [
1627                     { "name": "active", "type": "boolean", "description": "New value for breakpoints active state." }
1628                 ],
1629                 "description": "Activates / deactivates all breakpoints on the page."
1630             },
1631             {
1632                 "name": "setBreakpointByUrl",
1633                 "parameters": [
1634                     { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." },
1635                     { "name": "url", "type": "string", "optional": true, "description": "URL of the resources to set breakpoint on." },
1636                     { "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." },
1637                     { "name": "columnNumber", "type": "integer", "optional": true, "description": "Offset in the line to set breakpoint at." },
1638                     { "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." }
1639                 ],
1640                 "returns": [
1641                     { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." },
1642                     { "name": "locations", "optional": true, "type": "array", "items": { "$ref": "Location"}, "description": "List of the locations this breakpoint resolved into upon addition." }
1643                 ],
1644                 "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."
1645             },
1646             {
1647                 "name": "setBreakpoint",
1648                 "parameters": [
1649                     { "name": "location", "$ref": "Location", "description": "Location to set breakpoint in." },
1650                     { "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." }
1651                 ],
1652                 "returns": [
1653                     { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." },
1654                     { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." }
1655                 ],
1656                 "description": "Sets JavaScript breakpoint at a given location."
1657             },
1658             {
1659                 "name": "removeBreakpoint",
1660                 "parameters": [
1661                     { "name": "breakpointId", "$ref": "BreakpointId" }
1662                 ],
1663                 "description": "Removes JavaScript breakpoint."
1664             },
1665             {
1666                 "name": "continueToLocation",
1667                 "parameters": [
1668                     { "name": "location", "$ref": "Location", "description": "Location to continue to." }
1669                 ],
1670                 "description": "Continues execution until specific location is reached."
1671             },
1672             {
1673                 "name": "stepOver",
1674                 "description": "Steps over the statement."
1675             },
1676             {
1677                 "name": "stepInto",
1678                 "description": "Steps into the function call."
1679             },
1680             {
1681                 "name": "stepOut",
1682                 "description": "Steps out of the function call."
1683             },
1684             {
1685                 "name": "pause",
1686                 "description": "Stops on the next JavaScript statement."
1687             },
1688             {
1689                 "name": "resume",
1690                 "description": "Resumes JavaScript execution."
1691             },
1692             {
1693                 "name": "setScriptSource",
1694                 "parameters": [
1695                     { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to edit." },
1696                     { "name": "scriptSource", "type": "string", "description": "New content of the script." },
1697                     { "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 }
1698                 ],
1699                 "returns": [
1700                     { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame"}, "description": "New stack trace in case editing has happened while VM was stopped." },
1701                     { "name": "result", "type": "object", "optional": true, "description": "VM-specific description of the changes applied.", "hidden": true }
1702                 ],
1703                 "description": "Edits JavaScript source live."
1704             },
1705             {
1706                 "name": "getScriptSource",
1707                 "parameters": [
1708                     { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to get source for." }
1709                 ],
1710                 "returns": [
1711                     { "name": "scriptSource", "type": "string", "description": "Script source." }
1712                 ],
1713                 "description": "Returns source for the script with given id."
1714             },
1715             {
1716                 "name": "setPauseOnExceptions",
1717                 "parameters": [
1718                     { "name": "state", "type": "string", "enum": ["none", "uncaught", "all"], "description": "Pause on exceptions mode." }
1719                 ],
1720                 "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>."
1721             },
1722             {
1723                 "name": "evaluateOnCallFrame",
1724                 "parameters": [
1725                     { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." },
1726                     { "name": "expression", "type": "string", "description": "Expression to evaluate." },
1727                     { "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>)." },
1728                     { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false.", "hidden": true },
1729                     { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." }
1730                 ],
1731                 "returns": [
1732                     { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Object wrapper for the evaluation result." },
1733                     { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
1734                 ],
1735                 "description": "Evaluates expression on a given call frame."
1736             }
1737         ],
1738         "events": [
1739             {
1740                 "name": "debuggerWasEnabled",
1741                 "description": "Fired when debugger gets enabled (deprecated).",
1742                 "hidden": true
1743             },
1744             {
1745                 "name": "debuggerWasDisabled",
1746                 "description": "Fired when debugger gets disabled (deprecated).",
1747                 "hidden": true
1748             },
1749             {
1750                 "name": "scriptParsed",
1751                 "parameters": [
1752                     { "name": "scriptId", "$ref": "ScriptId", "description": "Identifier of the script parsed." },
1753                     { "name": "url", "type": "string", "description": "URL or name of the script parsed (if any)." },
1754                     { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource with given URL (for script tags)." },
1755                     { "name": "startColumn", "type": "integer", "description": "Column offset of the script within the resource with given URL." },
1756                     { "name": "endLine", "type": "integer", "description": "Last line of the script." },
1757                     { "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." },
1758                     { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." }
1759                 ],
1760                 "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger."
1761             },
1762             {
1763                 "name": "scriptFailedToParse",
1764                 "parameters": [
1765                     { "name": "url", "type": "string", "description": "URL of the script that failed to parse." },
1766                     { "name": "scriptSource", "type": "string", "description": "Source text of the script that failed to parse." },
1767                     { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource." },
1768                     { "name": "errorLine", "type": "integer", "description": "Line with error." },
1769                     { "name": "errorMessage", "type": "string", "description": "Parse error message." }
1770                 ],
1771                 "description": "Fired when virtual machine fails to parse the script."
1772             },
1773             {
1774                 "name": "breakpointResolved",
1775                 "parameters": [
1776                     { "name": "breakpointId", "$ref": "BreakpointId", "description": "Breakpoint unique identifier." },
1777                     { "name": "location", "$ref": "Location", "description": "Actual breakpoint location." }
1778                 ],
1779                 "description": "Fired when breakpoint is resolved to an actual script and location."
1780             },
1781             {
1782                 "name": "paused",
1783                 "parameters": [
1784                     { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." },
1785                     { "name": "reason", "type": "string", "enum": [ "XHR", "DOM", "EventListener", "exception", "other" ], "description": "Pause reason." },
1786                     { "name": "data", "type": "object", "optional": true, "description": "Object containing break-specific auxiliary properties." }
1787                 ],
1788                 "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria."
1789             },
1790             {
1791                 "name": "resumed",
1792                 "description": "Fired when the virtual machine resumed execution."
1793             }
1794         ]
1795     },
1796     {
1797         "domain": "DOMDebugger",
1798         "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.",
1799         "types": [
1800             {
1801                 "id": "DOMBreakpointType",
1802                 "type": "string",
1803                 "enum": ["subtree-modified", "attribute-modified", "node-removed"],
1804                 "description": "DOM breakpoint type."
1805             }
1806         ],
1807         "commands": [
1808             {
1809                 "name": "setDOMBreakpoint",
1810                 "parameters": [
1811                     { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to set breakpoint on." },
1812                     { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the operation to stop upon." }
1813                 ],
1814                 "description": "Sets breakpoint on particular operation with DOM."
1815             },
1816             {
1817                 "name": "removeDOMBreakpoint",
1818                 "parameters": [
1819                     { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to remove breakpoint from." },
1820                     { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the breakpoint to remove." }
1821                 ],
1822                 "description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>."
1823             },
1824             {
1825                 "name": "setEventListenerBreakpoint",
1826                 "parameters": [
1827                     { "name": "eventName", "type": "string", "description": "Event name to stop on (any DOM event will do)." }
1828                 ],
1829                 "description": "Sets breakpoint on particular DOM event."
1830             },
1831             {
1832                 "name": "removeEventListenerBreakpoint",
1833                 "parameters": [
1834                     { "name": "eventName", "type": "string", "description": "Event name." }
1835                 ],
1836                 "description": "Removes breakpoint on particular DOM event."
1837             },
1838             {
1839                 "name": "setXHRBreakpoint",
1840                 "parameters": [
1841                     { "name": "url", "type": "string", "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon." }
1842                 ],
1843                 "description": "Sets breakpoint on XMLHttpRequest."
1844             },
1845             {
1846                 "name": "removeXHRBreakpoint",
1847                 "parameters": [
1848                     { "name": "url", "type": "string", "description": "Resource URL substring." }
1849                 ],
1850                 "description": "Removes breakpoint from XMLHttpRequest."
1851             }
1852         ]
1853     },
1854     {
1855         "domain": "Profiler",
1856         "hidden": true,
1857         "types": [
1858             {
1859                 "id": "Profile",
1860                 "type": "object",
1861                 "description": "Profile."
1862             },
1863             {
1864                 "id": "ProfileHeader",
1865                 "type": "object",
1866                 "description": "Profile header."
1867             }
1868         ],
1869         "commands": [
1870             {
1871                 "name": "enable"
1872             },
1873             {
1874                 "name": "disable"
1875             },
1876             {
1877                 "name": "isEnabled",
1878                 "returns": [
1879                     { "name": "state", "type": "boolean" }
1880                 ]
1881             },
1882             {
1883                 "name": "start"
1884             },
1885             {
1886                 "name": "stop"
1887             },
1888             {
1889                 "name": "getProfileHeaders",
1890                 "returns": [
1891                     { "name": "headers", "type": "array", "items": { "$ref": "ProfileHeader"} }
1892                 ]
1893             },
1894             {
1895                 "name": "getProfile",
1896                 "parameters": [
1897                     { "name": "type", "type": "string" },
1898                     { "name": "uid", "type": "integer" }
1899                 ],
1900                 "returns": [
1901                     { "name": "profile", "$ref": "Profile" }
1902                 ]
1903             },
1904             {
1905                 "name": "removeProfile",
1906                 "parameters": [
1907                     { "name": "type", "type": "string" },
1908                     { "name": "uid", "type": "integer" }
1909                 ]
1910             },
1911             {
1912                 "name": "clearProfiles"
1913             },
1914             {
1915                 "name": "takeHeapSnapshot"
1916             },
1917             {
1918                 "name": "collectGarbage"
1919             }
1920         ],
1921         "events": [
1922             {
1923                 "name": "profilerWasEnabled"
1924             },
1925             {
1926                 "name": "profilerWasDisabled"
1927             },
1928             {
1929                 "name": "addProfileHeader",
1930                 "parameters": [
1931                     { "name": "header", "$ref": "ProfileHeader" }
1932                 ]
1933             },
1934             {
1935                 "name": "addHeapSnapshotChunk",
1936                 "parameters": [
1937                     { "name": "uid", "type": "integer" },
1938                     { "name": "chunk", "type": "string" }
1939                 ]
1940             },
1941             {
1942                 "name": "finishHeapSnapshot",
1943                 "parameters": [
1944                     { "name": "uid", "type": "integer" }
1945                 ]
1946             },
1947             {
1948                 "name": "setRecordingProfile",
1949                 "parameters": [
1950                     { "name": "isProfiling", "type": "boolean" }
1951                 ]
1952             },
1953             {
1954                 "name": "resetProfiles"
1955             },
1956             {
1957                 "name": "reportHeapSnapshotProgress",
1958                 "parameters": [
1959                     { "name": "done", "type": "integer" },
1960                     { "name": "total", "type": "integer" }
1961                 ]
1962             }
1963         ]
1964     },
1965     {
1966         "domain": "Worker",
1967         "hidden": true,
1968         "types": [],
1969         "commands": [
1970             {
1971                 "name": "setWorkerInspectionEnabled",
1972                 "parameters": [
1973                     { "name": "value", "type": "boolean" }
1974                 ]
1975             },
1976             {
1977                 "name": "sendMessageToWorker",
1978                 "parameters": [
1979                     { "name": "workerId", "type": "integer" },
1980                     { "name": "message", "type": "object" }
1981                 ]
1982             },
1983             {
1984                 "name": "connectToWorker",
1985                 "parameters": [
1986                     { "name": "workerId", "type": "integer" }
1987                 ]
1988             },
1989             {
1990                 "name": "disconnectFromWorker",
1991                 "parameters": [
1992                     { "name": "workerId", "type": "integer" }
1993                 ]
1994             },
1995             {
1996                 "name": "setAutoconnectToWorkers",
1997                 "parameters": [
1998                     { "name": "value", "type": "boolean" }
1999                 ]
2000             }
2001
2002         ],
2003         "events": [
2004             {
2005                 "name": "workerCreated",
2006                 "parameters": [
2007                     { "name": "workerId", "type": "integer" },
2008                     { "name": "url", "type": "string" },
2009                     { "name": "inspectorConnected", "type": "boolean" }
2010                 ]
2011             },
2012             {
2013                 "name": "workerTerminated",
2014                 "parameters": [
2015                     { "name": "workerId", "type": "integer" }
2016                 ]
2017             },
2018             {
2019                 "name": "dispatchMessageFromWorker",
2020                 "parameters": [
2021                     { "name": "workerId", "type": "integer" },
2022                     { "name": "message", "type": "object" }
2023                 ]
2024             }
2025         ]
2026     }]
2027 }