1{
2    "version": {
3        "major": "1",
4        "minor": "3"
5    },
6    "domains": [
7        {
8            "domain": "Console",
9            "description": "This domain is deprecated - use Runtime or Log instead.",
10            "deprecated": true,
11            "dependencies": [
12                "Runtime"
13            ],
14            "types": [
15                {
16                    "id": "ConsoleMessage",
17                    "description": "Console message.",
18                    "type": "object",
19                    "properties": [
20                        {
21                            "name": "source",
22                            "description": "Message source.",
23                            "type": "string",
24                            "enum": [
25                                "xml",
26                                "javascript",
27                                "network",
28                                "console-api",
29                                "storage",
30                                "appcache",
31                                "rendering",
32                                "security",
33                                "other",
34                                "deprecation",
35                                "worker"
36                            ]
37                        },
38                        {
39                            "name": "level",
40                            "description": "Message severity.",
41                            "type": "string",
42                            "enum": [
43                                "log",
44                                "warning",
45                                "error",
46                                "debug",
47                                "info"
48                            ]
49                        },
50                        {
51                            "name": "text",
52                            "description": "Message text.",
53                            "type": "string"
54                        },
55                        {
56                            "name": "url",
57                            "description": "URL of the message origin.",
58                            "optional": true,
59                            "type": "string"
60                        },
61                        {
62                            "name": "line",
63                            "description": "Line number in the resource that generated this message (1-based).",
64                            "optional": true,
65                            "type": "integer"
66                        },
67                        {
68                            "name": "column",
69                            "description": "Column number in the resource that generated this message (1-based).",
70                            "optional": true,
71                            "type": "integer"
72                        }
73                    ]
74                }
75            ],
76            "commands": [
77                {
78                    "name": "clearMessages",
79                    "description": "Does nothing."
80                },
81                {
82                    "name": "disable",
83                    "description": "Disables console domain, prevents further console messages from being reported to the client."
84                },
85                {
86                    "name": "enable",
87                    "description": "Enables console domain, sends the messages collected so far to the client by means of the\n`messageAdded` notification."
88                }
89            ],
90            "events": [
91                {
92                    "name": "messageAdded",
93                    "description": "Issued when new console message is added.",
94                    "parameters": [
95                        {
96                            "name": "message",
97                            "description": "Console message that has been added.",
98                            "$ref": "ConsoleMessage"
99                        }
100                    ]
101                }
102            ]
103        },
104        {
105            "domain": "Debugger",
106            "description": "Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing\nbreakpoints, stepping through execution, exploring stack traces, etc.",
107            "dependencies": [
108                "Runtime"
109            ],
110            "types": [
111                {
112                    "id": "BreakpointId",
113                    "description": "Breakpoint identifier.",
114                    "type": "string"
115                },
116                {
117                    "id": "CallFrameId",
118                    "description": "Call frame identifier.",
119                    "type": "string"
120                },
121                {
122                    "id": "Location",
123                    "description": "Location in the source code.",
124                    "type": "object",
125                    "properties": [
126                        {
127                            "name": "scriptId",
128                            "description": "Script identifier as reported in the `Debugger.scriptParsed`.",
129                            "$ref": "Runtime.ScriptId"
130                        },
131                        {
132                            "name": "lineNumber",
133                            "description": "Line number in the script (0-based).",
134                            "type": "integer"
135                        },
136                        {
137                            "name": "columnNumber",
138                            "description": "Column number in the script (0-based).",
139                            "optional": true,
140                            "type": "integer"
141                        }
142                    ]
143                },
144                {
145                    "id": "ScriptPosition",
146                    "description": "Location in the source code.",
147                    "experimental": true,
148                    "type": "object",
149                    "properties": [
150                        {
151                            "name": "lineNumber",
152                            "type": "integer"
153                        },
154                        {
155                            "name": "columnNumber",
156                            "type": "integer"
157                        }
158                    ]
159                },
160                {
161                    "id": "CallFrame",
162                    "description": "JavaScript call frame. Array of call frames form the call stack.",
163                    "type": "object",
164                    "properties": [
165                        {
166                            "name": "callFrameId",
167                            "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused.",
168                            "$ref": "CallFrameId"
169                        },
170                        {
171                            "name": "functionName",
172                            "description": "Name of the JavaScript function called on this call frame.",
173                            "type": "string"
174                        },
175                        {
176                            "name": "functionLocation",
177                            "description": "Location in the source code.",
178                            "optional": true,
179                            "$ref": "Location"
180                        },
181                        {
182                            "name": "location",
183                            "description": "Location in the source code.",
184                            "$ref": "Location"
185                        },
186                        {
187                            "name": "url",
188                            "description": "JavaScript script name or url.",
189                            "type": "string"
190                        },
191                        {
192                            "name": "scopeChain",
193                            "description": "Scope chain for this call frame.",
194                            "type": "array",
195                            "items": {
196                                "$ref": "Scope"
197                            }
198                        },
199                        {
200                            "name": "this",
201                            "description": "`this` object for this call frame.",
202                            "$ref": "Runtime.RemoteObject"
203                        },
204                        {
205                            "name": "returnValue",
206                            "description": "The value being returned, if the function is at return point.",
207                            "optional": true,
208                            "$ref": "Runtime.RemoteObject"
209                        }
210                    ]
211                },
212                {
213                    "id": "Scope",
214                    "description": "Scope description.",
215                    "type": "object",
216                    "properties": [
217                        {
218                            "name": "type",
219                            "description": "Scope type.",
220                            "type": "string",
221                            "enum": [
222                                "global",
223                                "local",
224                                "with",
225                                "closure",
226                                "catch",
227                                "block",
228                                "script",
229                                "eval",
230                                "module"
231                            ]
232                        },
233                        {
234                            "name": "object",
235                            "description": "Object representing the scope. For `global` and `with` scopes it represents the actual\nobject; for the rest of the scopes, it is artificial transient object enumerating scope\nvariables as its properties.",
236                            "$ref": "Runtime.RemoteObject"
237                        },
238                        {
239                            "name": "name",
240                            "optional": true,
241                            "type": "string"
242                        },
243                        {
244                            "name": "startLocation",
245                            "description": "Location in the source code where scope starts",
246                            "optional": true,
247                            "$ref": "Location"
248                        },
249                        {
250                            "name": "endLocation",
251                            "description": "Location in the source code where scope ends",
252                            "optional": true,
253                            "$ref": "Location"
254                        }
255                    ]
256                },
257                {
258                    "id": "SearchMatch",
259                    "description": "Search match for resource.",
260                    "type": "object",
261                    "properties": [
262                        {
263                            "name": "lineNumber",
264                            "description": "Line number in resource content.",
265                            "type": "number"
266                        },
267                        {
268                            "name": "lineContent",
269                            "description": "Line with match content.",
270                            "type": "string"
271                        }
272                    ]
273                },
274                {
275                    "id": "BreakLocation",
276                    "type": "object",
277                    "properties": [
278                        {
279                            "name": "scriptId",
280                            "description": "Script identifier as reported in the `Debugger.scriptParsed`.",
281                            "$ref": "Runtime.ScriptId"
282                        },
283                        {
284                            "name": "lineNumber",
285                            "description": "Line number in the script (0-based).",
286                            "type": "integer"
287                        },
288                        {
289                            "name": "columnNumber",
290                            "description": "Column number in the script (0-based).",
291                            "optional": true,
292                            "type": "integer"
293                        },
294                        {
295                            "name": "type",
296                            "optional": true,
297                            "type": "string",
298                            "enum": [
299                                "debuggerStatement",
300                                "call",
301                                "return"
302                            ]
303                        }
304                    ]
305                }
306            ],
307            "commands": [
308                {
309                    "name": "continueToLocation",
310                    "description": "Continues execution until specific location is reached.",
311                    "parameters": [
312                        {
313                            "name": "location",
314                            "description": "Location to continue to.",
315                            "$ref": "Location"
316                        },
317                        {
318                            "name": "targetCallFrames",
319                            "optional": true,
320                            "type": "string",
321                            "enum": [
322                                "any",
323                                "current"
324                            ]
325                        }
326                    ]
327                },
328                {
329                    "name": "disable",
330                    "description": "Disables debugger for given page."
331                },
332                {
333                    "name": "enable",
334                    "description": "Enables debugger for the given page. Clients should not assume that the debugging has been\nenabled until the result for this command is received.",
335                    "returns": [
336                        {
337                            "name": "debuggerId",
338                            "description": "Unique identifier of the debugger.",
339                            "experimental": true,
340                            "$ref": "Runtime.UniqueDebuggerId"
341                        }
342                    ]
343                },
344                {
345                    "name": "evaluateOnCallFrame",
346                    "description": "Evaluates expression on a given call frame.",
347                    "parameters": [
348                        {
349                            "name": "callFrameId",
350                            "description": "Call frame identifier to evaluate on.",
351                            "$ref": "CallFrameId"
352                        },
353                        {
354                            "name": "expression",
355                            "description": "Expression to evaluate.",
356                            "type": "string"
357                        },
358                        {
359                            "name": "objectGroup",
360                            "description": "String object group name to put result into (allows rapid releasing resulting object handles\nusing `releaseObjectGroup`).",
361                            "optional": true,
362                            "type": "string"
363                        },
364                        {
365                            "name": "includeCommandLineAPI",
366                            "description": "Specifies whether command line API should be available to the evaluated expression, defaults\nto false.",
367                            "optional": true,
368                            "type": "boolean"
369                        },
370                        {
371                            "name": "silent",
372                            "description": "In silent mode exceptions thrown during evaluation are not reported and do not pause\nexecution. Overrides `setPauseOnException` state.",
373                            "optional": true,
374                            "type": "boolean"
375                        },
376                        {
377                            "name": "returnByValue",
378                            "description": "Whether the result is expected to be a JSON object that should be sent by value.",
379                            "optional": true,
380                            "type": "boolean"
381                        },
382                        {
383                            "name": "generatePreview",
384                            "description": "Whether preview should be generated for the result.",
385                            "experimental": true,
386                            "optional": true,
387                            "type": "boolean"
388                        },
389                        {
390                            "name": "throwOnSideEffect",
391                            "description": "Whether to throw an exception if side effect cannot be ruled out during evaluation.",
392                            "optional": true,
393                            "type": "boolean"
394                        },
395                        {
396                            "name": "timeout",
397                            "description": "Terminate execution after timing out (number of milliseconds).",
398                            "experimental": true,
399                            "optional": true,
400                            "$ref": "Runtime.TimeDelta"
401                        }
402                    ],
403                    "returns": [
404                        {
405                            "name": "result",
406                            "description": "Object wrapper for the evaluation result.",
407                            "$ref": "Runtime.RemoteObject"
408                        },
409                        {
410                            "name": "exceptionDetails",
411                            "description": "Exception details.",
412                            "optional": true,
413                            "$ref": "Runtime.ExceptionDetails"
414                        }
415                    ]
416                },
417                {
418                    "name": "getPossibleBreakpoints",
419                    "description": "Returns possible locations for breakpoint. scriptId in start and end range locations should be\nthe same.",
420                    "parameters": [
421                        {
422                            "name": "start",
423                            "description": "Start of range to search possible breakpoint locations in.",
424                            "$ref": "Location"
425                        },
426                        {
427                            "name": "end",
428                            "description": "End of range to search possible breakpoint locations in (excluding). When not specified, end\nof scripts is used as end of range.",
429                            "optional": true,
430                            "$ref": "Location"
431                        },
432                        {
433                            "name": "restrictToFunction",
434                            "description": "Only consider locations which are in the same (non-nested) function as start.",
435                            "optional": true,
436                            "type": "boolean"
437                        }
438                    ],
439                    "returns": [
440                        {
441                            "name": "locations",
442                            "description": "List of the possible breakpoint locations.",
443                            "type": "array",
444                            "items": {
445                                "$ref": "BreakLocation"
446                            }
447                        }
448                    ]
449                },
450                {
451                    "name": "getScriptSource",
452                    "description": "Returns source for the script with given id.",
453                    "parameters": [
454                        {
455                            "name": "scriptId",
456                            "description": "Id of the script to get source for.",
457                            "$ref": "Runtime.ScriptId"
458                        }
459                    ],
460                    "returns": [
461                        {
462                            "name": "scriptSource",
463                            "description": "Script source.",
464                            "type": "string"
465                        }
466                    ]
467                },
468                {
469                    "name": "getStackTrace",
470                    "description": "Returns stack trace with given `stackTraceId`.",
471                    "experimental": true,
472                    "parameters": [
473                        {
474                            "name": "stackTraceId",
475                            "$ref": "Runtime.StackTraceId"
476                        }
477                    ],
478                    "returns": [
479                        {
480                            "name": "stackTrace",
481                            "$ref": "Runtime.StackTrace"
482                        }
483                    ]
484                },
485                {
486                    "name": "pause",
487                    "description": "Stops on the next JavaScript statement."
488                },
489                {
490                    "name": "pauseOnAsyncCall",
491                    "experimental": true,
492                    "parameters": [
493                        {
494                            "name": "parentStackTraceId",
495                            "description": "Debugger will pause when async call with given stack trace is started.",
496                            "$ref": "Runtime.StackTraceId"
497                        }
498                    ]
499                },
500                {
501                    "name": "removeBreakpoint",
502                    "description": "Removes JavaScript breakpoint.",
503                    "parameters": [
504                        {
505                            "name": "breakpointId",
506                            "$ref": "BreakpointId"
507                        }
508                    ]
509                },
510                {
511                    "name": "restartFrame",
512                    "description": "Restarts particular call frame from the beginning.",
513                    "parameters": [
514                        {
515                            "name": "callFrameId",
516                            "description": "Call frame identifier to evaluate on.",
517                            "$ref": "CallFrameId"
518                        }
519                    ],
520                    "returns": [
521                        {
522                            "name": "callFrames",
523                            "description": "New stack trace.",
524                            "type": "array",
525                            "items": {
526                                "$ref": "CallFrame"
527                            }
528                        },
529                        {
530                            "name": "asyncStackTrace",
531                            "description": "Async stack trace, if any.",
532                            "optional": true,
533                            "$ref": "Runtime.StackTrace"
534                        },
535                        {
536                            "name": "asyncStackTraceId",
537                            "description": "Async stack trace, if any.",
538                            "experimental": true,
539                            "optional": true,
540                            "$ref": "Runtime.StackTraceId"
541                        }
542                    ]
543                },
544                {
545                    "name": "resume",
546                    "description": "Resumes JavaScript execution."
547                },
548                {
549                    "name": "scheduleStepIntoAsync",
550                    "description": "This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and\nDebugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled\nbefore next pause. Returns success when async task is actually scheduled, returns error if no\ntask were scheduled or another scheduleStepIntoAsync was called.",
551                    "experimental": true
552                },
553                {
554                    "name": "searchInContent",
555                    "description": "Searches for given string in script content.",
556                    "parameters": [
557                        {
558                            "name": "scriptId",
559                            "description": "Id of the script to search in.",
560                            "$ref": "Runtime.ScriptId"
561                        },
562                        {
563                            "name": "query",
564                            "description": "String to search for.",
565                            "type": "string"
566                        },
567                        {
568                            "name": "caseSensitive",
569                            "description": "If true, search is case sensitive.",
570                            "optional": true,
571                            "type": "boolean"
572                        },
573                        {
574                            "name": "isRegex",
575                            "description": "If true, treats string parameter as regex.",
576                            "optional": true,
577                            "type": "boolean"
578                        }
579                    ],
580                    "returns": [
581                        {
582                            "name": "result",
583                            "description": "List of search matches.",
584                            "type": "array",
585                            "items": {
586                                "$ref": "SearchMatch"
587                            }
588                        }
589                    ]
590                },
591                {
592                    "name": "setAsyncCallStackDepth",
593                    "description": "Enables or disables async call stacks tracking.",
594                    "parameters": [
595                        {
596                            "name": "maxDepth",
597                            "description": "Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async\ncall stacks (default).",
598                            "type": "integer"
599                        }
600                    ]
601                },
602                {
603                    "name": "setBlackboxPatterns",
604                    "description": "Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in\nscripts with url matching one of the patterns. VM will try to leave blackboxed script by\nperforming 'step in' several times, finally resorting to 'step out' if unsuccessful.",
605                    "experimental": true,
606                    "parameters": [
607                        {
608                            "name": "patterns",
609                            "description": "Array of regexps that will be used to check script url for blackbox state.",
610                            "type": "array",
611                            "items": {
612                                "type": "string"
613                            }
614                        }
615                    ]
616                },
617                {
618                    "name": "setBlackboxedRanges",
619                    "description": "Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted\nscripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.\nPositions array contains positions where blackbox state is changed. First interval isn't\nblackboxed. Array should be sorted.",
620                    "experimental": true,
621                    "parameters": [
622                        {
623                            "name": "scriptId",
624                            "description": "Id of the script.",
625                            "$ref": "Runtime.ScriptId"
626                        },
627                        {
628                            "name": "positions",
629                            "type": "array",
630                            "items": {
631                                "$ref": "ScriptPosition"
632                            }
633                        }
634                    ]
635                },
636                {
637                    "name": "setBreakpoint",
638                    "description": "Sets JavaScript breakpoint at a given location.",
639                    "parameters": [
640                        {
641                            "name": "location",
642                            "description": "Location to set breakpoint in.",
643                            "$ref": "Location"
644                        },
645                        {
646                            "name": "condition",
647                            "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the\nbreakpoint if this expression evaluates to true.",
648                            "optional": true,
649                            "type": "string"
650                        }
651                    ],
652                    "returns": [
653                        {
654                            "name": "breakpointId",
655                            "description": "Id of the created breakpoint for further reference.",
656                            "$ref": "BreakpointId"
657                        },
658                        {
659                            "name": "actualLocation",
660                            "description": "Location this breakpoint resolved into.",
661                            "$ref": "Location"
662                        }
663                    ]
664                },
665                {
666                    "name": "setBreakpointByUrl",
667                    "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this\ncommand is issued, all existing parsed scripts will have breakpoints resolved and returned in\n`locations` property. Further matching script parsing will result in subsequent\n`breakpointResolved` events issued. This logical breakpoint will survive page reloads.",
668                    "parameters": [
669                        {
670                            "name": "lineNumber",
671                            "description": "Line number to set breakpoint at.",
672                            "type": "integer"
673                        },
674                        {
675                            "name": "url",
676                            "description": "URL of the resources to set breakpoint on.",
677                            "optional": true,
678                            "type": "string"
679                        },
680                        {
681                            "name": "urlRegex",
682                            "description": "Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or\n`urlRegex` must be specified.",
683                            "optional": true,
684                            "type": "string"
685                        },
686                        {
687                            "name": "scriptHash",
688                            "description": "Script hash of the resources to set breakpoint on.",
689                            "optional": true,
690                            "type": "string"
691                        },
692                        {
693                            "name": "columnNumber",
694                            "description": "Offset in the line to set breakpoint at.",
695                            "optional": true,
696                            "type": "integer"
697                        },
698                        {
699                            "name": "condition",
700                            "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the\nbreakpoint if this expression evaluates to true.",
701                            "optional": true,
702                            "type": "string"
703                        }
704                    ],
705                    "returns": [
706                        {
707                            "name": "breakpointId",
708                            "description": "Id of the created breakpoint for further reference.",
709                            "$ref": "BreakpointId"
710                        },
711                        {
712                            "name": "locations",
713                            "description": "List of the locations this breakpoint resolved into upon addition.",
714                            "type": "array",
715                            "items": {
716                                "$ref": "Location"
717                            }
718                        }
719                    ]
720                },
721                {
722                    "name": "setBreakpointOnFunctionCall",
723                    "description": "Sets JavaScript breakpoint before each call to the given function.\nIf another function was created from the same source as a given one,\ncalling it will also trigger the breakpoint.",
724                    "experimental": true,
725                    "parameters": [
726                        {
727                            "name": "objectId",
728                            "description": "Function object id.",
729                            "$ref": "Runtime.RemoteObjectId"
730                        },
731                        {
732                            "name": "condition",
733                            "description": "Expression to use as a breakpoint condition. When specified, debugger will\nstop on the breakpoint if this expression evaluates to true.",
734                            "optional": true,
735                            "type": "string"
736                        }
737                    ],
738                    "returns": [
739                        {
740                            "name": "breakpointId",
741                            "description": "Id of the created breakpoint for further reference.",
742                            "$ref": "BreakpointId"
743                        }
744                    ]
745                },
746                {
747                    "name": "setBreakpointsActive",
748                    "description": "Activates / deactivates all breakpoints on the page.",
749                    "parameters": [
750                        {
751                            "name": "active",
752                            "description": "New value for breakpoints active state.",
753                            "type": "boolean"
754                        }
755                    ]
756                },
757                {
758                    "name": "setPauseOnExceptions",
759                    "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or\nno exceptions. Initial pause on exceptions state is `none`.",
760                    "parameters": [
761                        {
762                            "name": "state",
763                            "description": "Pause on exceptions mode.",
764                            "type": "string",
765                            "enum": [
766                                "none",
767                                "uncaught",
768                                "all"
769                            ]
770                        }
771                    ]
772                },
773                {
774                    "name": "setReturnValue",
775                    "description": "Changes return value in top frame. Available only at return break position.",
776                    "experimental": true,
777                    "parameters": [
778                        {
779                            "name": "newValue",
780                            "description": "New return value.",
781                            "$ref": "Runtime.CallArgument"
782                        }
783                    ]
784                },
785                {
786                    "name": "setScriptSource",
787                    "description": "Edits JavaScript source live.",
788                    "parameters": [
789                        {
790                            "name": "scriptId",
791                            "description": "Id of the script to edit.",
792                            "$ref": "Runtime.ScriptId"
793                        },
794                        {
795                            "name": "scriptSource",
796                            "description": "New content of the script.",
797                            "type": "string"
798                        },
799                        {
800                            "name": "dryRun",
801                            "description": "If true the change will not actually be applied. Dry run may be used to get result\ndescription without actually modifying the code.",
802                            "optional": true,
803                            "type": "boolean"
804                        }
805                    ],
806                    "returns": [
807                        {
808                            "name": "callFrames",
809                            "description": "New stack trace in case editing has happened while VM was stopped.",
810                            "optional": true,
811                            "type": "array",
812                            "items": {
813                                "$ref": "CallFrame"
814                            }
815                        },
816                        {
817                            "name": "stackChanged",
818                            "description": "Whether current call stack  was modified after applying the changes.",
819                            "optional": true,
820                            "type": "boolean"
821                        },
822                        {
823                            "name": "asyncStackTrace",
824                            "description": "Async stack trace, if any.",
825                            "optional": true,
826                            "$ref": "Runtime.StackTrace"
827                        },
828                        {
829                            "name": "asyncStackTraceId",
830                            "description": "Async stack trace, if any.",
831                            "experimental": true,
832                            "optional": true,
833                            "$ref": "Runtime.StackTraceId"
834                        },
835                        {
836                            "name": "exceptionDetails",
837                            "description": "Exception details if any.",
838                            "optional": true,
839                            "$ref": "Runtime.ExceptionDetails"
840                        }
841                    ]
842                },
843                {
844                    "name": "setSkipAllPauses",
845                    "description": "Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).",
846                    "parameters": [
847                        {
848                            "name": "skip",
849                            "description": "New value for skip pauses state.",
850                            "type": "boolean"
851                        }
852                    ]
853                },
854                {
855                    "name": "setVariableValue",
856                    "description": "Changes value of variable in a callframe. Object-based scopes are not supported and must be\nmutated manually.",
857                    "parameters": [
858                        {
859                            "name": "scopeNumber",
860                            "description": "0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch'\nscope types are allowed. Other scopes could be manipulated manually.",
861                            "type": "integer"
862                        },
863                        {
864                            "name": "variableName",
865                            "description": "Variable name.",
866                            "type": "string"
867                        },
868                        {
869                            "name": "newValue",
870                            "description": "New variable value.",
871                            "$ref": "Runtime.CallArgument"
872                        },
873                        {
874                            "name": "callFrameId",
875                            "description": "Id of callframe that holds variable.",
876                            "$ref": "CallFrameId"
877                        }
878                    ]
879                },
880                {
881                    "name": "stepInto",
882                    "description": "Steps into the function call.",
883                    "parameters": [
884                        {
885                            "name": "breakOnAsyncCall",
886                            "description": "Debugger will issue additional Debugger.paused notification if any async task is scheduled\nbefore next pause.",
887                            "experimental": true,
888                            "optional": true,
889                            "type": "boolean"
890                        }
891                    ]
892                },
893                {
894                    "name": "stepOut",
895                    "description": "Steps out of the function call."
896                },
897                {
898                    "name": "stepOver",
899                    "description": "Steps over the statement."
900                }
901            ],
902            "events": [
903                {
904                    "name": "breakpointResolved",
905                    "description": "Fired when breakpoint is resolved to an actual script and location.",
906                    "parameters": [
907                        {
908                            "name": "breakpointId",
909                            "description": "Breakpoint unique identifier.",
910                            "$ref": "BreakpointId"
911                        },
912                        {
913                            "name": "location",
914                            "description": "Actual breakpoint location.",
915                            "$ref": "Location"
916                        }
917                    ]
918                },
919                {
920                    "name": "paused",
921                    "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.",
922                    "parameters": [
923                        {
924                            "name": "callFrames",
925                            "description": "Call stack the virtual machine stopped on.",
926                            "type": "array",
927                            "items": {
928                                "$ref": "CallFrame"
929                            }
930                        },
931                        {
932                            "name": "reason",
933                            "description": "Pause reason.",
934                            "type": "string",
935                            "enum": [
936                                "XHR",
937                                "DOM",
938                                "EventListener",
939                                "exception",
940                                "assert",
941                                "debugCommand",
942                                "promiseRejection",
943                                "OOM",
944                                "other",
945                                "ambiguous"
946                            ]
947                        },
948                        {
949                            "name": "data",
950                            "description": "Object containing break-specific auxiliary properties.",
951                            "optional": true,
952                            "type": "object"
953                        },
954                        {
955                            "name": "hitBreakpoints",
956                            "description": "Hit breakpoints IDs",
957                            "optional": true,
958                            "type": "array",
959                            "items": {
960                                "type": "string"
961                            }
962                        },
963                        {
964                            "name": "asyncStackTrace",
965                            "description": "Async stack trace, if any.",
966                            "optional": true,
967                            "$ref": "Runtime.StackTrace"
968                        },
969                        {
970                            "name": "asyncStackTraceId",
971                            "description": "Async stack trace, if any.",
972                            "experimental": true,
973                            "optional": true,
974                            "$ref": "Runtime.StackTraceId"
975                        },
976                        {
977                            "name": "asyncCallStackTraceId",
978                            "description": "Just scheduled async call will have this stack trace as parent stack during async execution.\nThis field is available only after `Debugger.stepInto` call with `breakOnAsynCall` flag.",
979                            "experimental": true,
980                            "optional": true,
981                            "$ref": "Runtime.StackTraceId"
982                        }
983                    ]
984                },
985                {
986                    "name": "resumed",
987                    "description": "Fired when the virtual machine resumed execution."
988                },
989                {
990                    "name": "scriptFailedToParse",
991                    "description": "Fired when virtual machine fails to parse the script.",
992                    "parameters": [
993                        {
994                            "name": "scriptId",
995                            "description": "Identifier of the script parsed.",
996                            "$ref": "Runtime.ScriptId"
997                        },
998                        {
999                            "name": "url",
1000                            "description": "URL or name of the script parsed (if any).",
1001                            "type": "string"
1002                        },
1003                        {
1004                            "name": "startLine",
1005                            "description": "Line offset of the script within the resource with given URL (for script tags).",
1006                            "type": "integer"
1007                        },
1008                        {
1009                            "name": "startColumn",
1010                            "description": "Column offset of the script within the resource with given URL.",
1011                            "type": "integer"
1012                        },
1013                        {
1014                            "name": "endLine",
1015                            "description": "Last line of the script.",
1016                            "type": "integer"
1017                        },
1018                        {
1019                            "name": "endColumn",
1020                            "description": "Length of the last line of the script.",
1021                            "type": "integer"
1022                        },
1023                        {
1024                            "name": "executionContextId",
1025                            "description": "Specifies script creation context.",
1026                            "$ref": "Runtime.ExecutionContextId"
1027                        },
1028                        {
1029                            "name": "hash",
1030                            "description": "Content hash of the script.",
1031                            "type": "string"
1032                        },
1033                        {
1034                            "name": "executionContextAuxData",
1035                            "description": "Embedder-specific auxiliary data.",
1036                            "optional": true,
1037                            "type": "object"
1038                        },
1039                        {
1040                            "name": "sourceMapURL",
1041                            "description": "URL of source map associated with script (if any).",
1042                            "optional": true,
1043                            "type": "string"
1044                        },
1045                        {
1046                            "name": "hasSourceURL",
1047                            "description": "True, if this script has sourceURL.",
1048                            "optional": true,
1049                            "type": "boolean"
1050                        },
1051                        {
1052                            "name": "isModule",
1053                            "description": "True, if this script is ES6 module.",
1054                            "optional": true,
1055                            "type": "boolean"
1056                        },
1057                        {
1058                            "name": "length",
1059                            "description": "This script length.",
1060                            "optional": true,
1061                            "type": "integer"
1062                        },
1063                        {
1064                            "name": "stackTrace",
1065                            "description": "JavaScript top stack frame of where the script parsed event was triggered if available.",
1066                            "experimental": true,
1067                            "optional": true,
1068                            "$ref": "Runtime.StackTrace"
1069                        }
1070                    ]
1071                },
1072                {
1073                    "name": "scriptParsed",
1074                    "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected\nscripts upon enabling debugger.",
1075                    "parameters": [
1076                        {
1077                            "name": "scriptId",
1078                            "description": "Identifier of the script parsed.",
1079                            "$ref": "Runtime.ScriptId"
1080                        },
1081                        {
1082                            "name": "url",
1083                            "description": "URL or name of the script parsed (if any).",
1084                            "type": "string"
1085                        },
1086                        {
1087                            "name": "startLine",
1088                            "description": "Line offset of the script within the resource with given URL (for script tags).",
1089                            "type": "integer"
1090                        },
1091                        {
1092                            "name": "startColumn",
1093                            "description": "Column offset of the script within the resource with given URL.",
1094                            "type": "integer"
1095                        },
1096                        {
1097                            "name": "endLine",
1098                            "description": "Last line of the script.",
1099                            "type": "integer"
1100                        },
1101                        {
1102                            "name": "endColumn",
1103                            "description": "Length of the last line of the script.",
1104                            "type": "integer"
1105                        },
1106                        {
1107                            "name": "executionContextId",
1108                            "description": "Specifies script creation context.",
1109                            "$ref": "Runtime.ExecutionContextId"
1110                        },
1111                        {
1112                            "name": "hash",
1113                            "description": "Content hash of the script.",
1114                            "type": "string"
1115                        },
1116                        {
1117                            "name": "executionContextAuxData",
1118                            "description": "Embedder-specific auxiliary data.",
1119                            "optional": true,
1120                            "type": "object"
1121                        },
1122                        {
1123                            "name": "isLiveEdit",
1124                            "description": "True, if this script is generated as a result of the live edit operation.",
1125                            "experimental": true,
1126                            "optional": true,
1127                            "type": "boolean"
1128                        },
1129                        {
1130                            "name": "sourceMapURL",
1131                            "description": "URL of source map associated with script (if any).",
1132                            "optional": true,
1133                            "type": "string"
1134                        },
1135                        {
1136                            "name": "hasSourceURL",
1137                            "description": "True, if this script has sourceURL.",
1138                            "optional": true,
1139                            "type": "boolean"
1140                        },
1141                        {
1142                            "name": "isModule",
1143                            "description": "True, if this script is ES6 module.",
1144                            "optional": true,
1145                            "type": "boolean"
1146                        },
1147                        {
1148                            "name": "length",
1149                            "description": "This script length.",
1150                            "optional": true,
1151                            "type": "integer"
1152                        },
1153                        {
1154                            "name": "stackTrace",
1155                            "description": "JavaScript top stack frame of where the script parsed event was triggered if available.",
1156                            "experimental": true,
1157                            "optional": true,
1158                            "$ref": "Runtime.StackTrace"
1159                        }
1160                    ]
1161                }
1162            ]
1163        },
1164        {
1165            "domain": "HeapProfiler",
1166            "experimental": true,
1167            "dependencies": [
1168                "Runtime"
1169            ],
1170            "types": [
1171                {
1172                    "id": "HeapSnapshotObjectId",
1173                    "description": "Heap snapshot object id.",
1174                    "type": "string"
1175                },
1176                {
1177                    "id": "SamplingHeapProfileNode",
1178                    "description": "Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.",
1179                    "type": "object",
1180                    "properties": [
1181                        {
1182                            "name": "callFrame",
1183                            "description": "Function location.",
1184                            "$ref": "Runtime.CallFrame"
1185                        },
1186                        {
1187                            "name": "selfSize",
1188                            "description": "Allocations size in bytes for the node excluding children.",
1189                            "type": "number"
1190                        },
1191                        {
1192                            "name": "children",
1193                            "description": "Child nodes.",
1194                            "type": "array",
1195                            "items": {
1196                                "$ref": "SamplingHeapProfileNode"
1197                            }
1198                        }
1199                    ]
1200                },
1201                {
1202                    "id": "SamplingHeapProfile",
1203                    "description": "Profile.",
1204                    "type": "object",
1205                    "properties": [
1206                        {
1207                            "name": "head",
1208                            "$ref": "SamplingHeapProfileNode"
1209                        }
1210                    ]
1211                }
1212            ],
1213            "commands": [
1214                {
1215                    "name": "addInspectedHeapObject",
1216                    "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details\n$x functions).",
1217                    "parameters": [
1218                        {
1219                            "name": "heapObjectId",
1220                            "description": "Heap snapshot object id to be accessible by means of $x command line API.",
1221                            "$ref": "HeapSnapshotObjectId"
1222                        }
1223                    ]
1224                },
1225                {
1226                    "name": "collectGarbage"
1227                },
1228                {
1229                    "name": "disable"
1230                },
1231                {
1232                    "name": "enable"
1233                },
1234                {
1235                    "name": "getHeapObjectId",
1236                    "parameters": [
1237                        {
1238                            "name": "objectId",
1239                            "description": "Identifier of the object to get heap object id for.",
1240                            "$ref": "Runtime.RemoteObjectId"
1241                        }
1242                    ],
1243                    "returns": [
1244                        {
1245                            "name": "heapSnapshotObjectId",
1246                            "description": "Id of the heap snapshot object corresponding to the passed remote object id.",
1247                            "$ref": "HeapSnapshotObjectId"
1248                        }
1249                    ]
1250                },
1251                {
1252                    "name": "getObjectByHeapObjectId",
1253                    "parameters": [
1254                        {
1255                            "name": "objectId",
1256                            "$ref": "HeapSnapshotObjectId"
1257                        },
1258                        {
1259                            "name": "objectGroup",
1260                            "description": "Symbolic group name that can be used to release multiple objects.",
1261                            "optional": true,
1262                            "type": "string"
1263                        }
1264                    ],
1265                    "returns": [
1266                        {
1267                            "name": "result",
1268                            "description": "Evaluation result.",
1269                            "$ref": "Runtime.RemoteObject"
1270                        }
1271                    ]
1272                },
1273                {
1274                    "name": "getSamplingProfile",
1275                    "returns": [
1276                        {
1277                            "name": "profile",
1278                            "description": "Return the sampling profile being collected.",
1279                            "$ref": "SamplingHeapProfile"
1280                        }
1281                    ]
1282                },
1283                {
1284                    "name": "startSampling",
1285                    "parameters": [
1286                        {
1287                            "name": "samplingInterval",
1288                            "description": "Average sample interval in bytes. Poisson distribution is used for the intervals. The\ndefault value is 32768 bytes.",
1289                            "optional": true,
1290                            "type": "number"
1291                        }
1292                    ]
1293                },
1294                {
1295                    "name": "startTrackingHeapObjects",
1296                    "parameters": [
1297                        {
1298                            "name": "trackAllocations",
1299                            "optional": true,
1300                            "type": "boolean"
1301                        }
1302                    ]
1303                },
1304                {
1305                    "name": "stopSampling",
1306                    "returns": [
1307                        {
1308                            "name": "profile",
1309                            "description": "Recorded sampling heap profile.",
1310                            "$ref": "SamplingHeapProfile"
1311                        }
1312                    ]
1313                },
1314                {
1315                    "name": "stopTrackingHeapObjects",
1316                    "parameters": [
1317                        {
1318                            "name": "reportProgress",
1319                            "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken\nwhen the tracking is stopped.",
1320                            "optional": true,
1321                            "type": "boolean"
1322                        }
1323                    ]
1324                },
1325                {
1326                    "name": "takeHeapSnapshot",
1327                    "parameters": [
1328                        {
1329                            "name": "reportProgress",
1330                            "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.",
1331                            "optional": true,
1332                            "type": "boolean"
1333                        }
1334                    ]
1335                }
1336            ],
1337            "events": [
1338                {
1339                    "name": "addHeapSnapshotChunk",
1340                    "parameters": [
1341                        {
1342                            "name": "chunk",
1343                            "type": "string"
1344                        }
1345                    ]
1346                },
1347                {
1348                    "name": "heapStatsUpdate",
1349                    "description": "If heap objects tracking has been started then backend may send update for one or more fragments",
1350                    "parameters": [
1351                        {
1352                            "name": "statsUpdate",
1353                            "description": "An array of triplets. Each triplet describes a fragment. The first integer is the fragment\nindex, the second integer is a total count of objects for the fragment, the third integer is\na total size of the objects for the fragment.",
1354                            "type": "array",
1355                            "items": {
1356                                "type": "integer"
1357                            }
1358                        }
1359                    ]
1360                },
1361                {
1362                    "name": "lastSeenObjectId",
1363                    "description": "If heap objects tracking has been started then backend regularly sends a current value for last\nseen object id and corresponding timestamp. If the were changes in the heap since last event\nthen one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.",
1364                    "parameters": [
1365                        {
1366                            "name": "lastSeenObjectId",
1367                            "type": "integer"
1368                        },
1369                        {
1370                            "name": "timestamp",
1371                            "type": "number"
1372                        }
1373                    ]
1374                },
1375                {
1376                    "name": "reportHeapSnapshotProgress",
1377                    "parameters": [
1378                        {
1379                            "name": "done",
1380                            "type": "integer"
1381                        },
1382                        {
1383                            "name": "total",
1384                            "type": "integer"
1385                        },
1386                        {
1387                            "name": "finished",
1388                            "optional": true,
1389                            "type": "boolean"
1390                        }
1391                    ]
1392                },
1393                {
1394                    "name": "resetProfiles"
1395                }
1396            ]
1397        },
1398        {
1399            "domain": "Profiler",
1400            "dependencies": [
1401                "Runtime",
1402                "Debugger"
1403            ],
1404            "types": [
1405                {
1406                    "id": "ProfileNode",
1407                    "description": "Profile node. Holds callsite information, execution statistics and child nodes.",
1408                    "type": "object",
1409                    "properties": [
1410                        {
1411                            "name": "id",
1412                            "description": "Unique id of the node.",
1413                            "type": "integer"
1414                        },
1415                        {
1416                            "name": "callFrame",
1417                            "description": "Function location.",
1418                            "$ref": "Runtime.CallFrame"
1419                        },
1420                        {
1421                            "name": "hitCount",
1422                            "description": "Number of samples where this node was on top of the call stack.",
1423                            "optional": true,
1424                            "type": "integer"
1425                        },
1426                        {
1427                            "name": "children",
1428                            "description": "Child node ids.",
1429                            "optional": true,
1430                            "type": "array",
1431                            "items": {
1432                                "type": "integer"
1433                            }
1434                        },
1435                        {
1436                            "name": "deoptReason",
1437                            "description": "The reason of being not optimized. The function may be deoptimized or marked as don't\noptimize.",
1438                            "optional": true,
1439                            "type": "string"
1440                        },
1441                        {
1442                            "name": "positionTicks",
1443                            "description": "An array of source position ticks.",
1444                            "optional": true,
1445                            "type": "array",
1446                            "items": {
1447                                "$ref": "PositionTickInfo"
1448                            }
1449                        }
1450                    ]
1451                },
1452                {
1453                    "id": "Profile",
1454                    "description": "Profile.",
1455                    "type": "object",
1456                    "properties": [
1457                        {
1458                            "name": "nodes",
1459                            "description": "The list of profile nodes. First item is the root node.",
1460                            "type": "array",
1461                            "items": {
1462                                "$ref": "ProfileNode"
1463                            }
1464                        },
1465                        {
1466                            "name": "startTime",
1467                            "description": "Profiling start timestamp in microseconds.",
1468                            "type": "number"
1469                        },
1470                        {
1471                            "name": "endTime",
1472                            "description": "Profiling end timestamp in microseconds.",
1473                            "type": "number"
1474                        },
1475                        {
1476                            "name": "samples",
1477                            "description": "Ids of samples top nodes.",
1478                            "optional": true,
1479                            "type": "array",
1480                            "items": {
1481                                "type": "integer"
1482                            }
1483                        },
1484                        {
1485                            "name": "timeDeltas",
1486                            "description": "Time intervals between adjacent samples in microseconds. The first delta is relative to the\nprofile startTime.",
1487                            "optional": true,
1488                            "type": "array",
1489                            "items": {
1490                                "type": "integer"
1491                            }
1492                        }
1493                    ]
1494                },
1495                {
1496                    "id": "PositionTickInfo",
1497                    "description": "Specifies a number of samples attributed to a certain source position.",
1498                    "type": "object",
1499                    "properties": [
1500                        {
1501                            "name": "line",
1502                            "description": "Source line number (1-based).",
1503                            "type": "integer"
1504                        },
1505                        {
1506                            "name": "ticks",
1507                            "description": "Number of samples attributed to the source line.",
1508                            "type": "integer"
1509                        }
1510                    ]
1511                },
1512                {
1513                    "id": "CoverageRange",
1514                    "description": "Coverage data for a source range.",
1515                    "type": "object",
1516                    "properties": [
1517                        {
1518                            "name": "startOffset",
1519                            "description": "JavaScript script source offset for the range start.",
1520                            "type": "integer"
1521                        },
1522                        {
1523                            "name": "endOffset",
1524                            "description": "JavaScript script source offset for the range end.",
1525                            "type": "integer"
1526                        },
1527                        {
1528                            "name": "count",
1529                            "description": "Collected execution count of the source range.",
1530                            "type": "integer"
1531                        }
1532                    ]
1533                },
1534                {
1535                    "id": "FunctionCoverage",
1536                    "description": "Coverage data for a JavaScript function.",
1537                    "type": "object",
1538                    "properties": [
1539                        {
1540                            "name": "functionName",
1541                            "description": "JavaScript function name.",
1542                            "type": "string"
1543                        },
1544                        {
1545                            "name": "ranges",
1546                            "description": "Source ranges inside the function with coverage data.",
1547                            "type": "array",
1548                            "items": {
1549                                "$ref": "CoverageRange"
1550                            }
1551                        },
1552                        {
1553                            "name": "isBlockCoverage",
1554                            "description": "Whether coverage data for this function has block granularity.",
1555                            "type": "boolean"
1556                        }
1557                    ]
1558                },
1559                {
1560                    "id": "ScriptCoverage",
1561                    "description": "Coverage data for a JavaScript script.",
1562                    "type": "object",
1563                    "properties": [
1564                        {
1565                            "name": "scriptId",
1566                            "description": "JavaScript script id.",
1567                            "$ref": "Runtime.ScriptId"
1568                        },
1569                        {
1570                            "name": "url",
1571                            "description": "JavaScript script name or url.",
1572                            "type": "string"
1573                        },
1574                        {
1575                            "name": "functions",
1576                            "description": "Functions contained in the script that has coverage data.",
1577                            "type": "array",
1578                            "items": {
1579                                "$ref": "FunctionCoverage"
1580                            }
1581                        }
1582                    ]
1583                },
1584                {
1585                    "id": "TypeObject",
1586                    "description": "Describes a type collected during runtime.",
1587                    "experimental": true,
1588                    "type": "object",
1589                    "properties": [
1590                        {
1591                            "name": "name",
1592                            "description": "Name of a type collected with type profiling.",
1593                            "type": "string"
1594                        }
1595                    ]
1596                },
1597                {
1598                    "id": "TypeProfileEntry",
1599                    "description": "Source offset and types for a parameter or return value.",
1600                    "experimental": true,
1601                    "type": "object",
1602                    "properties": [
1603                        {
1604                            "name": "offset",
1605                            "description": "Source offset of the parameter or end of function for return values.",
1606                            "type": "integer"
1607                        },
1608                        {
1609                            "name": "types",
1610                            "description": "The types for this parameter or return value.",
1611                            "type": "array",
1612                            "items": {
1613                                "$ref": "TypeObject"
1614                            }
1615                        }
1616                    ]
1617                },
1618                {
1619                    "id": "ScriptTypeProfile",
1620                    "description": "Type profile data collected during runtime for a JavaScript script.",
1621                    "experimental": true,
1622                    "type": "object",
1623                    "properties": [
1624                        {
1625                            "name": "scriptId",
1626                            "description": "JavaScript script id.",
1627                            "$ref": "Runtime.ScriptId"
1628                        },
1629                        {
1630                            "name": "url",
1631                            "description": "JavaScript script name or url.",
1632                            "type": "string"
1633                        },
1634                        {
1635                            "name": "entries",
1636                            "description": "Type profile entries for parameters and return values of the functions in the script.",
1637                            "type": "array",
1638                            "items": {
1639                                "$ref": "TypeProfileEntry"
1640                            }
1641                        }
1642                    ]
1643                }
1644            ],
1645            "commands": [
1646                {
1647                    "name": "disable"
1648                },
1649                {
1650                    "name": "enable"
1651                },
1652                {
1653                    "name": "getBestEffortCoverage",
1654                    "description": "Collect coverage data for the current isolate. The coverage data may be incomplete due to\ngarbage collection.",
1655                    "returns": [
1656                        {
1657                            "name": "result",
1658                            "description": "Coverage data for the current isolate.",
1659                            "type": "array",
1660                            "items": {
1661                                "$ref": "ScriptCoverage"
1662                            }
1663                        }
1664                    ]
1665                },
1666                {
1667                    "name": "setSamplingInterval",
1668                    "description": "Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.",
1669                    "parameters": [
1670                        {
1671                            "name": "interval",
1672                            "description": "New sampling interval in microseconds.",
1673                            "type": "integer"
1674                        }
1675                    ]
1676                },
1677                {
1678                    "name": "start"
1679                },
1680                {
1681                    "name": "startPreciseCoverage",
1682                    "description": "Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code\ncoverage may be incomplete. Enabling prevents running optimized code and resets execution\ncounters.",
1683                    "parameters": [
1684                        {
1685                            "name": "callCount",
1686                            "description": "Collect accurate call counts beyond simple 'covered' or 'not covered'.",
1687                            "optional": true,
1688                            "type": "boolean"
1689                        },
1690                        {
1691                            "name": "detailed",
1692                            "description": "Collect block-based coverage.",
1693                            "optional": true,
1694                            "type": "boolean"
1695                        }
1696                    ]
1697                },
1698                {
1699                    "name": "startTypeProfile",
1700                    "description": "Enable type profile.",
1701                    "experimental": true
1702                },
1703                {
1704                    "name": "stop",
1705                    "returns": [
1706                        {
1707                            "name": "profile",
1708                            "description": "Recorded profile.",
1709                            "$ref": "Profile"
1710                        }
1711                    ]
1712                },
1713                {
1714                    "name": "stopPreciseCoverage",
1715                    "description": "Disable precise code coverage. Disabling releases unnecessary execution count records and allows\nexecuting optimized code."
1716                },
1717                {
1718                    "name": "stopTypeProfile",
1719                    "description": "Disable type profile. Disabling releases type profile data collected so far.",
1720                    "experimental": true
1721                },
1722                {
1723                    "name": "takePreciseCoverage",
1724                    "description": "Collect coverage data for the current isolate, and resets execution counters. Precise code\ncoverage needs to have started.",
1725                    "returns": [
1726                        {
1727                            "name": "result",
1728                            "description": "Coverage data for the current isolate.",
1729                            "type": "array",
1730                            "items": {
1731                                "$ref": "ScriptCoverage"
1732                            }
1733                        }
1734                    ]
1735                },
1736                {
1737                    "name": "takeTypeProfile",
1738                    "description": "Collect type profile.",
1739                    "experimental": true,
1740                    "returns": [
1741                        {
1742                            "name": "result",
1743                            "description": "Type profile for all scripts since startTypeProfile() was turned on.",
1744                            "type": "array",
1745                            "items": {
1746                                "$ref": "ScriptTypeProfile"
1747                            }
1748                        }
1749                    ]
1750                }
1751            ],
1752            "events": [
1753                {
1754                    "name": "consoleProfileFinished",
1755                    "parameters": [
1756                        {
1757                            "name": "id",
1758                            "type": "string"
1759                        },
1760                        {
1761                            "name": "location",
1762                            "description": "Location of console.profileEnd().",
1763                            "$ref": "Debugger.Location"
1764                        },
1765                        {
1766                            "name": "profile",
1767                            "$ref": "Profile"
1768                        },
1769                        {
1770                            "name": "title",
1771                            "description": "Profile title passed as an argument to console.profile().",
1772                            "optional": true,
1773                            "type": "string"
1774                        }
1775                    ]
1776                },
1777                {
1778                    "name": "consoleProfileStarted",
1779                    "description": "Sent when new profile recording is started using console.profile() call.",
1780                    "parameters": [
1781                        {
1782                            "name": "id",
1783                            "type": "string"
1784                        },
1785                        {
1786                            "name": "location",
1787                            "description": "Location of console.profile().",
1788                            "$ref": "Debugger.Location"
1789                        },
1790                        {
1791                            "name": "title",
1792                            "description": "Profile title passed as an argument to console.profile().",
1793                            "optional": true,
1794                            "type": "string"
1795                        }
1796                    ]
1797                }
1798            ]
1799        },
1800        {
1801            "domain": "Runtime",
1802            "description": "Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects.\nEvaluation results are returned as mirror object that expose object type, string representation\nand unique identifier that can be used for further object reference. Original objects are\nmaintained in memory unless they are either explicitly released or are released along with the\nother objects in their object group.",
1803            "types": [
1804                {
1805                    "id": "ScriptId",
1806                    "description": "Unique script identifier.",
1807                    "type": "string"
1808                },
1809                {
1810                    "id": "RemoteObjectId",
1811                    "description": "Unique object identifier.",
1812                    "type": "string"
1813                },
1814                {
1815                    "id": "UnserializableValue",
1816                    "description": "Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`,\n`-Infinity`, and bigint literals.",
1817                    "type": "string"
1818                },
1819                {
1820                    "id": "RemoteObject",
1821                    "description": "Mirror object referencing original JavaScript object.",
1822                    "type": "object",
1823                    "properties": [
1824                        {
1825                            "name": "type",
1826                            "description": "Object type.",
1827                            "type": "string",
1828                            "enum": [
1829                                "object",
1830                                "function",
1831                                "undefined",
1832                                "string",
1833                                "number",
1834                                "boolean",
1835                                "symbol",
1836                                "bigint"
1837                            ]
1838                        },
1839                        {
1840                            "name": "subtype",
1841                            "description": "Object subtype hint. Specified for `object` type values only.",
1842                            "optional": true,
1843                            "type": "string",
1844                            "enum": [
1845                                "array",
1846                                "null",
1847                                "node",
1848                                "regexp",
1849                                "date",
1850                                "map",
1851                                "set",
1852                                "weakmap",
1853                                "weakset",
1854                                "iterator",
1855                                "generator",
1856                                "error",
1857                                "proxy",
1858                                "promise",
1859                                "typedarray"
1860                            ]
1861                        },
1862                        {
1863                            "name": "className",
1864                            "description": "Object class (constructor) name. Specified for `object` type values only.",
1865                            "optional": true,
1866                            "type": "string"
1867                        },
1868                        {
1869                            "name": "value",
1870                            "description": "Remote object value in case of primitive values or JSON values (if it was requested).",
1871                            "optional": true,
1872                            "type": "any"
1873                        },
1874                        {
1875                            "name": "unserializableValue",
1876                            "description": "Primitive value which can not be JSON-stringified does not have `value`, but gets this\nproperty.",
1877                            "optional": true,
1878                            "$ref": "UnserializableValue"
1879                        },
1880                        {
1881                            "name": "description",
1882                            "description": "String representation of the object.",
1883                            "optional": true,
1884                            "type": "string"
1885                        },
1886                        {
1887                            "name": "objectId",
1888                            "description": "Unique object identifier (for non-primitive values).",
1889                            "optional": true,
1890                            "$ref": "RemoteObjectId"
1891                        },
1892                        {
1893                            "name": "preview",
1894                            "description": "Preview containing abbreviated property values. Specified for `object` type values only.",
1895                            "experimental": true,
1896                            "optional": true,
1897                            "$ref": "ObjectPreview"
1898                        },
1899                        {
1900                            "name": "customPreview",
1901                            "experimental": true,
1902                            "optional": true,
1903                            "$ref": "CustomPreview"
1904                        }
1905                    ]
1906                },
1907                {
1908                    "id": "CustomPreview",
1909                    "experimental": true,
1910                    "type": "object",
1911                    "properties": [
1912                        {
1913                            "name": "header",
1914                            "type": "string"
1915                        },
1916                        {
1917                            "name": "hasBody",
1918                            "type": "boolean"
1919                        },
1920                        {
1921                            "name": "formatterObjectId",
1922                            "$ref": "RemoteObjectId"
1923                        },
1924                        {
1925                            "name": "bindRemoteObjectFunctionId",
1926                            "$ref": "RemoteObjectId"
1927                        },
1928                        {
1929                            "name": "configObjectId",
1930                            "optional": true,
1931                            "$ref": "RemoteObjectId"
1932                        }
1933                    ]
1934                },
1935                {
1936                    "id": "ObjectPreview",
1937                    "description": "Object containing abbreviated remote object value.",
1938                    "experimental": true,
1939                    "type": "object",
1940                    "properties": [
1941                        {
1942                            "name": "type",
1943                            "description": "Object type.",
1944                            "type": "string",
1945                            "enum": [
1946                                "object",
1947                                "function",
1948                                "undefined",
1949                                "string",
1950                                "number",
1951                                "boolean",
1952                                "symbol",
1953                                "bigint"
1954                            ]
1955                        },
1956                        {
1957                            "name": "subtype",
1958                            "description": "Object subtype hint. Specified for `object` type values only.",
1959                            "optional": true,
1960                            "type": "string",
1961                            "enum": [
1962                                "array",
1963                                "null",
1964                                "node",
1965                                "regexp",
1966                                "date",
1967                                "map",
1968                                "set",
1969                                "weakmap",
1970                                "weakset",
1971                                "iterator",
1972                                "generator",
1973                                "error"
1974                            ]
1975                        },
1976                        {
1977                            "name": "description",
1978                            "description": "String representation of the object.",
1979                            "optional": true,
1980                            "type": "string"
1981                        },
1982                        {
1983                            "name": "overflow",
1984                            "description": "True iff some of the properties or entries of the original object did not fit.",
1985                            "type": "boolean"
1986                        },
1987                        {
1988                            "name": "properties",
1989                            "description": "List of the properties.",
1990                            "type": "array",
1991                            "items": {
1992                                "$ref": "PropertyPreview"
1993                            }
1994                        },
1995                        {
1996                            "name": "entries",
1997                            "description": "List of the entries. Specified for `map` and `set` subtype values only.",
1998                            "optional": true,
1999                            "type": "array",
2000                            "items": {
2001                                "$ref": "EntryPreview"
2002                            }
2003                        }
2004                    ]
2005                },
2006                {
2007                    "id": "PropertyPreview",
2008                    "experimental": true,
2009                    "type": "object",
2010                    "properties": [
2011                        {
2012                            "name": "name",
2013                            "description": "Property name.",
2014                            "type": "string"
2015                        },
2016                        {
2017                            "name": "type",
2018                            "description": "Object type. Accessor means that the property itself is an accessor property.",
2019                            "type": "string",
2020                            "enum": [
2021                                "object",
2022                                "function",
2023                                "undefined",
2024                                "string",
2025                                "number",
2026                                "boolean",
2027                                "symbol",
2028                                "accessor",
2029                                "bigint"
2030                            ]
2031                        },
2032                        {
2033                            "name": "value",
2034                            "description": "User-friendly property value string.",
2035                            "optional": true,
2036                            "type": "string"
2037                        },
2038                        {
2039                            "name": "valuePreview",
2040                            "description": "Nested value preview.",
2041                            "optional": true,
2042                            "$ref": "ObjectPreview"
2043                        },
2044                        {
2045                            "name": "subtype",
2046                            "description": "Object subtype hint. Specified for `object` type values only.",
2047                            "optional": true,
2048                            "type": "string",
2049                            "enum": [
2050                                "array",
2051                                "null",
2052                                "node",
2053                                "regexp",
2054                                "date",
2055                                "map",
2056                                "set",
2057                                "weakmap",
2058                                "weakset",
2059                                "iterator",
2060                                "generator",
2061                                "error"
2062                            ]
2063                        }
2064                    ]
2065                },
2066                {
2067                    "id": "EntryPreview",
2068                    "experimental": true,
2069                    "type": "object",
2070                    "properties": [
2071                        {
2072                            "name": "key",
2073                            "description": "Preview of the key. Specified for map-like collection entries.",
2074                            "optional": true,
2075                            "$ref": "ObjectPreview"
2076                        },
2077                        {
2078                            "name": "value",
2079                            "description": "Preview of the value.",
2080                            "$ref": "ObjectPreview"
2081                        }
2082                    ]
2083                },
2084                {
2085                    "id": "PropertyDescriptor",
2086                    "description": "Object property descriptor.",
2087                    "type": "object",
2088                    "properties": [
2089                        {
2090                            "name": "name",
2091                            "description": "Property name or symbol description.",
2092                            "type": "string"
2093                        },
2094                        {
2095                            "name": "value",
2096                            "description": "The value associated with the property.",
2097                            "optional": true,
2098                            "$ref": "RemoteObject"
2099                        },
2100                        {
2101                            "name": "writable",
2102                            "description": "True if the value associated with the property may be changed (data descriptors only).",
2103                            "optional": true,
2104                            "type": "boolean"
2105                        },
2106                        {
2107                            "name": "get",
2108                            "description": "A function which serves as a getter for the property, or `undefined` if there is no getter\n(accessor descriptors only).",
2109                            "optional": true,
2110                            "$ref": "RemoteObject"
2111                        },
2112                        {
2113                            "name": "set",
2114                            "description": "A function which serves as a setter for the property, or `undefined` if there is no setter\n(accessor descriptors only).",
2115                            "optional": true,
2116                            "$ref": "RemoteObject"
2117                        },
2118                        {
2119                            "name": "configurable",
2120                            "description": "True if the type of this property descriptor may be changed and if the property may be\ndeleted from the corresponding object.",
2121                            "type": "boolean"
2122                        },
2123                        {
2124                            "name": "enumerable",
2125                            "description": "True if this property shows up during enumeration of the properties on the corresponding\nobject.",
2126                            "type": "boolean"
2127                        },
2128                        {
2129                            "name": "wasThrown",
2130                            "description": "True if the result was thrown during the evaluation.",
2131                            "optional": true,
2132                            "type": "boolean"
2133                        },
2134                        {
2135                            "name": "isOwn",
2136                            "description": "True if the property is owned for the object.",
2137                            "optional": true,
2138                            "type": "boolean"
2139                        },
2140                        {
2141                            "name": "symbol",
2142                            "description": "Property symbol object, if the property is of the `symbol` type.",
2143                            "optional": true,
2144                            "$ref": "RemoteObject"
2145                        }
2146                    ]
2147                },
2148                {
2149                    "id": "InternalPropertyDescriptor",
2150                    "description": "Object internal property descriptor. This property isn't normally visible in JavaScript code.",
2151                    "type": "object",
2152                    "properties": [
2153                        {
2154                            "name": "name",
2155                            "description": "Conventional property name.",
2156                            "type": "string"
2157                        },
2158                        {
2159                            "name": "value",
2160                            "description": "The value associated with the property.",
2161                            "optional": true,
2162                            "$ref": "RemoteObject"
2163                        }
2164                    ]
2165                },
2166                {
2167                    "id": "CallArgument",
2168                    "description": "Represents function call argument. Either remote object id `objectId`, primitive `value`,\nunserializable primitive value or neither of (for undefined) them should be specified.",
2169                    "type": "object",
2170                    "properties": [
2171                        {
2172                            "name": "value",
2173                            "description": "Primitive value or serializable javascript object.",
2174                            "optional": true,
2175                            "type": "any"
2176                        },
2177                        {
2178                            "name": "unserializableValue",
2179                            "description": "Primitive value which can not be JSON-stringified.",
2180                            "optional": true,
2181                            "$ref": "UnserializableValue"
2182                        },
2183                        {
2184                            "name": "objectId",
2185                            "description": "Remote object handle.",
2186                            "optional": true,
2187                            "$ref": "RemoteObjectId"
2188                        }
2189                    ]
2190                },
2191                {
2192                    "id": "ExecutionContextId",
2193                    "description": "Id of an execution context.",
2194                    "type": "integer"
2195                },
2196                {
2197                    "id": "ExecutionContextDescription",
2198                    "description": "Description of an isolated world.",
2199                    "type": "object",
2200                    "properties": [
2201                        {
2202                            "name": "id",
2203                            "description": "Unique id of the execution context. It can be used to specify in which execution context\nscript evaluation should be performed.",
2204                            "$ref": "ExecutionContextId"
2205                        },
2206                        {
2207                            "name": "origin",
2208                            "description": "Execution context origin.",
2209                            "type": "string"
2210                        },
2211                        {
2212                            "name": "name",
2213                            "description": "Human readable name describing given context.",
2214                            "type": "string"
2215                        },
2216                        {
2217                            "name": "auxData",
2218                            "description": "Embedder-specific auxiliary data.",
2219                            "optional": true,
2220                            "type": "object"
2221                        }
2222                    ]
2223                },
2224                {
2225                    "id": "ExceptionDetails",
2226                    "description": "Detailed information about exception (or error) that was thrown during script compilation or\nexecution.",
2227                    "type": "object",
2228                    "properties": [
2229                        {
2230                            "name": "exceptionId",
2231                            "description": "Exception id.",
2232                            "type": "integer"
2233                        },
2234                        {
2235                            "name": "text",
2236                            "description": "Exception text, which should be used together with exception object when available.",
2237                            "type": "string"
2238                        },
2239                        {
2240                            "name": "lineNumber",
2241                            "description": "Line number of the exception location (0-based).",
2242                            "type": "integer"
2243                        },
2244                        {
2245                            "name": "columnNumber",
2246                            "description": "Column number of the exception location (0-based).",
2247                            "type": "integer"
2248                        },
2249                        {
2250                            "name": "scriptId",
2251                            "description": "Script ID of the exception location.",
2252                            "optional": true,
2253                            "$ref": "ScriptId"
2254                        },
2255                        {
2256                            "name": "url",
2257                            "description": "URL of the exception location, to be used when the script was not reported.",
2258                            "optional": true,
2259                            "type": "string"
2260                        },
2261                        {
2262                            "name": "stackTrace",
2263                            "description": "JavaScript stack trace if available.",
2264                            "optional": true,
2265                            "$ref": "StackTrace"
2266                        },
2267                        {
2268                            "name": "exception",
2269                            "description": "Exception object if available.",
2270                            "optional": true,
2271                            "$ref": "RemoteObject"
2272                        },
2273                        {
2274                            "name": "executionContextId",
2275                            "description": "Identifier of the context where exception happened.",
2276                            "optional": true,
2277                            "$ref": "ExecutionContextId"
2278                        }
2279                    ]
2280                },
2281                {
2282                    "id": "Timestamp",
2283                    "description": "Number of milliseconds since epoch.",
2284                    "type": "number"
2285                },
2286                {
2287                    "id": "TimeDelta",
2288                    "description": "Number of milliseconds.",
2289                    "type": "number"
2290                },
2291                {
2292                    "id": "CallFrame",
2293                    "description": "Stack entry for runtime errors and assertions.",
2294                    "type": "object",
2295                    "properties": [
2296                        {
2297                            "name": "functionName",
2298                            "description": "JavaScript function name.",
2299                            "type": "string"
2300                        },
2301                        {
2302                            "name": "scriptId",
2303                            "description": "JavaScript script id.",
2304                            "$ref": "ScriptId"
2305                        },
2306                        {
2307                            "name": "url",
2308                            "description": "JavaScript script name or url.",
2309                            "type": "string"
2310                        },
2311                        {
2312                            "name": "lineNumber",
2313                            "description": "JavaScript script line number (0-based).",
2314                            "type": "integer"
2315                        },
2316                        {
2317                            "name": "columnNumber",
2318                            "description": "JavaScript script column number (0-based).",
2319                            "type": "integer"
2320                        }
2321                    ]
2322                },
2323                {
2324                    "id": "StackTrace",
2325                    "description": "Call frames for assertions or error messages.",
2326                    "type": "object",
2327                    "properties": [
2328                        {
2329                            "name": "description",
2330                            "description": "String label of this stack trace. For async traces this may be a name of the function that\ninitiated the async call.",
2331                            "optional": true,
2332                            "type": "string"
2333                        },
2334                        {
2335                            "name": "callFrames",
2336                            "description": "JavaScript function name.",
2337                            "type": "array",
2338                            "items": {
2339                                "$ref": "CallFrame"
2340                            }
2341                        },
2342                        {
2343                            "name": "parent",
2344                            "description": "Asynchronous JavaScript stack trace that preceded this stack, if available.",
2345                            "optional": true,
2346                            "$ref": "StackTrace"
2347                        },
2348                        {
2349                            "name": "parentId",
2350                            "description": "Asynchronous JavaScript stack trace that preceded this stack, if available.",
2351                            "experimental": true,
2352                            "optional": true,
2353                            "$ref": "StackTraceId"
2354                        }
2355                    ]
2356                },
2357                {
2358                    "id": "UniqueDebuggerId",
2359                    "description": "Unique identifier of current debugger.",
2360                    "experimental": true,
2361                    "type": "string"
2362                },
2363                {
2364                    "id": "StackTraceId",
2365                    "description": "If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This\nallows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages.",
2366                    "experimental": true,
2367                    "type": "object",
2368                    "properties": [
2369                        {
2370                            "name": "id",
2371                            "type": "string"
2372                        },
2373                        {
2374                            "name": "debuggerId",
2375                            "optional": true,
2376                            "$ref": "UniqueDebuggerId"
2377                        }
2378                    ]
2379                }
2380            ],
2381            "commands": [
2382                {
2383                    "name": "awaitPromise",
2384                    "description": "Add handler to promise with given promise object id.",
2385                    "parameters": [
2386                        {
2387                            "name": "promiseObjectId",
2388                            "description": "Identifier of the promise.",
2389                            "$ref": "RemoteObjectId"
2390                        },
2391                        {
2392                            "name": "returnByValue",
2393                            "description": "Whether the result is expected to be a JSON object that should be sent by value.",
2394                            "optional": true,
2395                            "type": "boolean"
2396                        },
2397                        {
2398                            "name": "generatePreview",
2399                            "description": "Whether preview should be generated for the result.",
2400                            "optional": true,
2401                            "type": "boolean"
2402                        }
2403                    ],
2404                    "returns": [
2405                        {
2406                            "name": "result",
2407                            "description": "Promise result. Will contain rejected value if promise was rejected.",
2408                            "$ref": "RemoteObject"
2409                        },
2410                        {
2411                            "name": "exceptionDetails",
2412                            "description": "Exception details if stack strace is available.",
2413                            "optional": true,
2414                            "$ref": "ExceptionDetails"
2415                        }
2416                    ]
2417                },
2418                {
2419                    "name": "callFunctionOn",
2420                    "description": "Calls function with given declaration on the given object. Object group of the result is\ninherited from the target object.",
2421                    "parameters": [
2422                        {
2423                            "name": "functionDeclaration",
2424                            "description": "Declaration of the function to call.",
2425                            "type": "string"
2426                        },
2427                        {
2428                            "name": "objectId",
2429                            "description": "Identifier of the object to call function on. Either objectId or executionContextId should\nbe specified.",
2430                            "optional": true,
2431                            "$ref": "RemoteObjectId"
2432                        },
2433                        {
2434                            "name": "arguments",
2435                            "description": "Call arguments. All call arguments must belong to the same JavaScript world as the target\nobject.",
2436                            "optional": true,
2437                            "type": "array",
2438                            "items": {
2439                                "$ref": "CallArgument"
2440                            }
2441                        },
2442                        {
2443                            "name": "silent",
2444                            "description": "In silent mode exceptions thrown during evaluation are not reported and do not pause\nexecution. Overrides `setPauseOnException` state.",
2445                            "optional": true,
2446                            "type": "boolean"
2447                        },
2448                        {
2449                            "name": "returnByValue",
2450                            "description": "Whether the result is expected to be a JSON object which should be sent by value.",
2451                            "optional": true,
2452                            "type": "boolean"
2453                        },
2454                        {
2455                            "name": "generatePreview",
2456                            "description": "Whether preview should be generated for the result.",
2457                            "experimental": true,
2458                            "optional": true,
2459                            "type": "boolean"
2460                        },
2461                        {
2462                            "name": "userGesture",
2463                            "description": "Whether execution should be treated as initiated by user in the UI.",
2464                            "optional": true,
2465                            "type": "boolean"
2466                        },
2467                        {
2468                            "name": "awaitPromise",
2469                            "description": "Whether execution should `await` for resulting value and return once awaited promise is\nresolved.",
2470                            "optional": true,
2471                            "type": "boolean"
2472                        },
2473                        {
2474                            "name": "executionContextId",
2475                            "description": "Specifies execution context which global object will be used to call function on. Either\nexecutionContextId or objectId should be specified.",
2476                            "optional": true,
2477                            "$ref": "ExecutionContextId"
2478                        },
2479                        {
2480                            "name": "objectGroup",
2481                            "description": "Symbolic group name that can be used to release multiple objects. If objectGroup is not\nspecified and objectId is, objectGroup will be inherited from object.",
2482                            "optional": true,
2483                            "type": "string"
2484                        }
2485                    ],
2486                    "returns": [
2487                        {
2488                            "name": "result",
2489                            "description": "Call result.",
2490                            "$ref": "RemoteObject"
2491                        },
2492                        {
2493                            "name": "exceptionDetails",
2494                            "description": "Exception details.",
2495                            "optional": true,
2496                            "$ref": "ExceptionDetails"
2497                        }
2498                    ]
2499                },
2500                {
2501                    "name": "compileScript",
2502                    "description": "Compiles expression.",
2503                    "parameters": [
2504                        {
2505                            "name": "expression",
2506                            "description": "Expression to compile.",
2507                            "type": "string"
2508                        },
2509                        {
2510                            "name": "sourceURL",
2511                            "description": "Source url to be set for the script.",
2512                            "type": "string"
2513                        },
2514                        {
2515                            "name": "persistScript",
2516                            "description": "Specifies whether the compiled script should be persisted.",
2517                            "type": "boolean"
2518                        },
2519                        {
2520                            "name": "executionContextId",
2521                            "description": "Specifies in which execution context to perform script run. If the parameter is omitted the\nevaluation will be performed in the context of the inspected page.",
2522                            "optional": true,
2523                            "$ref": "ExecutionContextId"
2524                        }
2525                    ],
2526                    "returns": [
2527                        {
2528                            "name": "scriptId",
2529                            "description": "Id of the script.",
2530                            "optional": true,
2531                            "$ref": "ScriptId"
2532                        },
2533                        {
2534                            "name": "exceptionDetails",
2535                            "description": "Exception details.",
2536                            "optional": true,
2537                            "$ref": "ExceptionDetails"
2538                        }
2539                    ]
2540                },
2541                {
2542                    "name": "disable",
2543                    "description": "Disables reporting of execution contexts creation."
2544                },
2545                {
2546                    "name": "discardConsoleEntries",
2547                    "description": "Discards collected exceptions and console API calls."
2548                },
2549                {
2550                    "name": "enable",
2551                    "description": "Enables reporting of execution contexts creation by means of `executionContextCreated` event.\nWhen the reporting gets enabled the event will be sent immediately for each existing execution\ncontext."
2552                },
2553                {
2554                    "name": "evaluate",
2555                    "description": "Evaluates expression on global object.",
2556                    "parameters": [
2557                        {
2558                            "name": "expression",
2559                            "description": "Expression to evaluate.",
2560                            "type": "string"
2561                        },
2562                        {
2563                            "name": "objectGroup",
2564                            "description": "Symbolic group name that can be used to release multiple objects.",
2565                            "optional": true,
2566                            "type": "string"
2567                        },
2568                        {
2569                            "name": "includeCommandLineAPI",
2570                            "description": "Determines whether Command Line API should be available during the evaluation.",
2571                            "optional": true,
2572                            "type": "boolean"
2573                        },
2574                        {
2575                            "name": "silent",
2576                            "description": "In silent mode exceptions thrown during evaluation are not reported and do not pause\nexecution. Overrides `setPauseOnException` state.",
2577                            "optional": true,
2578                            "type": "boolean"
2579                        },
2580                        {
2581                            "name": "contextId",
2582                            "description": "Specifies in which execution context to perform evaluation. If the parameter is omitted the\nevaluation will be performed in the context of the inspected page.",
2583                            "optional": true,
2584                            "$ref": "ExecutionContextId"
2585                        },
2586                        {
2587                            "name": "returnByValue",
2588                            "description": "Whether the result is expected to be a JSON object that should be sent by value.",
2589                            "optional": true,
2590                            "type": "boolean"
2591                        },
2592                        {
2593                            "name": "generatePreview",
2594                            "description": "Whether preview should be generated for the result.",
2595                            "experimental": true,
2596                            "optional": true,
2597                            "type": "boolean"
2598                        },
2599                        {
2600                            "name": "userGesture",
2601                            "description": "Whether execution should be treated as initiated by user in the UI.",
2602                            "optional": true,
2603                            "type": "boolean"
2604                        },
2605                        {
2606                            "name": "awaitPromise",
2607                            "description": "Whether execution should `await` for resulting value and return once awaited promise is\nresolved.",
2608                            "optional": true,
2609                            "type": "boolean"
2610                        },
2611                        {
2612                            "name": "throwOnSideEffect",
2613                            "description": "Whether to throw an exception if side effect cannot be ruled out during evaluation.",
2614                            "experimental": true,
2615                            "optional": true,
2616                            "type": "boolean"
2617                        },
2618                        {
2619                            "name": "timeout",
2620                            "description": "Terminate execution after timing out (number of milliseconds).",
2621                            "experimental": true,
2622                            "optional": true,
2623                            "$ref": "TimeDelta"
2624                        }
2625                    ],
2626                    "returns": [
2627                        {
2628                            "name": "result",
2629                            "description": "Evaluation result.",
2630                            "$ref": "RemoteObject"
2631                        },
2632                        {
2633                            "name": "exceptionDetails",
2634                            "description": "Exception details.",
2635                            "optional": true,
2636                            "$ref": "ExceptionDetails"
2637                        }
2638                    ]
2639                },
2640                {
2641                    "name": "getIsolateId",
2642                    "description": "Returns the isolate id.",
2643                    "experimental": true,
2644                    "returns": [
2645                        {
2646                            "name": "id",
2647                            "description": "The isolate id.",
2648                            "type": "string"
2649                        }
2650                    ]
2651                },
2652                {
2653                    "name": "getHeapUsage",
2654                    "description": "Returns the JavaScript heap usage.\nIt is the total usage of the corresponding isolate not scoped to a particular Runtime.",
2655                    "experimental": true,
2656                    "returns": [
2657                        {
2658                            "name": "usedSize",
2659                            "description": "Used heap size in bytes.",
2660                            "type": "number"
2661                        },
2662                        {
2663                            "name": "totalSize",
2664                            "description": "Allocated heap size in bytes.",
2665                            "type": "number"
2666                        }
2667                    ]
2668                },
2669                {
2670                    "name": "getProperties",
2671                    "description": "Returns properties of a given object. Object group of the result is inherited from the target\nobject.",
2672                    "parameters": [
2673                        {
2674                            "name": "objectId",
2675                            "description": "Identifier of the object to return properties for.",
2676                            "$ref": "RemoteObjectId"
2677                        },
2678                        {
2679                            "name": "ownProperties",
2680                            "description": "If true, returns properties belonging only to the element itself, not to its prototype\nchain.",
2681                            "optional": true,
2682                            "type": "boolean"
2683                        },
2684                        {
2685                            "name": "accessorPropertiesOnly",
2686                            "description": "If true, returns accessor properties (with getter/setter) only; internal properties are not\nreturned either.",
2687                            "experimental": true,
2688                            "optional": true,
2689                            "type": "boolean"
2690                        },
2691                        {
2692                            "name": "generatePreview",
2693                            "description": "Whether preview should be generated for the results.",
2694                            "experimental": true,
2695                            "optional": true,
2696                            "type": "boolean"
2697                        }
2698                    ],
2699                    "returns": [
2700                        {
2701                            "name": "result",
2702                            "description": "Object properties.",
2703                            "type": "array",
2704                            "items": {
2705                                "$ref": "PropertyDescriptor"
2706                            }
2707                        },
2708                        {
2709                            "name": "internalProperties",
2710                            "description": "Internal object properties (only of the element itself).",
2711                            "optional": true,
2712                            "type": "array",
2713                            "items": {
2714                                "$ref": "InternalPropertyDescriptor"
2715                            }
2716                        },
2717                        {
2718                            "name": "exceptionDetails",
2719                            "description": "Exception details.",
2720                            "optional": true,
2721                            "$ref": "ExceptionDetails"
2722                        }
2723                    ]
2724                },
2725                {
2726                    "name": "globalLexicalScopeNames",
2727                    "description": "Returns all let, const and class variables from global scope.",
2728                    "parameters": [
2729                        {
2730                            "name": "executionContextId",
2731                            "description": "Specifies in which execution context to lookup global scope variables.",
2732                            "optional": true,
2733                            "$ref": "ExecutionContextId"
2734                        }
2735                    ],
2736                    "returns": [
2737                        {
2738                            "name": "names",
2739                            "type": "array",
2740                            "items": {
2741                                "type": "string"
2742                            }
2743                        }
2744                    ]
2745                },
2746                {
2747                    "name": "queryObjects",
2748                    "parameters": [
2749                        {
2750                            "name": "prototypeObjectId",
2751                            "description": "Identifier of the prototype to return objects for.",
2752                            "$ref": "RemoteObjectId"
2753                        },
2754                        {
2755                            "name": "objectGroup",
2756                            "description": "Symbolic group name that can be used to release the results.",
2757                            "optional": true,
2758                            "type": "string"
2759                        }
2760                    ],
2761                    "returns": [
2762                        {
2763                            "name": "objects",
2764                            "description": "Array with objects.",
2765                            "$ref": "RemoteObject"
2766                        }
2767                    ]
2768                },
2769                {
2770                    "name": "releaseObject",
2771                    "description": "Releases remote object with given id.",
2772                    "parameters": [
2773                        {
2774                            "name": "objectId",
2775                            "description": "Identifier of the object to release.",
2776                            "$ref": "RemoteObjectId"
2777                        }
2778                    ]
2779                },
2780                {
2781                    "name": "releaseObjectGroup",
2782                    "description": "Releases all remote objects that belong to a given group.",
2783                    "parameters": [
2784                        {
2785                            "name": "objectGroup",
2786                            "description": "Symbolic object group name.",
2787                            "type": "string"
2788                        }
2789                    ]
2790                },
2791                {
2792                    "name": "runIfWaitingForDebugger",
2793                    "description": "Tells inspected instance to run if it was waiting for debugger to attach."
2794                },
2795                {
2796                    "name": "runScript",
2797                    "description": "Runs script with given id in a given context.",
2798                    "parameters": [
2799                        {
2800                            "name": "scriptId",
2801                            "description": "Id of the script to run.",
2802                            "$ref": "ScriptId"
2803                        },
2804                        {
2805                            "name": "executionContextId",
2806                            "description": "Specifies in which execution context to perform script run. If the parameter is omitted the\nevaluation will be performed in the context of the inspected page.",
2807                            "optional": true,
2808                            "$ref": "ExecutionContextId"
2809                        },
2810                        {
2811                            "name": "objectGroup",
2812                            "description": "Symbolic group name that can be used to release multiple objects.",
2813                            "optional": true,
2814                            "type": "string"
2815                        },
2816                        {
2817                            "name": "silent",
2818                            "description": "In silent mode exceptions thrown during evaluation are not reported and do not pause\nexecution. Overrides `setPauseOnException` state.",
2819                            "optional": true,
2820                            "type": "boolean"
2821                        },
2822                        {
2823                            "name": "includeCommandLineAPI",
2824                            "description": "Determines whether Command Line API should be available during the evaluation.",
2825                            "optional": true,
2826                            "type": "boolean"
2827                        },
2828                        {
2829                            "name": "returnByValue",
2830                            "description": "Whether the result is expected to be a JSON object which should be sent by value.",
2831                            "optional": true,
2832                            "type": "boolean"
2833                        },
2834                        {
2835                            "name": "generatePreview",
2836                            "description": "Whether preview should be generated for the result.",
2837                            "optional": true,
2838                            "type": "boolean"
2839                        },
2840                        {
2841                            "name": "awaitPromise",
2842                            "description": "Whether execution should `await` for resulting value and return once awaited promise is\nresolved.",
2843                            "optional": true,
2844                            "type": "boolean"
2845                        }
2846                    ],
2847                    "returns": [
2848                        {
2849                            "name": "result",
2850                            "description": "Run result.",
2851                            "$ref": "RemoteObject"
2852                        },
2853                        {
2854                            "name": "exceptionDetails",
2855                            "description": "Exception details.",
2856                            "optional": true,
2857                            "$ref": "ExceptionDetails"
2858                        }
2859                    ]
2860                },
2861                {
2862                    "name": "setAsyncCallStackDepth",
2863                    "description": "Enables or disables async call stacks tracking.",
2864                    "redirect": "Debugger",
2865                    "parameters": [
2866                        {
2867                            "name": "maxDepth",
2868                            "description": "Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async\ncall stacks (default).",
2869                            "type": "integer"
2870                        }
2871                    ]
2872                },
2873                {
2874                    "name": "setCustomObjectFormatterEnabled",
2875                    "experimental": true,
2876                    "parameters": [
2877                        {
2878                            "name": "enabled",
2879                            "type": "boolean"
2880                        }
2881                    ]
2882                },
2883                {
2884                    "name": "setMaxCallStackSizeToCapture",
2885                    "experimental": true,
2886                    "parameters": [
2887                        {
2888                            "name": "size",
2889                            "type": "integer"
2890                        }
2891                    ]
2892                },
2893                {
2894                    "name": "terminateExecution",
2895                    "description": "Terminate current or next JavaScript execution.\nWill cancel the termination when the outer-most script execution ends.",
2896                    "experimental": true
2897                },
2898                {
2899                    "name": "addBinding",
2900                    "description": "If executionContextId is empty, adds binding with the given name on the\nglobal objects of all inspected contexts, including those created later,\nbindings survive reloads.\nIf executionContextId is specified, adds binding only on global object of\ngiven execution context.\nBinding function takes exactly one argument, this argument should be string,\nin case of any other input, function throws an exception.\nEach binding function call produces Runtime.bindingCalled notification.",
2901                    "experimental": true,
2902                    "parameters": [
2903                        {
2904                            "name": "name",
2905                            "type": "string"
2906                        },
2907                        {
2908                            "name": "executionContextId",
2909                            "optional": true,
2910                            "$ref": "ExecutionContextId"
2911                        }
2912                    ]
2913                },
2914                {
2915                    "name": "removeBinding",
2916                    "description": "This method does not remove binding function from global object but\nunsubscribes current runtime agent from Runtime.bindingCalled notifications.",
2917                    "experimental": true,
2918                    "parameters": [
2919                        {
2920                            "name": "name",
2921                            "type": "string"
2922                        }
2923                    ]
2924                }
2925            ],
2926            "events": [
2927                {
2928                    "name": "bindingCalled",
2929                    "description": "Notification is issued every time when binding is called.",
2930                    "experimental": true,
2931                    "parameters": [
2932                        {
2933                            "name": "name",
2934                            "type": "string"
2935                        },
2936                        {
2937                            "name": "payload",
2938                            "type": "string"
2939                        },
2940                        {
2941                            "name": "executionContextId",
2942                            "description": "Identifier of the context where the call was made.",
2943                            "$ref": "ExecutionContextId"
2944                        }
2945                    ]
2946                },
2947                {
2948                    "name": "consoleAPICalled",
2949                    "description": "Issued when console API was called.",
2950                    "parameters": [
2951                        {
2952                            "name": "type",
2953                            "description": "Type of the call.",
2954                            "type": "string",
2955                            "enum": [
2956                                "log",
2957                                "debug",
2958                                "info",
2959                                "error",
2960                                "warning",
2961                                "dir",
2962                                "dirxml",
2963                                "table",
2964                                "trace",
2965                                "clear",
2966                                "startGroup",
2967                                "startGroupCollapsed",
2968                                "endGroup",
2969                                "assert",
2970                                "profile",
2971                                "profileEnd",
2972                                "count",
2973                                "timeEnd"
2974                            ]
2975                        },
2976                        {
2977                            "name": "args",
2978                            "description": "Call arguments.",
2979                            "type": "array",
2980                            "items": {
2981                                "$ref": "RemoteObject"
2982                            }
2983                        },
2984                        {
2985                            "name": "executionContextId",
2986                            "description": "Identifier of the context where the call was made.",
2987                            "$ref": "ExecutionContextId"
2988                        },
2989                        {
2990                            "name": "timestamp",
2991                            "description": "Call timestamp.",
2992                            "$ref": "Timestamp"
2993                        },
2994                        {
2995                            "name": "stackTrace",
2996                            "description": "Stack trace captured when the call was made.",
2997                            "optional": true,
2998                            "$ref": "StackTrace"
2999                        },
3000                        {
3001                            "name": "context",
3002                            "description": "Console context descriptor for calls on non-default console context (not console.*):\n'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call\non named context.",
3003                            "experimental": true,
3004                            "optional": true,
3005                            "type": "string"
3006                        }
3007                    ]
3008                },
3009                {
3010                    "name": "exceptionRevoked",
3011                    "description": "Issued when unhandled exception was revoked.",
3012                    "parameters": [
3013                        {
3014                            "name": "reason",
3015                            "description": "Reason describing why exception was revoked.",
3016                            "type": "string"
3017                        },
3018                        {
3019                            "name": "exceptionId",
3020                            "description": "The id of revoked exception, as reported in `exceptionThrown`.",
3021                            "type": "integer"
3022                        }
3023                    ]
3024                },
3025                {
3026                    "name": "exceptionThrown",
3027                    "description": "Issued when exception was thrown and unhandled.",
3028                    "parameters": [
3029                        {
3030                            "name": "timestamp",
3031                            "description": "Timestamp of the exception.",
3032                            "$ref": "Timestamp"
3033                        },
3034                        {
3035                            "name": "exceptionDetails",
3036                            "$ref": "ExceptionDetails"
3037                        }
3038                    ]
3039                },
3040                {
3041                    "name": "executionContextCreated",
3042                    "description": "Issued when new execution context is created.",
3043                    "parameters": [
3044                        {
3045                            "name": "context",
3046                            "description": "A newly created execution context.",
3047                            "$ref": "ExecutionContextDescription"
3048                        }
3049                    ]
3050                },
3051                {
3052                    "name": "executionContextDestroyed",
3053                    "description": "Issued when execution context is destroyed.",
3054                    "parameters": [
3055                        {
3056                            "name": "executionContextId",
3057                            "description": "Id of the destroyed context",
3058                            "$ref": "ExecutionContextId"
3059                        }
3060                    ]
3061                },
3062                {
3063                    "name": "executionContextsCleared",
3064                    "description": "Issued when all executionContexts were cleared in browser"
3065                },
3066                {
3067                    "name": "inspectRequested",
3068                    "description": "Issued when object should be inspected (for example, as a result of inspect() command line API\ncall).",
3069                    "parameters": [
3070                        {
3071                            "name": "object",
3072                            "$ref": "RemoteObject"
3073                        },
3074                        {
3075                            "name": "hints",
3076                            "type": "object"
3077                        }
3078                    ]
3079                }
3080            ]
3081        },
3082        {
3083            "domain": "Schema",
3084            "description": "This domain is deprecated.",
3085            "deprecated": true,
3086            "types": [
3087                {
3088                    "id": "Domain",
3089                    "description": "Description of the protocol domain.",
3090                    "type": "object",
3091                    "properties": [
3092                        {
3093                            "name": "name",
3094                            "description": "Domain name.",
3095                            "type": "string"
3096                        },
3097                        {
3098                            "name": "version",
3099                            "description": "Domain version.",
3100                            "type": "string"
3101                        }
3102                    ]
3103                }
3104            ],
3105            "commands": [
3106                {
3107                    "name": "getDomains",
3108                    "description": "Returns supported domains.",
3109                    "returns": [
3110                        {
3111                            "name": "domains",
3112                            "description": "List of supported domains.",
3113                            "type": "array",
3114                            "items": {
3115                                "$ref": "Domain"
3116                            }
3117                        }
3118                    ]
3119                }
3120            ]
3121        }
3122    ]
3123}