aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-inspector-protocol/src/protocol/jsc/protocol.json
blob: ed3bb67e67988c9bda25308ebd3489c380dc58da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
{
  "name": "JSC",
  "version": { "major": 1, "minor": 3 },
  "domains": [
    {
      "domain": "Console",
      "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console API</a>. One needs to enable this domain using <code>enable</code> command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using <code>messageAdded</code> notification upon enabling.",
      "debuggableTypes": ["itml", "javascript", "page", "service-worker", "web-page"],
      "targetTypes": ["itml", "javascript", "page", "service-worker", "worker"],
      "types": [
        {
          "id": "ChannelSource",
          "type": "string",
          "enum": [
            "xml",
            "javascript",
            "network",
            "console-api",
            "storage",
            "appcache",
            "rendering",
            "css",
            "security",
            "content-blocker",
            "media",
            "mediasource",
            "webrtc",
            "itp-debug",
            "private-click-measurement",
            "payment-request",
            "other"
          ],
          "description": "Channels for different types of log messages."
        },
        {
          "id": "ChannelLevel",
          "type": "string",
          "enum": ["off", "basic", "verbose"],
          "description": "Level of logging."
        },
        {
          "id": "ClearReason",
          "type": "string",
          "enum": ["console-api", "main-frame-navigation"],
          "description": "The reason the console is being cleared."
        },
        {
          "id": "Channel",
          "description": "Logging channel.",
          "type": "object",
          "properties": [
            { "name": "source", "$ref": "ChannelSource" },
            { "name": "level", "$ref": "ChannelLevel" }
          ]
        },
        {
          "id": "ConsoleMessage",
          "type": "object",
          "description": "Console message.",
          "properties": [
            { "name": "source", "$ref": "ChannelSource" },
            {
              "name": "level",
              "type": "string",
              "enum": ["log", "info", "warning", "error", "debug"],
              "description": "Message severity."
            },
            { "name": "text", "type": "string", "description": "Message text." },
            {
              "name": "type",
              "type": "string",
              "optional": true,
              "enum": [
                "log",
                "dir",
                "dirxml",
                "table",
                "trace",
                "clear",
                "startGroup",
                "startGroupCollapsed",
                "endGroup",
                "assert",
                "timing",
                "profile",
                "profileEnd",
                "image"
              ],
              "description": "Console message type."
            },
            { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },
            {
              "name": "line",
              "type": "integer",
              "optional": true,
              "description": "Line number in the resource that generated this message."
            },
            {
              "name": "column",
              "type": "integer",
              "optional": true,
              "description": "Column number on the line in the resource that generated this message."
            },
            {
              "name": "repeatCount",
              "type": "integer",
              "optional": true,
              "description": "Repeat count for repeated messages."
            },
            {
              "name": "parameters",
              "type": "array",
              "items": { "$ref": "Runtime.RemoteObject" },
              "optional": true,
              "description": "Message parameters in case of the formatted message."
            },
            {
              "name": "stackTrace",
              "$ref": "StackTrace",
              "optional": true,
              "description": "JavaScript stack trace for assertions and error messages."
            },
            {
              "name": "networkRequestId",
              "$ref": "Network.RequestId",
              "optional": true,
              "description": "Identifier of the network request associated with this message."
            },
            {
              "name": "timestamp",
              "type": "number",
              "optional": true,
              "description": "Time when this message was added. Currently only used when an expensive operation happens to make sure that the frontend can account for it."
            }
          ]
        },
        {
          "id": "CallFrame",
          "type": "object",
          "description": "Stack entry for console errors and assertions.",
          "properties": [
            { "name": "functionName", "type": "string", "description": "JavaScript function name." },
            { "name": "url", "type": "string", "description": "JavaScript script name or url." },
            { "name": "scriptId", "$ref": "Debugger.ScriptId", "description": "Script identifier." },
            { "name": "lineNumber", "type": "integer", "description": "JavaScript script line number." },
            { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
          ]
        },
        {
          "id": "StackTrace",
          "description": "Call frames for async function calls, console assertions, and error messages.",
          "type": "object",
          "properties": [
            { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" } },
            {
              "name": "topCallFrameIsBoundary",
              "type": "boolean",
              "optional": true,
              "description": "Whether the first item in <code>callFrames</code> is the native function that scheduled the asynchronous operation (e.g. setTimeout)."
            },
            {
              "name": "truncated",
              "type": "boolean",
              "optional": true,
              "description": "Whether one or more frames have been truncated from the bottom of the stack."
            },
            { "name": "parentStackTrace", "$ref": "StackTrace", "optional": true, "description": "Parent StackTrace." }
          ]
        }
      ],
      "commands": [
        {
          "name": "enable",
          "description": "Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification."
        },
        {
          "name": "disable",
          "description": "Disables console domain, prevents further console messages from being reported to the client."
        },
        { "name": "clearMessages", "description": "Clears console messages collected in the browser." },
        {
          "name": "getLoggingChannels",
          "description": "List of the different message sources that are non-default logging channels.",
          "returns": [
            { "name": "channels", "type": "array", "items": { "$ref": "Channel" }, "description": "Logging channels." }
          ]
        },
        {
          "name": "setLoggingChannelLevel",
          "description": "Modify the level of a channel.",
          "parameters": [
            { "name": "source", "$ref": "ChannelSource", "description": "Logging channel to modify." },
            { "name": "level", "$ref": "ChannelLevel", "description": "New level." }
          ]
        }
      ],
      "events": [
        {
          "name": "messageAdded",
          "description": "Issued when new console message is added.",
          "parameters": [
            { "name": "message", "$ref": "ConsoleMessage", "description": "Console message that has been added." }
          ]
        },
        {
          "name": "messageRepeatCountUpdated",
          "description": "Issued when subsequent message(s) are equal to the previous one(s).",
          "parameters": [
            { "name": "count", "type": "integer", "description": "New repeat count value." },
            {
              "name": "timestamp",
              "type": "number",
              "optional": true,
              "description": "Timestamp of the latest message."
            }
          ]
        },
        {
          "name": "messagesCleared",
          "description": "Issued when console is cleared. This happens either upon <code>clearMessages</code> command or after page navigation.",
          "parameters": [
            { "name": "reason", "$ref": "ClearReason", "description": "The reason the console is being cleared." }
          ]
        },
        {
          "name": "heapSnapshot",
          "description": "Issued from console.takeHeapSnapshot.",
          "parameters": [
            { "name": "timestamp", "type": "number" },
            {
              "name": "snapshotData",
              "$ref": "Heap.HeapSnapshotData",
              "description": "Snapshot at the end of tracking."
            },
            {
              "name": "title",
              "type": "string",
              "optional": true,
              "description": "Optional title provided to console.takeHeapSnapshot."
            }
          ]
        }
      ]
    },
    {
      "domain": "CPUProfiler",
      "description": "CPUProfiler domain exposes cpu usage tracking.",
      "condition": "defined(ENABLE_RESOURCE_USAGE) && ENABLE_RESOURCE_USAGE",
      "debuggableTypes": ["page", "web-page"],
      "targetTypes": ["page"],
      "types": [
        {
          "id": "ThreadInfo",
          "description": "CPU usage for an individual thread.",
          "type": "object",
          "properties": [
            { "name": "name", "type": "string", "description": "Some thread identification information." },
            {
              "name": "usage",
              "type": "number",
              "description": "CPU usage for this thread. This should not exceed 100% for an individual thread."
            },
            {
              "name": "type",
              "type": "string",
              "enum": ["main", "webkit"],
              "optional": true,
              "description": "Type of thread. There should be a single main thread."
            },
            {
              "name": "targetId",
              "type": "string",
              "optional": true,
              "description": "A thread may be associated with a target, such as a Worker, in the process."
            }
          ]
        },
        {
          "id": "Event",
          "type": "object",
          "properties": [
            { "name": "timestamp", "type": "number" },
            {
              "name": "usage",
              "type": "number",
              "description": "Percent of total cpu usage. If there are multiple cores the usage may be greater than 100%."
            },
            {
              "name": "threads",
              "type": "array",
              "items": { "$ref": "ThreadInfo" },
              "optional": true,
              "description": "Per-thread CPU usage information. Does not include the main thread."
            }
          ]
        }
      ],
      "commands": [
        { "name": "startTracking", "description": "Start tracking cpu usage." },
        {
          "name": "stopTracking",
          "description": "Stop tracking cpu usage. This will produce a `trackingComplete` event."
        }
      ],
      "events": [
        {
          "name": "trackingStart",
          "description": "Tracking started.",
          "parameters": [{ "name": "timestamp", "type": "number" }]
        },
        {
          "name": "trackingUpdate",
          "description": "Periodic tracking updates with event data.",
          "parameters": [{ "name": "event", "$ref": "Event" }]
        },
        {
          "name": "trackingComplete",
          "description": "Tracking stopped.",
          "parameters": [{ "name": "timestamp", "type": "number" }]
        }
      ]
    },
    {
      "domain": "Debugger",
      "description": "Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.",
      "debuggableTypes": ["itml", "javascript", "page", "service-worker", "web-page"],
      "targetTypes": ["itml", "javascript", "page", "service-worker", "worker"],
      "types": [
        { "id": "BreakpointId", "type": "string", "description": "Breakpoint identifier." },
        { "id": "BreakpointActionIdentifier", "type": "integer", "description": "Breakpoint action identifier." },
        { "id": "ScriptId", "type": "string", "description": "Unique script identifier." },
        { "id": "CallFrameId", "type": "string", "description": "Call frame identifier." },
        {
          "id": "Location",
          "type": "object",
          "description": "Location in the source code.",
          "properties": [
            {
              "name": "scriptId",
              "$ref": "ScriptId",
              "description": "Script identifier as reported in the <code>Debugger.scriptParsed</code>."
            },
            { "name": "lineNumber", "type": "integer", "description": "Line number in the script (0-based)." },
            {
              "name": "columnNumber",
              "type": "integer",
              "optional": true,
              "description": "Column number in the script (0-based)."
            }
          ]
        },
        {
          "id": "BreakpointAction",
          "type": "object",
          "description": "Action to perform when a breakpoint is triggered.",
          "properties": [
            {
              "name": "type",
              "type": "string",
              "enum": ["log", "evaluate", "sound", "probe"],
              "description": "Different kinds of breakpoint actions."
            },
            {
              "name": "data",
              "type": "string",
              "optional": true,
              "description": "Data associated with this breakpoint type (e.g. for type \"eval\" this is the JavaScript string to evaluate)."
            },
            {
              "name": "id",
              "$ref": "BreakpointActionIdentifier",
              "optional": true,
              "description": "A frontend-assigned identifier for this breakpoint action."
            },
            {
              "name": "emulateUserGesture",
              "type": "boolean",
              "optional": true,
              "description": "Indicates whether this action should be executed with a user gesture or not. Defaults to <code>false<code>."
            }
          ]
        },
        {
          "id": "BreakpointOptions",
          "type": "object",
          "description": "Extra options that modify breakpoint behavior.",
          "properties": [
            {
              "name": "condition",
              "type": "string",
              "optional": true,
              "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true."
            },
            {
              "name": "actions",
              "type": "array",
              "optional": true,
              "items": { "$ref": "BreakpointAction" },
              "description": "Actions to perform automatically when the breakpoint is triggered."
            },
            {
              "name": "autoContinue",
              "type": "boolean",
              "optional": true,
              "description": "Automatically continue after hitting this breakpoint and running actions."
            },
            {
              "name": "ignoreCount",
              "type": "integer",
              "optional": true,
              "description": "Number of times to ignore this breakpoint, before stopping on the breakpoint and running actions."
            }
          ]
        },
        {
          "id": "FunctionDetails",
          "type": "object",
          "description": "Information about the function.",
          "properties": [
            { "name": "location", "$ref": "Location", "description": "Location of the function." },
            {
              "name": "name",
              "type": "string",
              "optional": true,
              "description": "Name of the function. Not present for anonymous functions."
            },
            {
              "name": "displayName",
              "type": "string",
              "optional": true,
              "description": "Display name of the function(specified in 'displayName' property on the function object)."
            },
            {
              "name": "scopeChain",
              "type": "array",
              "optional": true,
              "items": { "$ref": "Scope" },
              "description": "Scope chain for this closure."
            }
          ]
        },
        {
          "id": "CallFrame",
          "type": "object",
          "description": "JavaScript call frame. Array of call frames form the call stack.",
          "properties": [
            {
              "name": "callFrameId",
              "$ref": "CallFrameId",
              "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused."
            },
            {
              "name": "functionName",
              "type": "string",
              "description": "Name of the JavaScript function called on this call frame."
            },
            { "name": "location", "$ref": "Location", "description": "Location in the source code." },
            {
              "name": "scopeChain",
              "type": "array",
              "items": { "$ref": "Scope" },
              "description": "Scope chain for this call frame."
            },
            {
              "name": "this",
              "$ref": "Runtime.RemoteObject",
              "description": "<code>this</code> object for this call frame."
            },
            {
              "name": "isTailDeleted",
              "type": "boolean",
              "description": "Is the current frame tail deleted from a tail call."
            }
          ]
        },
        {
          "id": "Scope",
          "type": "object",
          "description": "Scope description.",
          "properties": [
            {
              "name": "object",
              "$ref": "Runtime.RemoteObject",
              "description": "Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties."
            },
            {
              "name": "type",
              "type": "string",
              "enum": [
                "global",
                "with",
                "closure",
                "catch",
                "functionName",
                "globalLexicalEnvironment",
                "nestedLexical"
              ],
              "description": "Scope type."
            },
            { "name": "name", "type": "string", "optional": true, "description": "Name associated with the scope." },
            {
              "name": "location",
              "$ref": "Location",
              "optional": true,
              "description": "Location if available of the scope definition."
            },
            {
              "name": "empty",
              "type": "boolean",
              "optional": true,
              "description": "Whether the scope has any variables."
            }
          ]
        },
        {
          "id": "ProbeSample",
          "description": "A sample collected by evaluating a probe breakpoint action.",
          "type": "object",
          "properties": [
            {
              "name": "probeId",
              "$ref": "BreakpointActionIdentifier",
              "description": "Identifier of the probe breakpoint action that created the sample."
            },
            { "name": "sampleId", "type": "integer", "description": "Unique identifier for this sample." },
            {
              "name": "batchId",
              "type": "integer",
              "description": "A batch identifier which is the same for all samples taken at the same breakpoint hit."
            },
            { "name": "timestamp", "type": "number", "description": "Timestamp of when the sample was taken." },
            { "name": "payload", "$ref": "Runtime.RemoteObject", "description": "Contents of the sample." }
          ]
        },
        {
          "id": "AssertPauseReason",
          "type": "object",
          "description": "The pause reason auxiliary data when paused because of an assertion.",
          "properties": [
            {
              "name": "message",
              "type": "string",
              "optional": true,
              "description": "The console.assert message string if provided."
            }
          ]
        },
        {
          "id": "BreakpointPauseReason",
          "type": "object",
          "description": "The pause reason auxiliary data when paused because of hitting a breakpoint.",
          "properties": [
            {
              "name": "breakpointId",
              "type": "string",
              "description": "The identifier of the breakpoint causing the pause."
            }
          ]
        },
        {
          "id": "CSPViolationPauseReason",
          "type": "object",
          "description": "The pause reason auxiliary data when paused because of a Content Security Policy directive.",
          "properties": [
            { "name": "directive", "type": "string", "description": "The CSP directive that blocked script execution." }
          ]
        }
      ],
      "commands": [
        {
          "name": "enable",
          "description": "Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received."
        },
        { "name": "disable", "description": "Disables debugger for given page." },
        {
          "name": "setAsyncStackTraceDepth",
          "description": "Set the async stack trace depth for the page. A value of zero disables recording of async stack traces.",
          "parameters": [{ "name": "depth", "type": "integer", "description": "Async stack trace depth." }]
        },
        {
          "name": "setBreakpointsActive",
          "description": "Activates / deactivates all breakpoints on the page.",
          "parameters": [
            { "name": "active", "type": "boolean", "description": "New value for breakpoints active state." }
          ]
        },
        {
          "name": "setBreakpointByUrl",
          "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.",
          "parameters": [
            { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." },
            {
              "name": "url",
              "type": "string",
              "optional": true,
              "description": "URL of the resources to set breakpoint on."
            },
            {
              "name": "urlRegex",
              "type": "string",
              "optional": true,
              "description": "Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified."
            },
            {
              "name": "columnNumber",
              "type": "integer",
              "optional": true,
              "description": "Offset in the line to set breakpoint at."
            },
            {
              "name": "options",
              "$ref": "BreakpointOptions",
              "optional": true,
              "description": "Options to apply to this breakpoint to modify its behavior."
            }
          ],
          "returns": [
            {
              "name": "breakpointId",
              "$ref": "BreakpointId",
              "description": "Id of the created breakpoint for further reference."
            },
            {
              "name": "locations",
              "type": "array",
              "items": { "$ref": "Location" },
              "description": "List of the locations this breakpoint resolved into upon addition."
            }
          ]
        },
        {
          "name": "setBreakpoint",
          "description": "Sets JavaScript breakpoint at a given location.",
          "parameters": [
            { "name": "location", "$ref": "Location", "description": "Location to set breakpoint in." },
            {
              "name": "options",
              "$ref": "BreakpointOptions",
              "optional": true,
              "description": "Options to apply to this breakpoint to modify its behavior."
            }
          ],
          "returns": [
            {
              "name": "breakpointId",
              "$ref": "BreakpointId",
              "description": "Id of the created breakpoint for further reference."
            },
            { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." }
          ]
        },
        {
          "name": "removeBreakpoint",
          "description": "Removes JavaScript breakpoint.",
          "parameters": [{ "name": "breakpointId", "$ref": "BreakpointId" }]
        },
        {
          "name": "addSymbolicBreakpoint",
          "description": "Adds a JavaScript breakpoint that pauses execution whenever a function with the given name is about to be called.",
          "parameters": [
            { "name": "symbol", "type": "string", "description": "The name of the function to pause in when called." },
            {
              "name": "caseSensitive",
              "type": "boolean",
              "optional": true,
              "description": "If true, symbol is case sensitive. Defaults to true."
            },
            {
              "name": "isRegex",
              "type": "boolean",
              "optional": true,
              "description": "If true, treats symbol as a regex. Defaults to false."
            },
            {
              "name": "options",
              "$ref": "BreakpointOptions",
              "optional": true,
              "description": "Options to apply to this breakpoint to modify its behavior."
            }
          ]
        },
        {
          "name": "removeSymbolicBreakpoint",
          "description": "Removes a previously added symbolic breakpoint.",
          "parameters": [
            { "name": "symbol", "type": "string", "description": "The name of the function to pause in when called." },
            {
              "name": "caseSensitive",
              "type": "boolean",
              "optional": true,
              "description": "If true, symbol is case sensitive. Defaults to true."
            },
            {
              "name": "isRegex",
              "type": "boolean",
              "optional": true,
              "description": "If true, treats symbol as a regex. Defaults to false."
            }
          ]
        },
        {
          "name": "continueUntilNextRunLoop",
          "description": "Continues execution until the current evaluation completes. This will trigger either a Debugger.paused or Debugger.resumed event."
        },
        {
          "name": "continueToLocation",
          "description": "Continues execution until specific location is reached. This will trigger either a Debugger.paused or Debugger.resumed event.",
          "parameters": [{ "name": "location", "$ref": "Location", "description": "Location to continue to." }]
        },
        {
          "name": "stepNext",
          "description": "Steps over the expression. This will trigger either a Debugger.paused or Debugger.resumed event."
        },
        {
          "name": "stepOver",
          "description": "Steps over the statement. This will trigger either a Debugger.paused or Debugger.resumed event."
        },
        {
          "name": "stepInto",
          "description": "Steps into the function call. This will trigger either a Debugger.paused or Debugger.resumed event."
        },
        {
          "name": "stepOut",
          "description": "Steps out of the function call. This will trigger either a Debugger.paused or Debugger.resumed event."
        },
        { "name": "pause", "description": "Stops on the next JavaScript statement." },
        {
          "name": "resume",
          "description": "Resumes JavaScript execution. This will trigger a Debugger.resumed event."
        },
        {
          "name": "searchInContent",
          "description": "Searches for given string in script content.",
          "parameters": [
            { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to search in." },
            { "name": "query", "type": "string", "description": "String to search for." },
            {
              "name": "caseSensitive",
              "type": "boolean",
              "optional": true,
              "description": "If true, search is case sensitive."
            },
            {
              "name": "isRegex",
              "type": "boolean",
              "optional": true,
              "description": "If true, treats string parameter as regex."
            }
          ],
          "returns": [
            {
              "name": "result",
              "type": "array",
              "items": { "$ref": "GenericTypes.SearchMatch" },
              "description": "List of search matches."
            }
          ]
        },
        {
          "name": "getScriptSource",
          "description": "Returns source for the script with given id.",
          "parameters": [
            { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to get source for." }
          ],
          "returns": [{ "name": "scriptSource", "type": "string", "description": "Script source." }]
        },
        {
          "name": "getFunctionDetails",
          "description": "Returns detailed information on given function.",
          "parameters": [
            {
              "name": "functionId",
              "$ref": "Runtime.RemoteObjectId",
              "description": "Id of the function to get location for."
            }
          ],
          "returns": [
            { "name": "details", "$ref": "FunctionDetails", "description": "Information about the function." }
          ]
        },
        {
          "name": "getBreakpointLocations",
          "description": "Returns a list of valid breakpoint locations within the given location range.",
          "parameters": [
            {
              "name": "start",
              "$ref": "Location",
              "description": "Starting location to look for breakpoint locations after (inclusive). Must have same scriptId as end."
            },
            {
              "name": "end",
              "$ref": "Location",
              "description": "Ending location to look for breakpoint locations before (exclusive). Must have same scriptId as start."
            }
          ],
          "returns": [
            {
              "name": "locations",
              "type": "array",
              "items": { "$ref": "Location" },
              "description": "List of resolved breakpoint locations."
            }
          ]
        },
        {
          "name": "setPauseOnDebuggerStatements",
          "description": "Control whether the debugger pauses execution before `debugger` statements.",
          "parameters": [
            { "name": "enabled", "type": "boolean" },
            {
              "name": "options",
              "$ref": "BreakpointOptions",
              "optional": true,
              "description": "Options to apply to this breakpoint to modify its behavior."
            }
          ]
        },
        {
          "name": "setPauseOnExceptions",
          "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.",
          "parameters": [
            {
              "name": "state",
              "type": "string",
              "enum": ["none", "uncaught", "all"],
              "description": "Pause on exceptions mode."
            },
            {
              "name": "options",
              "$ref": "BreakpointOptions",
              "optional": true,
              "description": "Options to apply to this breakpoint to modify its behavior."
            }
          ]
        },
        {
          "name": "setPauseOnAssertions",
          "description": "Set pause on assertions state. Assertions are console.assert assertions.",
          "parameters": [
            { "name": "enabled", "type": "boolean" },
            {
              "name": "options",
              "$ref": "BreakpointOptions",
              "optional": true,
              "description": "Options to apply to this breakpoint to modify its behavior."
            }
          ]
        },
        {
          "name": "setPauseOnMicrotasks",
          "description": "Pause when running the next JavaScript microtask.",
          "parameters": [
            { "name": "enabled", "type": "boolean" },
            {
              "name": "options",
              "$ref": "BreakpointOptions",
              "optional": true,
              "description": "Options to apply to this breakpoint to modify its behavior."
            }
          ]
        },
        {
          "name": "setPauseForInternalScripts",
          "description": "Change whether to pause in the debugger for internal scripts. The default value is false.",
          "parameters": [{ "name": "shouldPause", "type": "boolean" }]
        },
        {
          "name": "evaluateOnCallFrame",
          "description": "Evaluates expression on a given call frame.",
          "parameters": [
            { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." },
            { "name": "expression", "type": "string", "description": "Expression to evaluate." },
            {
              "name": "objectGroup",
              "type": "string",
              "optional": true,
              "description": "String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>)."
            },
            {
              "name": "includeCommandLineAPI",
              "type": "boolean",
              "optional": true,
              "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false."
            },
            {
              "name": "doNotPauseOnExceptionsAndMuteConsole",
              "type": "boolean",
              "optional": true,
              "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state."
            },
            {
              "name": "returnByValue",
              "type": "boolean",
              "optional": true,
              "description": "Whether the result is expected to be a JSON object that should be sent by value."
            },
            {
              "name": "generatePreview",
              "type": "boolean",
              "optional": true,
              "description": "Whether preview should be generated for the result."
            },
            {
              "name": "saveResult",
              "type": "boolean",
              "optional": true,
              "description": "Whether the resulting value should be considered for saving in the $n history."
            },
            {
              "name": "emulateUserGesture",
              "type": "boolean",
              "optional": true,
              "description": "Whether the expression should be considered to be in a user gesture or not."
            }
          ],
          "returns": [
            {
              "name": "result",
              "$ref": "Runtime.RemoteObject",
              "description": "Object wrapper for the evaluation result."
            },
            {
              "name": "wasThrown",
              "type": "boolean",
              "optional": true,
              "description": "True if the result was thrown during the evaluation."
            },
            {
              "name": "savedResultIndex",
              "type": "integer",
              "optional": true,
              "description": "If the result was saved, this is the $n index that can be used to access the value."
            }
          ]
        },
        {
          "name": "setShouldBlackboxURL",
          "description": "Sets whether the given URL should be in the list of blackboxed scripts, which are ignored when pausing/stepping/debugging.",
          "parameters": [
            { "name": "url", "type": "string" },
            { "name": "shouldBlackbox", "type": "boolean" },
            {
              "name": "caseSensitive",
              "type": "boolean",
              "optional": true,
              "description": "If true, <code>url</code> is case sensitive."
            },
            {
              "name": "isRegex",
              "type": "boolean",
              "optional": true,
              "description": "If true, treat <code>url</code> as regular expression."
            }
          ]
        },
        {
          "name": "setBlackboxBreakpointEvaluations",
          "description": "Sets whether evaluation of breakpoint conditions, ignore counts, and actions happen at the location of the breakpoint or are deferred due to blackboxing.",
          "parameters": [{ "name": "blackboxBreakpointEvaluations", "type": "boolean" }]
        }
      ],
      "events": [
        {
          "name": "globalObjectCleared",
          "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload."
        },
        {
          "name": "scriptParsed",
          "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.",
          "parameters": [
            { "name": "scriptId", "$ref": "ScriptId", "description": "Identifier of the script parsed." },
            { "name": "url", "type": "string", "description": "URL of the script parsed (if any)." },
            {
              "name": "startLine",
              "type": "integer",
              "description": "Line offset of the script within the resource with given URL (for script tags)."
            },
            {
              "name": "startColumn",
              "type": "integer",
              "description": "Column offset of the script within the resource with given URL."
            },
            { "name": "endLine", "type": "integer", "description": "Last line of the script." },
            { "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." },
            {
              "name": "isContentScript",
              "type": "boolean",
              "optional": true,
              "description": "Determines whether this script is a user extension script."
            },
            {
              "name": "sourceURL",
              "type": "string",
              "optional": true,
              "description": "sourceURL name of the script (if any)."
            },
            {
              "name": "sourceMapURL",
              "type": "string",
              "optional": true,
              "description": "URL of source map associated with script (if any)."
            },
            {
              "name": "module",
              "type": "boolean",
              "optional": true,
              "description": "True if this script was parsed as a module."
            }
          ]
        },
        {
          "name": "scriptFailedToParse",
          "description": "Fired when virtual machine fails to parse the script.",
          "parameters": [
            { "name": "url", "type": "string", "description": "URL of the script that failed to parse." },
            {
              "name": "scriptSource",
              "type": "string",
              "description": "Source text of the script that failed to parse."
            },
            { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource." },
            { "name": "errorLine", "type": "integer", "description": "Line with error." },
            { "name": "errorMessage", "type": "string", "description": "Parse error message." }
          ]
        },
        {
          "name": "breakpointResolved",
          "description": "Fired when breakpoint is resolved to an actual script and location.",
          "parameters": [
            { "name": "breakpointId", "$ref": "BreakpointId", "description": "Breakpoint unique identifier." },
            { "name": "location", "$ref": "Location", "description": "Actual breakpoint location." }
          ]
        },
        {
          "name": "paused",
          "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.",
          "parameters": [
            {
              "name": "callFrames",
              "type": "array",
              "items": { "$ref": "CallFrame" },
              "description": "Call stack the virtual machine stopped on."
            },
            {
              "name": "reason",
              "type": "string",
              "enum": [
                "URL",
                "DOM",
                "AnimationFrame",
                "Interval",
                "Listener",
                "Timeout",
                "exception",
                "assert",
                "CSPViolation",
                "DebuggerStatement",
                "Breakpoint",
                "PauseOnNextStatement",
                "Microtask",
                "FunctionCall",
                "BlackboxedScript",
                "other"
              ],
              "description": "Pause reason."
            },
            {
              "name": "data",
              "type": "object",
              "optional": true,
              "description": "Object containing break-specific auxiliary properties."
            },
            {
              "name": "asyncStackTrace",
              "$ref": "Console.StackTrace",
              "optional": true,
              "description": "Linked list of asynchronous StackTraces."
            }
          ]
        },
        { "name": "resumed", "description": "Fired when the virtual machine resumed execution." },
        {
          "name": "didSampleProbe",
          "description": "Fires when a new probe sample is collected.",
          "parameters": [{ "name": "sample", "$ref": "ProbeSample", "description": "A collected probe sample." }]
        },
        {
          "name": "playBreakpointActionSound",
          "description": "Fired when a \"sound\" breakpoint action is triggered on a breakpoint.",
          "parameters": [
            {
              "name": "breakpointActionId",
              "$ref": "BreakpointActionIdentifier",
              "description": "Breakpoint action identifier."
            }
          ]
        }
      ]
    },
    {
      "domain": "GenericTypes",
      "description": "Exposes generic types to be used by any domain.",
      "types": [
        {
          "id": "SearchMatch",
          "type": "object",
          "description": "Search match in a resource.",
          "properties": [
            { "name": "lineNumber", "type": "number", "description": "Line number in resource content." },
            { "name": "lineContent", "type": "string", "description": "Line with match content." }
          ]
        }
      ]
    },
    {
      "domain": "Heap",
      "description": "Heap domain exposes JavaScript heap attributes and capabilities.",
      "debuggableTypes": ["itml", "javascript", "page", "service-worker", "web-page"],
      "targetTypes": ["itml", "javascript", "page", "service-worker", "worker"],
      "types": [
        {
          "id": "GarbageCollection",
          "description": "Information about a garbage collection.",
          "type": "object",
          "properties": [
            {
              "name": "type",
              "type": "string",
              "enum": ["full", "partial"],
              "description": "The type of garbage collection."
            },
            { "name": "startTime", "type": "number" },
            { "name": "endTime", "type": "number" }
          ]
        },
        { "id": "HeapSnapshotData", "description": "JavaScriptCore HeapSnapshot JSON data.", "type": "string" }
      ],
      "commands": [
        { "name": "enable", "description": "Enables Heap domain events." },
        { "name": "disable", "description": "Disables Heap domain events." },
        { "name": "gc", "description": "Trigger a full garbage collection." },
        {
          "name": "snapshot",
          "description": "Take a heap snapshot.",
          "returns": [
            { "name": "timestamp", "type": "number" },
            { "name": "snapshotData", "$ref": "HeapSnapshotData" }
          ]
        },
        {
          "name": "startTracking",
          "description": "Start tracking heap changes. This will produce a `trackingStart` event."
        },
        {
          "name": "stopTracking",
          "description": "Stop tracking heap changes. This will produce a `trackingComplete` event."
        },
        {
          "name": "getPreview",
          "description": "Returns a preview (string, Debugger.FunctionDetails, or Runtime.ObjectPreview) for a Heap.HeapObjectId.",
          "parameters": [
            {
              "name": "heapObjectId",
              "type": "integer",
              "description": "Identifier of the heap object within the snapshot."
            }
          ],
          "returns": [
            { "name": "string", "type": "string", "optional": true, "description": "String value." },
            {
              "name": "functionDetails",
              "$ref": "Debugger.FunctionDetails",
              "optional": true,
              "description": "Function details."
            },
            { "name": "preview", "$ref": "Runtime.ObjectPreview", "optional": true, "description": "Object preview." }
          ]
        },
        {
          "name": "getRemoteObject",
          "description": "Returns the strongly referenced Runtime.RemoteObject for a Heap.HeapObjectId.",
          "parameters": [
            {
              "name": "heapObjectId",
              "type": "integer",
              "description": "Identifier of the heap object within the snapshot."
            },
            {
              "name": "objectGroup",
              "type": "string",
              "optional": true,
              "description": "Symbolic group name that can be used to release multiple objects."
            }
          ],
          "returns": [{ "name": "result", "$ref": "Runtime.RemoteObject", "description": "Resulting object." }]
        }
      ],
      "events": [
        {
          "name": "garbageCollected",
          "description": "Information about the garbage collection.",
          "parameters": [{ "name": "collection", "$ref": "GarbageCollection" }]
        },
        {
          "name": "trackingStart",
          "description": "Tracking started.",
          "parameters": [
            { "name": "timestamp", "type": "number" },
            { "name": "snapshotData", "$ref": "HeapSnapshotData", "description": "Snapshot at the start of tracking." }
          ]
        },
        {
          "name": "trackingComplete",
          "description": "Tracking stopped.",
          "parameters": [
            { "name": "timestamp", "type": "number" },
            { "name": "snapshotData", "$ref": "HeapSnapshotData", "description": "Snapshot at the end of tracking." }
          ]
        }
      ]
    },
    {
      "domain": "Inspector",
      "debuggableTypes": ["itml", "javascript", "page", "web-page"],
      "targetTypes": ["itml", "javascript", "page"],
      "commands": [
        { "name": "enable", "description": "Enables inspector domain notifications." },
        { "name": "disable", "description": "Disables inspector domain notifications." },
        {
          "name": "initialized",
          "description": "Sent by the frontend after all initialization messages have been sent."
        }
      ],
      "events": [
        { "name": "evaluateForTestInFrontend", "parameters": [{ "name": "script", "type": "string" }] },
        {
          "name": "inspect",
          "parameters": [
            { "name": "object", "$ref": "Runtime.RemoteObject" },
            { "name": "hints", "type": "object" }
          ]
        }
      ]
    },
    {
      "domain": "Network",
      "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
      "debuggableTypes": ["itml", "page", "service-worker", "web-page"],
      "targetTypes": ["itml", "page", "service-worker"],
      "types": [
        { "id": "LoaderId", "type": "string", "description": "Unique loader identifier." },
        { "id": "FrameId", "type": "string", "description": "Unique frame identifier." },
        { "id": "RequestId", "type": "string", "description": "Unique request identifier." },
        { "id": "Timestamp", "type": "number", "description": "Elapsed seconds since frontend connected." },
        { "id": "Walltime", "type": "number", "description": "Number of seconds since epoch." },
        {
          "id": "ReferrerPolicy",
          "type": "string",
          "description": "Controls how much referrer information is sent with the request",
          "enum": [
            "empty-string",
            "no-referrer",
            "no-referrer-when-downgrade",
            "same-origin",
            "origin",
            "strict-origin",
            "origin-when-cross-origin",
            "strict-origin-when-cross-origin",
            "unsafe-url"
          ]
        },
        {
          "id": "Headers",
          "type": "object",
          "description": "Request / response headers as keys / values of JSON object."
        },
        {
          "id": "ResourceTiming",
          "type": "object",
          "description": "Timing information for the request.",
          "properties": [
            { "name": "startTime", "$ref": "Timestamp", "description": "Request is initiated" },
            { "name": "redirectStart", "$ref": "Timestamp", "description": "Started redirect resolution." },
            { "name": "redirectEnd", "$ref": "Timestamp", "description": "Finished redirect resolution." },
            { "name": "fetchStart", "$ref": "Timestamp", "description": "Resource fetching started." },
            {
              "name": "domainLookupStart",
              "type": "number",
              "description": "Started DNS address resolve in milliseconds relative to fetchStart."
            },
            {
              "name": "domainLookupEnd",
              "type": "number",
              "description": "Finished DNS address resolve in milliseconds relative to fetchStart."
            },
            {
              "name": "connectStart",
              "type": "number",
              "description": "Started connecting to the remote host in milliseconds relative to fetchStart."
            },
            {
              "name": "connectEnd",
              "type": "number",
              "description": "Connected to the remote host in milliseconds relative to fetchStart."
            },
            {
              "name": "secureConnectionStart",
              "type": "number",
              "description": "Started SSL handshake in milliseconds relative to fetchStart."
            },
            {
              "name": "requestStart",
              "type": "number",
              "description": "Started sending request in milliseconds relative to fetchStart."
            },
            {
              "name": "responseStart",
              "type": "number",
              "description": "Started receiving response headers in milliseconds relative to fetchStart."
            },
            {
              "name": "responseEnd",
              "type": "number",
              "description": "Finished receiving response headers in milliseconds relative to fetchStart."
            }
          ]
        },
        {
          "id": "Request",
          "type": "object",
          "description": "HTTP request data.",
          "properties": [
            { "name": "url", "type": "string", "description": "Request URL." },
            { "name": "method", "type": "string", "description": "HTTP request method." },
            { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." },
            { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." },
            {
              "name": "referrerPolicy",
              "$ref": "ReferrerPolicy",
              "optional": true,
              "description": "The level of included referrer information."
            },
            {
              "name": "integrity",
              "type": "string",
              "optional": true,
              "description": "The base64 cryptographic hash of the resource."
            }
          ]
        },
        {
          "id": "Response",
          "type": "object",
          "description": "HTTP response data.",
          "properties": [
            {
              "name": "url",
              "type": "string",
              "description": "Response URL. This URL can be different from CachedResource.url in case of redirect."
            },
            { "name": "status", "type": "integer", "description": "HTTP response status code." },
            { "name": "statusText", "type": "string", "description": "HTTP response status text." },
            { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." },
            { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
            {
              "name": "source",
              "type": "string",
              "enum": ["unknown", "network", "memory-cache", "disk-cache", "service-worker", "inspector-override"],
              "description": "Specifies where the response came from."
            },
            {
              "name": "requestHeaders",
              "$ref": "Headers",
              "optional": true,
              "description": "Refined HTTP request headers that were actually transmitted over the network."
            },
            {
              "name": "timing",
              "$ref": "ResourceTiming",
              "optional": true,
              "description": "Timing information for the given request."
            },
            {
              "name": "security",
              "$ref": "Security.Security",
              "optional": true,
              "description": "The security information for the given request."
            }
          ]
        },
        {
          "id": "Metrics",
          "type": "object",
          "description": "Network load metrics.",
          "properties": [
            {
              "name": "protocol",
              "type": "string",
              "optional": true,
              "description": "Network protocol. ALPN Protocol ID Identification Sequence, as per RFC 7301 (for example, http/2, http/1.1, spdy/3.1)"
            },
            {
              "name": "priority",
              "type": "string",
              "enum": ["low", "medium", "high"],
              "optional": true,
              "description": "Network priority."
            },
            {
              "name": "connectionIdentifier",
              "type": "string",
              "optional": true,
              "description": "Connection identifier."
            },
            { "name": "remoteAddress", "type": "string", "optional": true, "description": "Remote IP address." },
            {
              "name": "requestHeaders",
              "$ref": "Headers",
              "optional": true,
              "description": "Refined HTTP request headers that were actually transmitted over the network."
            },
            {
              "name": "requestHeaderBytesSent",
              "type": "number",
              "optional": true,
              "description": "Total HTTP request header bytes sent over the network."
            },
            {
              "name": "requestBodyBytesSent",
              "type": "number",
              "optional": true,
              "description": "Total HTTP request body bytes sent over the network."
            },
            {
              "name": "responseHeaderBytesReceived",
              "type": "number",
              "optional": true,
              "description": "Total HTTP response header bytes received over the network."
            },
            {
              "name": "responseBodyBytesReceived",
              "type": "number",
              "optional": true,
              "description": "Total HTTP response body bytes received over the network."
            },
            {
              "name": "responseBodyDecodedSize",
              "type": "number",
              "optional": true,
              "description": "Total decoded response body size in bytes."
            },
            {
              "name": "securityConnection",
              "$ref": "Security.Connection",
              "optional": true,
              "description": "Connection information for the completed request."
            },
            {
              "name": "isProxyConnection",
              "type": "boolean",
              "optional": true,
              "description": "Whether or not the connection was proxied through a server. If <code>true</code>, the <code>remoteAddress</code> will be for the proxy server, not the server that provided the resource to the proxy server."
            }
          ]
        },
        {
          "id": "WebSocketRequest",
          "type": "object",
          "description": "WebSocket request data.",
          "properties": [{ "name": "headers", "$ref": "Headers", "description": "HTTP response headers." }]
        },
        {
          "id": "WebSocketResponse",
          "type": "object",
          "description": "WebSocket response data.",
          "properties": [
            { "name": "status", "type": "integer", "description": "HTTP response status code." },
            { "name": "statusText", "type": "string", "description": "HTTP response status text." },
            { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." }
          ]
        },
        {
          "id": "WebSocketFrame",
          "type": "object",
          "description": "WebSocket frame data.",
          "properties": [
            { "name": "opcode", "type": "number", "description": "WebSocket frame opcode." },
            { "name": "mask", "type": "boolean", "description": "WebSocket frame mask." },
            {
              "name": "payloadData",
              "type": "string",
              "description": "WebSocket frame payload data, binary frames (opcode = 2) are base64-encoded."
            },
            { "name": "payloadLength", "type": "number", "description": "WebSocket frame payload length in bytes." }
          ]
        },
        {
          "id": "CachedResource",
          "type": "object",
          "description": "Information about the cached resource.",
          "properties": [
            {
              "name": "url",
              "type": "string",
              "description": "Resource URL. This is the url of the original network request."
            },
            { "name": "type", "$ref": "Page.ResourceType", "description": "Type of this resource." },
            { "name": "response", "$ref": "Response", "optional": true, "description": "Cached response data." },
            { "name": "bodySize", "type": "number", "description": "Cached response body size." },
            {
              "name": "sourceMapURL",
              "type": "string",
              "optional": true,
              "description": "URL of source map associated with this resource (if any)."
            }
          ]
        },
        {
          "id": "Initiator",
          "type": "object",
          "description": "Information about the request initiator.",
          "properties": [
            {
              "name": "type",
              "type": "string",
              "enum": ["parser", "script", "other"],
              "description": "Type of this initiator."
            },
            {
              "name": "stackTrace",
              "$ref": "Console.StackTrace",
              "optional": true,
              "description": "Initiator JavaScript stack trace, set for Script only."
            },
            {
              "name": "url",
              "type": "string",
              "optional": true,
              "description": "Initiator URL, set for Parser type only."
            },
            {
              "name": "lineNumber",
              "type": "number",
              "optional": true,
              "description": "Initiator line number, set for Parser type only."
            },
            {
              "name": "nodeId",
              "$ref": "DOM.NodeId",
              "optional": true,
              "description": "Set if the load was triggered by a DOM node, in addition to the other initiator information."
            }
          ]
        },
        {
          "id": "NetworkStage",
          "type": "string",
          "description": "Different stages of a network request.",
          "enum": ["request", "response"]
        },
        {
          "id": "ResourceErrorType",
          "type": "string",
          "description": "Different stages of a network request.",
          "enum": ["General", "AccessControl", "Cancellation", "Timeout"]
        }
      ],
      "commands": [
        {
          "name": "enable",
          "description": "Enables network tracking, network events will now be delivered to the client."
        },
        {
          "name": "disable",
          "description": "Disables network tracking, prevents network events from being sent to the client."
        },
        {
          "name": "setExtraHTTPHeaders",
          "description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
          "targetTypes": ["page"],
          "parameters": [{ "name": "headers", "$ref": "Headers", "description": "Map with extra HTTP headers." }]
        },
        {
          "name": "getResponseBody",
          "description": "Returns content served for the given request.",
          "parameters": [
            {
              "name": "requestId",
              "$ref": "RequestId",
              "description": "Identifier of the network request to get content for."
            }
          ],
          "returns": [
            { "name": "body", "type": "string", "description": "Response body." },
            { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." }
          ]
        },
        {
          "name": "setResourceCachingDisabled",
          "description": "Toggles whether the resource cache may be used when loading resources in the inspected page. If <code>true</code>, the resource cache will not be used when loading resources.",
          "parameters": [
            { "name": "disabled", "type": "boolean", "description": "Whether to prevent usage of the resource cache." }
          ]
        },
        {
          "name": "loadResource",
          "description": "Loads a resource in the context of a frame on the inspected page without cross origin checks.",
          "targetTypes": ["page"],
          "async": true,
          "parameters": [
            { "name": "frameId", "$ref": "FrameId", "description": "Frame to load the resource from." },
            { "name": "url", "type": "string", "description": "URL of the resource to load." }
          ],
          "returns": [
            { "name": "content", "type": "string", "description": "Resource content." },
            { "name": "mimeType", "type": "string", "description": "Resource mimeType." },
            { "name": "status", "type": "integer", "description": "HTTP response status code." }
          ]
        },
        {
          "name": "getSerializedCertificate",
          "description": "Fetches a serialized secure certificate for the given requestId to be displayed via InspectorFrontendHost.showCertificate.",
          "targetTypes": ["page"],
          "parameters": [{ "name": "requestId", "$ref": "RequestId" }],
          "returns": [
            {
              "name": "serializedCertificate",
              "type": "string",
              "description": "Represents a base64 encoded WebCore::CertificateInfo object."
            }
          ]
        },
        {
          "name": "resolveWebSocket",
          "description": "Resolves JavaScript WebSocket object for given request id.",
          "targetTypes": ["page"],
          "parameters": [
            {
              "name": "requestId",
              "$ref": "RequestId",
              "description": "Identifier of the WebSocket resource to resolve."
            },
            {
              "name": "objectGroup",
              "type": "string",
              "optional": true,
              "description": "Symbolic group name that can be used to release multiple objects."
            }
          ],
          "returns": [
            {
              "name": "object",
              "$ref": "Runtime.RemoteObject",
              "description": "JavaScript object wrapper for given node."
            }
          ]
        },
        {
          "name": "setInterceptionEnabled",
          "description": "Enable interception of network requests.",
          "targetTypes": ["page"],
          "parameters": [{ "name": "enabled", "type": "boolean" }]
        },
        {
          "name": "addInterception",
          "description": "Add an interception.",
          "targetTypes": ["page"],
          "parameters": [
            {
              "name": "url",
              "type": "string",
              "description": "URL pattern to intercept, intercept everything if not specified or empty"
            },
            { "name": "stage", "$ref": "NetworkStage", "description": "Stage to intercept." },
            {
              "name": "caseSensitive",
              "type": "boolean",
              "optional": true,
              "description": "If false, ignores letter casing of `url` parameter."
            },
            {
              "name": "isRegex",
              "type": "boolean",
              "optional": true,
              "description": "If true, treats `url` parameter as a regular expression."
            }
          ]
        },
        {
          "name": "removeInterception",
          "description": "Remove an interception.",
          "targetTypes": ["page"],
          "parameters": [
            { "name": "url", "type": "string" },
            { "name": "stage", "$ref": "NetworkStage", "description": "Stage to intercept." },
            {
              "name": "caseSensitive",
              "type": "boolean",
              "optional": true,
              "description": "If false, ignores letter casing of `url` parameter."
            },
            {
              "name": "isRegex",
              "type": "boolean",
              "optional": true,
              "description": "If true, treats `url` parameter as a regular expression."
            }
          ]
        },
        {
          "name": "interceptContinue",
          "description": "Continue request or response without modifications.",
          "targetTypes": ["page"],
          "parameters": [
            {
              "name": "requestId",
              "$ref": "RequestId",
              "description": "Identifier for the intercepted Network request or response to continue."
            },
            { "name": "stage", "$ref": "NetworkStage", "description": "Stage to continue." }
          ]
        },
        {
          "name": "interceptWithRequest",
          "description": "Replace intercepted request with the provided one.",
          "targetTypes": ["page"],
          "parameters": [
            {
              "name": "requestId",
              "$ref": "RequestId",
              "description": "Identifier for the intercepted Network request or response to continue."
            },
            { "name": "url", "type": "string", "optional": true, "description": "HTTP request url." },
            { "name": "method", "type": "string", "optional": true, "description": "HTTP request method." },
            {
              "name": "headers",
              "$ref": "Headers",
              "optional": true,
              "description": "HTTP response headers. Pass through original values if unmodified."
            },
            {
              "name": "postData",
              "type": "string",
              "optional": true,
              "description": "HTTP POST request data, base64-encoded."
            }
          ]
        },
        {
          "name": "interceptWithResponse",
          "description": "Provide response content for an intercepted response.",
          "targetTypes": ["page"],
          "parameters": [
            {
              "name": "requestId",
              "$ref": "RequestId",
              "description": "Identifier for the intercepted Network response to modify."
            },
            { "name": "content", "type": "string" },
            { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." },
            { "name": "mimeType", "type": "string", "optional": true, "description": "MIME Type for the data." },
            {
              "name": "status",
              "type": "integer",
              "optional": true,
              "description": "HTTP response status code. Pass through original values if unmodified."
            },
            {
              "name": "statusText",
              "type": "string",
              "optional": true,
              "description": "HTTP response status text. Pass through original values if unmodified."
            },
            {
              "name": "headers",
              "$ref": "Headers",
              "optional": true,
              "description": "HTTP response headers. Pass through original values if unmodified."
            }
          ]
        },
        {
          "name": "interceptRequestWithResponse",
          "description": "Provide response for an intercepted request. Request completely bypasses the network in this case and is immediately fulfilled with the provided data.",
          "targetTypes": ["page"],
          "parameters": [
            {
              "name": "requestId",
              "$ref": "RequestId",
              "description": "Identifier for the intercepted Network response to modify."
            },
            { "name": "content", "type": "string" },
            { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." },
            { "name": "mimeType", "type": "string", "description": "MIME Type for the data." },
            { "name": "status", "type": "integer", "description": "HTTP response status code." },
            { "name": "statusText", "type": "string", "description": "HTTP response status text." },
            { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." }
          ]
        },
        {
          "name": "interceptRequestWithError",
          "description": "Fail request with given error type.",
          "targetTypes": ["page"],
          "parameters": [
            {
              "name": "requestId",
              "$ref": "RequestId",
              "description": "Identifier for the intercepted Network request to fail."
            },
            {
              "name": "errorType",
              "$ref": "ResourceErrorType",
              "description": "Deliver error reason for the request failure."
            }
          ]
        },
        {
          "name": "setEmulatedConditions",
          "description": "Emulate various network conditions (e.g. bytes per second, latency, etc.).",
          "targetTypes": ["page"],
          "condition": "defined(ENABLE_INSPECTOR_NETWORK_THROTTLING) && ENABLE_INSPECTOR_NETWORK_THROTTLING",
          "parameters": [
            {
              "name": "bytesPerSecondLimit",
              "type": "integer",
              "optional": true,
              "description": "Limits the bytes per second of requests if positive. Removes any limits if zero or not provided."
            }
          ]
        }
      ],
      "events": [
        {
          "name": "requestWillBeSent",
          "description": "Fired when page is about to send HTTP request.",
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier." },
            { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
            {
              "name": "documentURL",
              "type": "string",
              "description": "URL of the document this request is loaded for."
            },
            { "name": "request", "$ref": "Request", "description": "Request data." },
            { "name": "timestamp", "$ref": "Timestamp" },
            { "name": "walltime", "$ref": "Walltime" },
            { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
            {
              "name": "redirectResponse",
              "optional": true,
              "$ref": "Response",
              "description": "Redirect response data."
            },
            { "name": "type", "$ref": "Page.ResourceType", "optional": true, "description": "Resource type." },
            {
              "name": "targetId",
              "type": "string",
              "optional": true,
              "description": "Identifier for the context of where the load originated. In general this is the target identifier. For Workers this will be the workerId."
            }
          ]
        },
        {
          "name": "responseReceived",
          "description": "Fired when HTTP response is available.",
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier." },
            { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
            { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
            { "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." },
            { "name": "response", "$ref": "Response", "description": "Response data." }
          ]
        },
        {
          "name": "dataReceived",
          "description": "Fired when data chunk was received over the network.",
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
            { "name": "dataLength", "type": "integer", "description": "Data chunk length." },
            {
              "name": "encodedDataLength",
              "type": "integer",
              "description": "Actual bytes received (might be less than dataLength for compressed encodings)."
            }
          ]
        },
        {
          "name": "loadingFinished",
          "description": "Fired when HTTP request has finished loading.",
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
            {
              "name": "sourceMapURL",
              "type": "string",
              "optional": true,
              "description": "URL of source map associated with this resource (if any)."
            },
            { "name": "metrics", "$ref": "Metrics", "optional": true, "description": "Network metrics." }
          ]
        },
        {
          "name": "loadingFailed",
          "description": "Fired when HTTP request has failed to load.",
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
            { "name": "errorText", "type": "string", "description": "User friendly error message." },
            { "name": "canceled", "type": "boolean", "optional": true, "description": "True if loading was canceled." }
          ]
        },
        {
          "name": "requestServedFromMemoryCache",
          "description": "Fired when HTTP request has been served from memory cache.",
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier." },
            { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
            {
              "name": "documentURL",
              "type": "string",
              "description": "URL of the document this request is loaded for."
            },
            { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
            { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
            { "name": "resource", "$ref": "CachedResource", "description": "Cached resource data." }
          ]
        },
        {
          "name": "requestIntercepted",
          "description": "Fired when HTTP request has been intercepted. The frontend must respond with <code>Network.interceptContinue</code>, <code>Network.interceptWithRequest</code>` or <code>Network.interceptWithResponse</code>` to resolve this request.",
          "targetTypes": ["page"],
          "parameters": [
            {
              "name": "requestId",
              "$ref": "RequestId",
              "description": "Identifier for this intercepted network. Corresponds with an earlier <code>Network.requestWillBeSent</code>."
            },
            {
              "name": "request",
              "$ref": "Request",
              "description": "Original request content that would proceed if this is continued."
            }
          ]
        },
        {
          "name": "responseIntercepted",
          "description": "Fired when HTTP response has been intercepted. The frontend must response with <code>Network.interceptContinue</code> or <code>Network.interceptWithResponse</code>` to continue this response.",
          "targetTypes": ["page"],
          "parameters": [
            {
              "name": "requestId",
              "$ref": "RequestId",
              "description": "Identifier for this intercepted network. Corresponds with an earlier <code>Network.requestWillBeSent</code>."
            },
            {
              "name": "response",
              "$ref": "Response",
              "description": "Original response content that would proceed if this is continued."
            }
          ]
        },
        {
          "name": "webSocketWillSendHandshakeRequest",
          "description": "Fired when WebSocket is about to initiate handshake.",
          "targetTypes": ["page"],
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "timestamp", "$ref": "Timestamp" },
            { "name": "walltime", "$ref": "Walltime" },
            { "name": "request", "$ref": "WebSocketRequest", "description": "WebSocket request data." }
          ]
        },
        {
          "name": "webSocketHandshakeResponseReceived",
          "description": "Fired when WebSocket handshake response becomes available.",
          "targetTypes": ["page"],
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "timestamp", "$ref": "Timestamp" },
            { "name": "response", "$ref": "WebSocketResponse", "description": "WebSocket response data." }
          ]
        },
        {
          "name": "webSocketCreated",
          "description": "Fired upon WebSocket creation.",
          "targetTypes": ["page"],
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "url", "type": "string", "description": "WebSocket request URL." }
          ]
        },
        {
          "name": "webSocketClosed",
          "description": "Fired when WebSocket is closed.",
          "targetTypes": ["page"],
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }
          ]
        },
        {
          "name": "webSocketFrameReceived",
          "description": "Fired when WebSocket frame is received.",
          "targetTypes": ["page"],
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
            { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." }
          ]
        },
        {
          "name": "webSocketFrameError",
          "description": "Fired when WebSocket frame error occurs.",
          "targetTypes": ["page"],
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
            { "name": "errorMessage", "type": "string", "description": "WebSocket frame error message." }
          ]
        },
        {
          "name": "webSocketFrameSent",
          "description": "Fired when WebSocket frame is sent.",
          "targetTypes": ["page"],
          "parameters": [
            { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
            { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
            { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." }
          ]
        }
      ]
    },
    {
      "domain": "Runtime",
      "description": "Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.",
      "debuggableTypes": ["itml", "javascript", "page", "service-worker", "web-page"],
      "targetTypes": ["itml", "javascript", "page", "service-worker", "worker"],
      "types": [
        { "id": "RemoteObjectId", "type": "string", "description": "Unique object identifier." },
        {
          "id": "RemoteObject",
          "type": "object",
          "description": "Mirror object referencing original JavaScript object.",
          "properties": [
            {
              "name": "type",
              "type": "string",
              "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol", "bigint"],
              "description": "Object type."
            },
            {
              "name": "subtype",
              "type": "string",
              "optional": true,
              "enum": [
                "array",
                "null",
                "node",
                "regexp",
                "date",
                "error",
                "map",
                "set",
                "weakmap",
                "weakset",
                "iterator",
                "class",
                "proxy",
                "weakref"
              ],
              "description": "Object subtype hint. Specified for <code>object</code> <code>function</code> (for class) type values only."
            },
            {
              "name": "className",
              "type": "string",
              "optional": true,
              "description": "Object class (constructor) name. Specified for <code>object</code> type values only."
            },
            {
              "name": "value",
              "type": "any",
              "optional": true,
              "description": "Remote object value (in case of primitive values or JSON values if it was requested)."
            },
            {
              "name": "description",
              "type": "string",
              "optional": true,
              "description": "String representation of the object."
            },
            {
              "name": "objectId",
              "$ref": "RemoteObjectId",
              "optional": true,
              "description": "Unique object identifier (for non-primitive values)."
            },
            {
              "name": "size",
              "type": "integer",
              "optional": true,
              "description": "Size of the array/collection. Specified for array/map/set/weakmap/weakset object type values only."
            },
            {
              "name": "classPrototype",
              "$ref": "RemoteObject",
              "optional": true,
              "description": "Remote object for the class prototype. Specified for class object type values only."
            },
            {
              "name": "preview",
              "$ref": "ObjectPreview",
              "optional": true,
              "description": "Preview containing abbreviated property values. Specified for <code>object</code> type values only."
            }
          ]
        },
        {
          "id": "ObjectPreview",
          "type": "object",
          "description": "Object containing abbreviated remote object value.",
          "properties": [
            {
              "name": "type",
              "type": "string",
              "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol", "bigint"],
              "description": "Object type."
            },
            {
              "name": "subtype",
              "type": "string",
              "optional": true,
              "enum": [
                "array",
                "null",
                "node",
                "regexp",
                "date",
                "error",
                "map",
                "set",
                "weakmap",
                "weakset",
                "iterator",
                "class",
                "proxy",
                "weakref"
              ],
              "description": "Object subtype hint. Specified for <code>object</code> type values only."
            },
            {
              "name": "description",
              "type": "string",
              "optional": true,
              "description": "String representation of the object."
            },
            {
              "name": "lossless",
              "type": "boolean",
              "description": "Determines whether preview is lossless (contains all information of the original object)."
            },
            {
              "name": "overflow",
              "type": "boolean",
              "optional": true,
              "description": "True iff some of the properties of the original did not fit."
            },
            {
              "name": "properties",
              "type": "array",
              "items": { "$ref": "PropertyPreview" },
              "optional": true,
              "description": "List of the properties."
            },
            {
              "name": "entries",
              "type": "array",
              "items": { "$ref": "EntryPreview" },
              "optional": true,
              "description": "List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only."
            },
            {
              "name": "size",
              "type": "integer",
              "optional": true,
              "description": "Size of the array/collection. Specified for array/map/set/weakmap/weakset object type values only."
            }
          ]
        },
        {
          "id": "PropertyPreview",
          "type": "object",
          "properties": [
            { "name": "name", "type": "string", "description": "Property name." },
            {
              "name": "type",
              "type": "string",
              "enum": [
                "object",
                "function",
                "undefined",
                "string",
                "number",
                "boolean",
                "symbol",
                "bigint",
                "accessor"
              ],
              "description": "Object type."
            },
            {
              "name": "subtype",
              "type": "string",
              "optional": true,
              "enum": [
                "array",
                "null",
                "node",
                "regexp",
                "date",
                "error",
                "map",
                "set",
                "weakmap",
                "weakset",
                "iterator",
                "class",
                "proxy",
                "weakref"
              ],
              "description": "Object subtype hint. Specified for <code>object</code> type values only."
            },
            {
              "name": "value",
              "type": "string",
              "optional": true,
              "description": "User-friendly property value string."
            },
            {
              "name": "valuePreview",
              "$ref": "ObjectPreview",
              "optional": true,
              "description": "Nested value preview."
            },
            {
              "name": "isPrivate",
              "type": "boolean",
              "optional": true,
              "description": "True if this is a private field."
            },
            {
              "name": "internal",
              "type": "boolean",
              "optional": true,
              "description": "True if this is an internal property."
            }
          ]
        },
        {
          "id": "EntryPreview",
          "type": "object",
          "properties": [
            {
              "name": "key",
              "$ref": "ObjectPreview",
              "optional": true,
              "description": "Entry key. Specified for map-like collection entries."
            },
            { "name": "value", "$ref": "ObjectPreview", "description": "Entry value." }
          ]
        },
        {
          "id": "CollectionEntry",
          "type": "object",
          "properties": [
            {
              "name": "key",
              "$ref": "Runtime.RemoteObject",
              "optional": true,
              "description": "Entry key of a map-like collection, otherwise not provided."
            },
            { "name": "value", "$ref": "Runtime.RemoteObject", "description": "Entry value." }
          ]
        },
        {
          "id": "PropertyDescriptor",
          "type": "object",
          "description": "Object property descriptor.",
          "properties": [
            { "name": "name", "type": "string", "description": "Property name or symbol description." },
            {
              "name": "value",
              "$ref": "RemoteObject",
              "optional": true,
              "description": "The value associated with the property."
            },
            {
              "name": "writable",
              "type": "boolean",
              "optional": true,
              "description": "True if the value associated with the property may be changed (data descriptors only)."
            },
            {
              "name": "get",
              "$ref": "RemoteObject",
              "optional": true,
              "description": "A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only)."
            },
            {
              "name": "set",
              "$ref": "RemoteObject",
              "optional": true,
              "description": "A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only)."
            },
            {
              "name": "wasThrown",
              "type": "boolean",
              "optional": true,
              "description": "True if the result was thrown during the evaluation."
            },
            {
              "name": "configurable",
              "type": "boolean",
              "optional": true,
              "description": "True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object."
            },
            {
              "name": "enumerable",
              "type": "boolean",
              "optional": true,
              "description": "True if this property shows up during enumeration of the properties on the corresponding object."
            },
            {
              "name": "isOwn",
              "optional": true,
              "type": "boolean",
              "description": "True if the property is owned for the object."
            },
            {
              "name": "symbol",
              "optional": true,
              "$ref": "Runtime.RemoteObject",
              "description": "Property symbol object, if the property is a symbol."
            },
            {
              "name": "isPrivate",
              "optional": true,
              "$ref": "boolean",
              "description": "True if the property is a private field."
            },
            {
              "name": "nativeGetter",
              "optional": true,
              "type": "boolean",
              "description": "True if the property value came from a native getter."
            }
          ]
        },
        {
          "id": "InternalPropertyDescriptor",
          "type": "object",
          "description": "Object internal property descriptor. This property isn't normally visible in JavaScript code.",
          "properties": [
            { "name": "name", "type": "string", "description": "Conventional property name." },
            {
              "name": "value",
              "$ref": "RemoteObject",
              "optional": true,
              "description": "The value associated with the property."
            }
          ]
        },
        {
          "id": "CallArgument",
          "type": "object",
          "description": "Represents function call argument. Either remote object id <code>objectId</code> or primitive <code>value</code> or neither of (for undefined) them should be specified.",
          "properties": [
            { "name": "value", "type": "any", "optional": true, "description": "Primitive value." },
            { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Remote object handle." }
          ]
        },
        { "id": "ExecutionContextId", "type": "integer", "description": "Id of an execution context." },
        {
          "id": "ExecutionContextType",
          "type": "string",
          "enum": ["normal", "user", "internal"],
          "description": "Type of the execution context."
        },
        {
          "id": "ExecutionContextDescription",
          "type": "object",
          "description": "Description of an isolated world.",
          "properties": [
            {
              "name": "id",
              "$ref": "ExecutionContextId",
              "description": "Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed."
            },
            { "name": "type", "$ref": "ExecutionContextType" },
            { "name": "name", "type": "string", "description": "Human readable name describing given context." },
            { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the owning frame." }
          ]
        },
        {
          "id": "SyntaxErrorType",
          "type": "string",
          "enum": ["none", "irrecoverable", "unterminated-literal", "recoverable"],
          "description": "Syntax error type: \"none\" for no error, \"irrecoverable\" for unrecoverable errors, \"unterminated-literal\" for when there is an unterminated literal, \"recoverable\" for when the expression is unfinished but valid so far."
        },
        {
          "id": "ErrorRange",
          "type": "object",
          "description": "Range of an error in source code.",
          "properties": [
            { "name": "startOffset", "type": "integer", "description": "Start offset of range (inclusive)." },
            { "name": "endOffset", "type": "integer", "description": "End offset of range (exclusive)." }
          ]
        },
        {
          "id": "StructureDescription",
          "type": "object",
          "properties": [
            {
              "name": "fields",
              "type": "array",
              "items": { "type": "string" },
              "optional": true,
              "description": "Array of strings, where the strings represent object properties."
            },
            {
              "name": "optionalFields",
              "type": "array",
              "items": { "type": "string" },
              "optional": true,
              "description": "Array of strings, where the strings represent optional object properties."
            },
            {
              "name": "constructorName",
              "type": "string",
              "optional": true,
              "description": "Name of the constructor."
            },
            {
              "name": "prototypeStructure",
              "$ref": "StructureDescription",
              "optional": true,
              "description": "Pointer to the StructureRepresentation of the protoype if one exists."
            },
            {
              "name": "isImprecise",
              "type": "boolean",
              "optional": true,
              "description": "If true, it indicates that the fields in this StructureDescription may be inaccurate. I.e, there might have been fields that have been deleted before it was profiled or it has fields we haven't profiled."
            }
          ]
        },
        {
          "id": "TypeSet",
          "type": "object",
          "properties": [
            {
              "name": "isFunction",
              "type": "boolean",
              "description": "Indicates if this type description has been type Function."
            },
            {
              "name": "isUndefined",
              "type": "boolean",
              "description": "Indicates if this type description has been type Undefined."
            },
            {
              "name": "isNull",
              "type": "boolean",
              "description": "Indicates if this type description has been type Null."
            },
            {
              "name": "isBoolean",
              "type": "boolean",
              "description": "Indicates if this type description has been type Boolean."
            },
            {
              "name": "isInteger",
              "type": "boolean",
              "description": "Indicates if this type description has been type Integer."
            },
            {
              "name": "isNumber",
              "type": "boolean",
              "description": "Indicates if this type description has been type Number."
            },
            {
              "name": "isString",
              "type": "boolean",
              "description": "Indicates if this type description has been type String."
            },
            {
              "name": "isObject",
              "type": "boolean",
              "description": "Indicates if this type description has been type Object."
            },
            {
              "name": "isSymbol",
              "type": "boolean",
              "description": "Indicates if this type description has been type Symbol."
            },
            {
              "name": "isBigInt",
              "type": "boolean",
              "description": "Indicates if this type description has been type BigInt."
            }
          ]
        },
        {
          "id": "TypeDescription",
          "type": "object",
          "description": "Container for type information that has been gathered.",
          "properties": [
            {
              "name": "isValid",
              "type": "boolean",
              "description": "If true, we were able to correlate the offset successfuly with a program location. If false, the offset may be bogus or the offset may be from a CodeBlock that hasn't executed."
            },
            {
              "name": "leastCommonAncestor",
              "type": "string",
              "optional": true,
              "description": "Least common ancestor of all Constructors if the TypeDescription has seen any structures. This string is the display name of the shared constructor function."
            },
            {
              "name": "typeSet",
              "$ref": "TypeSet",
              "optional": true,
              "description": "Set of booleans for determining the aggregate type of this type description."
            },
            {
              "name": "structures",
              "type": "array",
              "items": { "$ref": "StructureDescription" },
              "optional": true,
              "description": "Array of descriptions for all structures seen for this variable."
            },
            {
              "name": "isTruncated",
              "type": "boolean",
              "optional": true,
              "description": "If true, this indicates that no more structures are being profiled because some maximum threshold has been reached and profiling has stopped because of memory pressure."
            }
          ]
        },
        {
          "id": "TypeLocation",
          "type": "object",
          "description": "Describes the location of an expression we want type information for.",
          "properties": [
            {
              "name": "typeInformationDescriptor",
              "type": "integer",
              "description": "What kind of type information do we want (normal, function return values, 'this' statement)."
            },
            { "name": "sourceID", "type": "string", "description": "sourceID uniquely identifying a script" },
            { "name": "divot", "type": "integer", "description": "character offset for assignment range" }
          ]
        },
        {
          "id": "BasicBlock",
          "type": "object",
          "description": "From Wikipedia: a basic block is a portion of the code within a program with only one entry point and only one exit point. This type gives the location of a basic block and if that basic block has executed.",
          "properties": [
            { "name": "startOffset", "type": "integer", "description": "Start offset of the basic block." },
            { "name": "endOffset", "type": "integer", "description": "End offset of the basic block." },
            {
              "name": "hasExecuted",
              "type": "boolean",
              "description": "Indicates if the basic block has executed before."
            },
            {
              "name": "executionCount",
              "type": "integer",
              "description": "Indicates how many times the basic block has executed."
            }
          ]
        }
      ],
      "commands": [
        {
          "name": "parse",
          "description": "Parses JavaScript source code for errors.",
          "parameters": [{ "name": "source", "type": "string", "description": "Source code to parse." }],
          "returns": [
            { "name": "result", "$ref": "SyntaxErrorType", "description": "Parse result." },
            { "name": "message", "type": "string", "optional": true, "description": "Parse error message." },
            {
              "name": "range",
              "$ref": "ErrorRange",
              "optional": true,
              "description": "Range in the source where the error occurred."
            }
          ]
        },
        {
          "name": "evaluate",
          "description": "Evaluates expression on global object.",
          "parameters": [
            { "name": "expression", "type": "string", "description": "Expression to evaluate." },
            {
              "name": "objectGroup",
              "type": "string",
              "optional": true,
              "description": "Symbolic group name that can be used to release multiple objects."
            },
            {
              "name": "includeCommandLineAPI",
              "type": "boolean",
              "optional": true,
              "description": "Determines whether Command Line API should be available during the evaluation."
            },
            {
              "name": "doNotPauseOnExceptionsAndMuteConsole",
              "type": "boolean",
              "optional": true,
              "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state."
            },
            {
              "name": "contextId",
              "$ref": "Runtime.ExecutionContextId",
              "optional": true,
              "description": "Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page."
            },
            {
              "name": "returnByValue",
              "type": "boolean",
              "optional": true,
              "description": "Whether the result is expected to be a JSON object that should be sent by value."
            },
            {
              "name": "generatePreview",
              "type": "boolean",
              "optional": true,
              "description": "Whether preview should be generated for the result."
            },
            {
              "name": "saveResult",
              "type": "boolean",
              "optional": true,
              "description": "Whether the resulting value should be considered for saving in the $n history."
            },
            {
              "name": "emulateUserGesture",
              "type": "boolean",
              "optional": true,
              "description": "Whether the expression should be considered to be in a user gesture or not."
            }
          ],
          "returns": [
            { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." },
            {
              "name": "wasThrown",
              "type": "boolean",
              "optional": true,
              "description": "True if the result was thrown during the evaluation."
            },
            {
              "name": "savedResultIndex",
              "type": "integer",
              "optional": true,
              "description": "If the result was saved, this is the $n index that can be used to access the value."
            }
          ]
        },
        {
          "name": "awaitPromise",
          "description": "Calls the async callback when the promise with the given ID gets settled.",
          "parameters": [
            { "name": "promiseObjectId", "$ref": "RemoteObjectId", "description": "Identifier of the promise." },
            {
              "name": "returnByValue",
              "type": "boolean",
              "optional": true,
              "description": "Whether the result is expected to be a JSON object that should be sent by value."
            },
            {
              "name": "generatePreview",
              "type": "boolean",
              "optional": true,
              "description": "Whether preview should be generated for the result."
            },
            {
              "name": "saveResult",
              "type": "boolean",
              "optional": true,
              "description": "Whether the resulting value should be considered for saving in the $n history."
            }
          ],
          "returns": [
            { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." },
            {
              "name": "wasThrown",
              "type": "boolean",
              "optional": true,
              "description": "True if the result was thrown during the evaluation."
            },
            {
              "name": "savedResultIndex",
              "type": "integer",
              "optional": true,
              "description": "If the result was saved, this is the $n index that can be used to access the value."
            }
          ],
          "async": true
        },
        {
          "name": "callFunctionOn",
          "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object.",
          "parameters": [
            {
              "name": "objectId",
              "$ref": "RemoteObjectId",
              "description": "Identifier of the object to call function on."
            },
            { "name": "functionDeclaration", "type": "string", "description": "Declaration of the function to call." },
            {
              "name": "arguments",
              "type": "array",
              "items": { "$ref": "CallArgument", "description": "Call argument." },
              "optional": true,
              "description": "Call arguments. All call arguments must belong to the same JavaScript world as the target object."
            },
            {
              "name": "doNotPauseOnExceptionsAndMuteConsole",
              "type": "boolean",
              "optional": true,
              "description": "Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state."
            },
            {
              "name": "returnByValue",
              "type": "boolean",
              "optional": true,
              "description": "Whether the result is expected to be a JSON object which should be sent by value."
            },
            {
              "name": "generatePreview",
              "type": "boolean",
              "optional": true,
              "description": "Whether preview should be generated for the result."
            },
            {
              "name": "emulateUserGesture",
              "type": "boolean",
              "optional": true,
              "description": "Whether the expression should be considered to be in a user gesture or not."
            }
          ],
          "returns": [
            { "name": "result", "$ref": "RemoteObject", "description": "Call result." },
            {
              "name": "wasThrown",
              "type": "boolean",
              "optional": true,
              "description": "True if the result was thrown during the evaluation."
            }
          ]
        },
        {
          "name": "getPreview",
          "description": "Returns a preview for the given object.",
          "parameters": [
            {
              "name": "objectId",
              "$ref": "RemoteObjectId",
              "description": "Identifier of the object to return a preview for."
            }
          ],
          "returns": [{ "name": "preview", "$ref": "ObjectPreview" }]
        },
        {
          "name": "getProperties",
          "description": "Returns properties of a given object. Object group of the result is inherited from the target object.",
          "parameters": [
            {
              "name": "objectId",
              "$ref": "RemoteObjectId",
              "description": "Identifier of the object to return properties for."
            },
            {
              "name": "ownProperties",
              "optional": true,
              "type": "boolean",
              "description": "If true, returns properties belonging only to the object itself, not to its prototype chain."
            },
            {
              "name": "fetchStart",
              "optional": true,
              "type": "integer",
              "description": "If provided skip to this value before collecting values. Otherwise, start at the beginning. Has no effect when the `objectId` is for a `iterator`/`WeakMap`/`WeakSet` object."
            },
            {
              "name": "fetchCount",
              "optional": true,
              "type": "integer",
              "description": "If provided only return `fetchCount` values. Otherwise, return values all the way to the end."
            },
            {
              "name": "generatePreview",
              "type": "boolean",
              "optional": true,
              "description": "Whether preview should be generated for property values."
            }
          ],
          "returns": [
            {
              "name": "properties",
              "type": "array",
              "items": { "$ref": "PropertyDescriptor" },
              "description": "Object properties."
            },
            {
              "name": "internalProperties",
              "optional": true,
              "type": "array",
              "items": { "$ref": "InternalPropertyDescriptor" },
              "description": "Internal object properties. Only included if `fetchStart` is 0."
            }
          ]
        },
        {
          "name": "getDisplayableProperties",
          "description": "Returns displayable properties of a given object. Object group of the result is inherited from the target object. Displayable properties are own properties, internal properties, and native getters in the prototype chain (assumed to be bindings and treated like own properties for the frontend).",
          "parameters": [
            {
              "name": "objectId",
              "$ref": "RemoteObjectId",
              "description": "Identifier of the object to return properties for."
            },
            {
              "name": "fetchStart",
              "optional": true,
              "type": "integer",
              "description": "If provided skip to this value before collecting values. Otherwise, start at the beginning. Has no effect when the `objectId` is for a `iterator`/`WeakMap`/`WeakSet` object."
            },
            {
              "name": "fetchCount",
              "optional": true,
              "type": "integer",
              "description": "If provided only return `fetchCount` values. Otherwise, return values all the way to the end."
            },
            {
              "name": "generatePreview",
              "type": "boolean",
              "optional": true,
              "description": "Whether preview should be generated for property values."
            }
          ],
          "returns": [
            {
              "name": "properties",
              "type": "array",
              "items": { "$ref": "PropertyDescriptor" },
              "description": "Object properties."
            },
            {
              "name": "internalProperties",
              "optional": true,
              "type": "array",
              "items": { "$ref": "InternalPropertyDescriptor" },
              "description": "Internal object properties. Only included if `fetchStart` is 0."
            }
          ]
        },
        {
          "name": "getCollectionEntries",
          "description": "Returns entries of given Map / Set collection.",
          "parameters": [
            {
              "name": "objectId",
              "$ref": "Runtime.RemoteObjectId",
              "description": "Id of the collection to get entries for."
            },
            {
              "name": "objectGroup",
              "optional": true,
              "type": "string",
              "description": "Symbolic group name that can be used to release multiple. If not provided, it will be the same objectGroup as the RemoteObject determined from <code>objectId</code>. This is useful for WeakMap to release the collection entries."
            },
            {
              "name": "fetchStart",
              "optional": true,
              "type": "integer",
              "description": "If provided skip to this value before collecting values. Otherwise, start at the beginning. Has no effect when the `objectId<` is for a `iterator<`/`WeakMap<`/`WeakSet<` object."
            },
            {
              "name": "fetchCount",
              "optional": true,
              "type": "integer",
              "description": "If provided only return `fetchCount` values. Otherwise, return values all the way to the end."
            }
          ],
          "returns": [
            {
              "name": "entries",
              "type": "array",
              "items": { "$ref": "CollectionEntry" },
              "description": "Array of collection entries."
            }
          ]
        },
        {
          "name": "saveResult",
          "description": "Assign a saved result index to this value.",
          "parameters": [
            { "name": "value", "$ref": "CallArgument", "description": "Id or value of the object to save." },
            {
              "name": "contextId",
              "optional": true,
              "$ref": "ExecutionContextId",
              "description": "Unique id of the execution context. To specify in which execution context script evaluation should be performed. If not provided, determine from the CallArgument's objectId."
            }
          ],
          "returns": [
            {
              "name": "savedResultIndex",
              "type": "integer",
              "optional": true,
              "description": "If the value was saved, this is the $n index that can be used to access the value."
            }
          ]
        },
        {
          "name": "setSavedResultAlias",
          "description": "Creates an additional reference to all saved values in the Console using the the given string as a prefix instead of $.",
          "parameters": [
            {
              "name": "alias",
              "type": "string",
              "optional": true,
              "description": "Passing an empty/null string will clear the alias."
            }
          ]
        },
        {
          "name": "releaseObject",
          "description": "Releases remote object with given id.",
          "parameters": [
            { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to release." }
          ]
        },
        {
          "name": "releaseObjectGroup",
          "description": "Releases all remote objects that belong to a given group.",
          "parameters": [{ "name": "objectGroup", "type": "string", "description": "Symbolic object group name." }]
        },
        {
          "name": "enable",
          "description": "Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context."
        },
        { "name": "disable", "description": "Disables reporting of execution contexts creation." },
        {
          "name": "getRuntimeTypesForVariablesAtOffsets",
          "description": "Returns detailed information on the given function.",
          "parameters": [
            {
              "name": "locations",
              "type": "array",
              "items": { "$ref": "TypeLocation" },
              "description": "An array of type locations we're requesting information for. Results are expected in the same order they're sent in."
            }
          ],
          "returns": [
            {
              "name": "types",
              "type": "array",
              "items": { "$ref": "TypeDescription", "description": "Types for requested variable." }
            }
          ]
        },
        { "name": "enableTypeProfiler", "description": "Enables type profiling on the VM." },
        { "name": "disableTypeProfiler", "description": "Disables type profiling on the VM." },
        { "name": "enableControlFlowProfiler", "description": "Enables control flow profiling on the VM." },
        { "name": "disableControlFlowProfiler", "description": "Disables control flow profiling on the VM." },
        {
          "name": "getBasicBlocks",
          "description": "Returns a list of basic blocks for the given sourceID with information about their text ranges and whether or not they have executed.",
          "parameters": [
            {
              "name": "sourceID",
              "type": "string",
              "description": "Indicates which sourceID information is requested for."
            }
          ],
          "returns": [
            {
              "name": "basicBlocks",
              "type": "array",
              "items": { "$ref": "BasicBlock", "description": "Array of basic blocks." }
            }
          ]
        }
      ],
      "events": [
        {
          "name": "executionContextCreated",
          "description": "Issued when new execution context is created.",
          "parameters": [
            {
              "name": "context",
              "$ref": "ExecutionContextDescription",
              "description": "A newly created execution context."
            }
          ]
        }
      ]
    },
    {
      "domain": "ScriptProfiler",
      "description": "Profiler domain exposes JavaScript evaluation timing and profiling.",
      "debuggableTypes": ["itml", "javascript", "page", "web-page"],
      "targetTypes": ["itml", "javascript", "page"],
      "types": [
        { "id": "EventType", "type": "string", "enum": ["API", "Microtask", "Other"] },
        {
          "id": "Event",
          "type": "object",
          "properties": [
            { "name": "startTime", "type": "number" },
            { "name": "endTime", "type": "number" },
            { "name": "type", "$ref": "EventType" }
          ]
        },
        {
          "id": "ExpressionLocation",
          "type": "object",
          "properties": [
            { "name": "line", "type": "integer", "description": "1-based." },
            { "name": "column", "type": "integer", "description": "1-based." }
          ]
        },
        {
          "id": "StackFrame",
          "type": "object",
          "properties": [
            { "name": "sourceID", "$ref": "Debugger.ScriptId", "description": "Unique script identifier." },
            {
              "name": "name",
              "type": "string",
              "description": "A displayable name for the stack frame. i.e function name, (program), etc."
            },
            { "name": "line", "type": "integer", "description": "-1 if unavailable. 1-based if available." },
            { "name": "column", "type": "integer", "description": "-1 if unavailable. 1-based if available." },
            { "name": "url", "type": "string" },
            { "name": "expressionLocation", "$ref": "ExpressionLocation", "optional": true }
          ]
        },
        {
          "id": "StackTrace",
          "type": "object",
          "properties": [
            { "name": "timestamp", "type": "number" },
            {
              "name": "stackFrames",
              "type": "array",
              "items": { "$ref": "StackFrame" },
              "description": "First array item is the bottom of the call stack and last array item is the top of the call stack."
            }
          ]
        },
        {
          "id": "Samples",
          "type": "object",
          "properties": [{ "name": "stackTraces", "type": "array", "items": { "$ref": "StackTrace" } }]
        }
      ],
      "commands": [
        {
          "name": "startTracking",
          "description": "Start tracking script evaluations.",
          "parameters": [
            {
              "name": "includeSamples",
              "type": "boolean",
              "optional": true,
              "description": "Start the sampling profiler, defaults to false."
            }
          ]
        },
        {
          "name": "stopTracking",
          "description": "Stop tracking script evaluations. This will produce a `trackingComplete` event."
        }
      ],
      "events": [
        {
          "name": "trackingStart",
          "description": "Tracking started.",
          "parameters": [{ "name": "timestamp", "type": "number" }]
        },
        {
          "name": "trackingUpdate",
          "description": "Periodic tracking updates with event data.",
          "parameters": [{ "name": "event", "$ref": "Event" }]
        },
        {
          "name": "trackingComplete",
          "description": "Tracking stopped. Includes any buffered data during tracking, such as profiling information.",
          "parameters": [
            { "name": "timestamp", "type": "number" },
            { "name": "samples", "$ref": "Samples", "optional": true, "description": "Stack traces." }
          ]
        }
      ]
    }
  ]
}