devtools-protocol 0.0.1602427 → 0.0.1604597
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/browser_protocol.json +115 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +1 -0
- package/pdl/domains/CrashReportContext.pdl +20 -0
- package/pdl/domains/WebMCP.pdl +35 -0
- package/types/protocol-mapping.d.ts +15 -0
- package/types/protocol-proxy-api.d.ts +20 -0
- package/types/protocol-tests-proxy-api.d.ts +24 -0
- package/types/protocol.d.ts +76 -0
|
@@ -6924,6 +6924,51 @@
|
|
|
6924
6924
|
}
|
|
6925
6925
|
]
|
|
6926
6926
|
},
|
|
6927
|
+
{
|
|
6928
|
+
"domain": "CrashReportContext",
|
|
6929
|
+
"description": "This domain exposes the current state of the CrashReportContext API.",
|
|
6930
|
+
"experimental": true,
|
|
6931
|
+
"dependencies": [
|
|
6932
|
+
"Page"
|
|
6933
|
+
],
|
|
6934
|
+
"types": [
|
|
6935
|
+
{
|
|
6936
|
+
"id": "CrashReportContextEntry",
|
|
6937
|
+
"description": "Key-value pair in CrashReportContext.",
|
|
6938
|
+
"type": "object",
|
|
6939
|
+
"properties": [
|
|
6940
|
+
{
|
|
6941
|
+
"name": "key",
|
|
6942
|
+
"type": "string"
|
|
6943
|
+
},
|
|
6944
|
+
{
|
|
6945
|
+
"name": "value",
|
|
6946
|
+
"type": "string"
|
|
6947
|
+
},
|
|
6948
|
+
{
|
|
6949
|
+
"name": "frameId",
|
|
6950
|
+
"description": "The ID of the frame where the key-value pair was set.",
|
|
6951
|
+
"$ref": "Page.FrameId"
|
|
6952
|
+
}
|
|
6953
|
+
]
|
|
6954
|
+
}
|
|
6955
|
+
],
|
|
6956
|
+
"commands": [
|
|
6957
|
+
{
|
|
6958
|
+
"name": "getEntries",
|
|
6959
|
+
"description": "Returns all entries in the CrashReportContext across all frames in the page.",
|
|
6960
|
+
"returns": [
|
|
6961
|
+
{
|
|
6962
|
+
"name": "entries",
|
|
6963
|
+
"type": "array",
|
|
6964
|
+
"items": {
|
|
6965
|
+
"$ref": "CrashReportContextEntry"
|
|
6966
|
+
}
|
|
6967
|
+
}
|
|
6968
|
+
]
|
|
6969
|
+
}
|
|
6970
|
+
]
|
|
6971
|
+
},
|
|
6927
6972
|
{
|
|
6928
6973
|
"domain": "DOM",
|
|
6929
6974
|
"description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object\nthat has an `id`. This `id` can be used to get additional information on the Node, resolve it into\nthe JavaScript object wrapper, etc. It is important that client receives DOM events only for the\nnodes that are known to the client. Backend keeps track of the nodes that were sent to the client\nand never sends the same node twice. It is client's responsibility to collect information about\nthe nodes that were sent to the client. Note that `iframe` owner elements will return\ncorresponding document elements as their child nodes.",
|
|
@@ -31418,6 +31463,16 @@
|
|
|
31418
31463
|
}
|
|
31419
31464
|
]
|
|
31420
31465
|
},
|
|
31466
|
+
{
|
|
31467
|
+
"id": "InvocationStatus",
|
|
31468
|
+
"description": "Represents the status of a tool invocation.",
|
|
31469
|
+
"type": "string",
|
|
31470
|
+
"enum": [
|
|
31471
|
+
"Success",
|
|
31472
|
+
"Canceled",
|
|
31473
|
+
"Error"
|
|
31474
|
+
]
|
|
31475
|
+
},
|
|
31421
31476
|
{
|
|
31422
31477
|
"id": "Tool",
|
|
31423
31478
|
"description": "Definition of a tool that can be invoked.",
|
|
@@ -31499,6 +31554,66 @@
|
|
|
31499
31554
|
}
|
|
31500
31555
|
}
|
|
31501
31556
|
]
|
|
31557
|
+
},
|
|
31558
|
+
{
|
|
31559
|
+
"name": "toolInvoked",
|
|
31560
|
+
"description": "Event fired when a tool invocation starts.",
|
|
31561
|
+
"parameters": [
|
|
31562
|
+
{
|
|
31563
|
+
"name": "toolName",
|
|
31564
|
+
"description": "Name of the tool to invoke.",
|
|
31565
|
+
"type": "string"
|
|
31566
|
+
},
|
|
31567
|
+
{
|
|
31568
|
+
"name": "frameId",
|
|
31569
|
+
"description": "Frame id",
|
|
31570
|
+
"$ref": "Page.FrameId"
|
|
31571
|
+
},
|
|
31572
|
+
{
|
|
31573
|
+
"name": "invocationId",
|
|
31574
|
+
"description": "Invocation identifier.",
|
|
31575
|
+
"type": "string"
|
|
31576
|
+
},
|
|
31577
|
+
{
|
|
31578
|
+
"name": "input",
|
|
31579
|
+
"description": "The input parameters used for the invocation.",
|
|
31580
|
+
"type": "string"
|
|
31581
|
+
}
|
|
31582
|
+
]
|
|
31583
|
+
},
|
|
31584
|
+
{
|
|
31585
|
+
"name": "toolResponded",
|
|
31586
|
+
"description": "Event fired when a tool invocation completes or fails.",
|
|
31587
|
+
"parameters": [
|
|
31588
|
+
{
|
|
31589
|
+
"name": "invocationId",
|
|
31590
|
+
"description": "Invocation identifier.",
|
|
31591
|
+
"type": "string"
|
|
31592
|
+
},
|
|
31593
|
+
{
|
|
31594
|
+
"name": "status",
|
|
31595
|
+
"description": "Status of the invocation.",
|
|
31596
|
+
"$ref": "InvocationStatus"
|
|
31597
|
+
},
|
|
31598
|
+
{
|
|
31599
|
+
"name": "output",
|
|
31600
|
+
"description": "Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.",
|
|
31601
|
+
"optional": true,
|
|
31602
|
+
"type": "object"
|
|
31603
|
+
},
|
|
31604
|
+
{
|
|
31605
|
+
"name": "errorText",
|
|
31606
|
+
"description": "Error text for protocol users.",
|
|
31607
|
+
"optional": true,
|
|
31608
|
+
"type": "string"
|
|
31609
|
+
},
|
|
31610
|
+
{
|
|
31611
|
+
"name": "exception",
|
|
31612
|
+
"description": "The exception object, if the javascript tool threw an error>",
|
|
31613
|
+
"optional": true,
|
|
31614
|
+
"$ref": "Runtime.RemoteObject"
|
|
31615
|
+
}
|
|
31616
|
+
]
|
|
31502
31617
|
}
|
|
31503
31618
|
]
|
|
31504
31619
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright 2026 The Chromium Authors
|
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
# found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
# This domain exposes the current state of the CrashReportContext API.
|
|
6
|
+
experimental domain CrashReportContext
|
|
7
|
+
depends on Page
|
|
8
|
+
|
|
9
|
+
# Key-value pair in CrashReportContext.
|
|
10
|
+
type CrashReportContextEntry extends object
|
|
11
|
+
properties
|
|
12
|
+
string key
|
|
13
|
+
string value
|
|
14
|
+
# The ID of the frame where the key-value pair was set.
|
|
15
|
+
Page.FrameId frameId
|
|
16
|
+
|
|
17
|
+
# Returns all entries in the CrashReportContext across all frames in the page.
|
|
18
|
+
command getEntries
|
|
19
|
+
returns
|
|
20
|
+
array of CrashReportContextEntry entries
|
package/pdl/domains/WebMCP.pdl
CHANGED
|
@@ -11,12 +11,20 @@ experimental domain WebMCP
|
|
|
11
11
|
|
|
12
12
|
# Tool annotations
|
|
13
13
|
type Annotation extends object
|
|
14
|
+
|
|
14
15
|
properties
|
|
15
16
|
# A hint indicating that the tool does not modify any state.
|
|
16
17
|
optional boolean readOnly
|
|
17
18
|
# If the declarative tool was declared with the autosubmit attribute.
|
|
18
19
|
optional boolean autosubmit
|
|
19
20
|
|
|
21
|
+
# Represents the status of a tool invocation.
|
|
22
|
+
type InvocationStatus extends string
|
|
23
|
+
enum
|
|
24
|
+
Success
|
|
25
|
+
Canceled
|
|
26
|
+
Error
|
|
27
|
+
|
|
20
28
|
# Definition of a tool that can be invoked.
|
|
21
29
|
type Tool extends object
|
|
22
30
|
properties
|
|
@@ -51,3 +59,30 @@ experimental domain WebMCP
|
|
|
51
59
|
parameters
|
|
52
60
|
# Array of tools that were removed.
|
|
53
61
|
array of Tool tools
|
|
62
|
+
|
|
63
|
+
# Event fired when a tool invocation starts.
|
|
64
|
+
event toolInvoked
|
|
65
|
+
parameters
|
|
66
|
+
# Name of the tool to invoke.
|
|
67
|
+
string toolName
|
|
68
|
+
# Frame id
|
|
69
|
+
Page.FrameId frameId
|
|
70
|
+
# Invocation identifier.
|
|
71
|
+
string invocationId
|
|
72
|
+
# The input parameters used for the invocation.
|
|
73
|
+
string input
|
|
74
|
+
|
|
75
|
+
# Event fired when a tool invocation completes or fails.
|
|
76
|
+
event toolResponded
|
|
77
|
+
parameters
|
|
78
|
+
# Invocation identifier.
|
|
79
|
+
string invocationId
|
|
80
|
+
# Status of the invocation.
|
|
81
|
+
InvocationStatus status
|
|
82
|
+
# Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.
|
|
83
|
+
optional object output
|
|
84
|
+
# Error text for protocol users.
|
|
85
|
+
optional string errorText
|
|
86
|
+
# The exception object, if the javascript tool threw an error>
|
|
87
|
+
optional Runtime.RemoteObject exception
|
|
88
|
+
|
|
@@ -1122,6 +1122,14 @@ export namespace ProtocolMapping {
|
|
|
1122
1122
|
* Event fired when tools are removed.
|
|
1123
1123
|
*/
|
|
1124
1124
|
'WebMCP.toolsRemoved': [Protocol.WebMCP.ToolsRemovedEvent];
|
|
1125
|
+
/**
|
|
1126
|
+
* Event fired when a tool invocation starts.
|
|
1127
|
+
*/
|
|
1128
|
+
'WebMCP.toolInvoked': [Protocol.WebMCP.ToolInvokedEvent];
|
|
1129
|
+
/**
|
|
1130
|
+
* Event fired when a tool invocation completes or fails.
|
|
1131
|
+
*/
|
|
1132
|
+
'WebMCP.toolResponded': [Protocol.WebMCP.ToolRespondedEvent];
|
|
1125
1133
|
}
|
|
1126
1134
|
|
|
1127
1135
|
export interface Commands {
|
|
@@ -2618,6 +2626,13 @@ export namespace ProtocolMapping {
|
|
|
2618
2626
|
paramsType: [Protocol.Cast.StopCastingRequest];
|
|
2619
2627
|
returnType: void;
|
|
2620
2628
|
};
|
|
2629
|
+
/**
|
|
2630
|
+
* Returns all entries in the CrashReportContext across all frames in the page.
|
|
2631
|
+
*/
|
|
2632
|
+
'CrashReportContext.getEntries': {
|
|
2633
|
+
paramsType: [];
|
|
2634
|
+
returnType: Protocol.CrashReportContext.GetEntriesResponse;
|
|
2635
|
+
};
|
|
2621
2636
|
/**
|
|
2622
2637
|
* Collects class names for the node with given id and all of it's child nodes.
|
|
2623
2638
|
* @experimental
|
|
@@ -46,6 +46,8 @@ export namespace ProtocolProxyApi {
|
|
|
46
46
|
|
|
47
47
|
Cast: CastApi;
|
|
48
48
|
|
|
49
|
+
CrashReportContext: CrashReportContextApi;
|
|
50
|
+
|
|
49
51
|
DOM: DOMApi;
|
|
50
52
|
|
|
51
53
|
DOMDebugger: DOMDebuggerApi;
|
|
@@ -1514,6 +1516,14 @@ export namespace ProtocolProxyApi {
|
|
|
1514
1516
|
|
|
1515
1517
|
}
|
|
1516
1518
|
|
|
1519
|
+
export interface CrashReportContextApi {
|
|
1520
|
+
/**
|
|
1521
|
+
* Returns all entries in the CrashReportContext across all frames in the page.
|
|
1522
|
+
*/
|
|
1523
|
+
getEntries(): Promise<Protocol.CrashReportContext.GetEntriesResponse>;
|
|
1524
|
+
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1517
1527
|
export interface DOMApi {
|
|
1518
1528
|
/**
|
|
1519
1529
|
* Collects class names for the node with given id and all of it's child nodes.
|
|
@@ -5515,6 +5525,16 @@ export namespace ProtocolProxyApi {
|
|
|
5515
5525
|
*/
|
|
5516
5526
|
on(event: 'toolsRemoved', listener: (params: Protocol.WebMCP.ToolsRemovedEvent) => void): void;
|
|
5517
5527
|
|
|
5528
|
+
/**
|
|
5529
|
+
* Event fired when a tool invocation starts.
|
|
5530
|
+
*/
|
|
5531
|
+
on(event: 'toolInvoked', listener: (params: Protocol.WebMCP.ToolInvokedEvent) => void): void;
|
|
5532
|
+
|
|
5533
|
+
/**
|
|
5534
|
+
* Event fired when a tool invocation completes or fails.
|
|
5535
|
+
*/
|
|
5536
|
+
on(event: 'toolResponded', listener: (params: Protocol.WebMCP.ToolRespondedEvent) => void): void;
|
|
5537
|
+
|
|
5518
5538
|
}
|
|
5519
5539
|
}
|
|
5520
5540
|
|
|
@@ -46,6 +46,8 @@ export namespace ProtocolTestsProxyApi {
|
|
|
46
46
|
|
|
47
47
|
Cast: CastApi;
|
|
48
48
|
|
|
49
|
+
CrashReportContext: CrashReportContextApi;
|
|
50
|
+
|
|
49
51
|
DOM: DOMApi;
|
|
50
52
|
|
|
51
53
|
DOMDebugger: DOMDebuggerApi;
|
|
@@ -1604,6 +1606,14 @@ export namespace ProtocolTestsProxyApi {
|
|
|
1604
1606
|
|
|
1605
1607
|
}
|
|
1606
1608
|
|
|
1609
|
+
export interface CrashReportContextApi {
|
|
1610
|
+
/**
|
|
1611
|
+
* Returns all entries in the CrashReportContext across all frames in the page.
|
|
1612
|
+
*/
|
|
1613
|
+
getEntries(): Promise<{id: number, result: Protocol.CrashReportContext.GetEntriesResponse, sessionId: string}>;
|
|
1614
|
+
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1607
1617
|
export interface DOMApi {
|
|
1608
1618
|
/**
|
|
1609
1619
|
* Collects class names for the node with given id and all of it's child nodes.
|
|
@@ -5993,6 +6003,20 @@ export namespace ProtocolTestsProxyApi {
|
|
|
5993
6003
|
offToolsRemoved(listener: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => void): void;
|
|
5994
6004
|
onceToolsRemoved(eventMatcher?: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolsRemovedEvent }>;
|
|
5995
6005
|
|
|
6006
|
+
/**
|
|
6007
|
+
* Event fired when a tool invocation starts.
|
|
6008
|
+
*/
|
|
6009
|
+
onToolInvoked(listener: (event: { params: Protocol.WebMCP.ToolInvokedEvent }) => void): void;
|
|
6010
|
+
offToolInvoked(listener: (event: { params: Protocol.WebMCP.ToolInvokedEvent }) => void): void;
|
|
6011
|
+
onceToolInvoked(eventMatcher?: (event: { params: Protocol.WebMCP.ToolInvokedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolInvokedEvent }>;
|
|
6012
|
+
|
|
6013
|
+
/**
|
|
6014
|
+
* Event fired when a tool invocation completes or fails.
|
|
6015
|
+
*/
|
|
6016
|
+
onToolResponded(listener: (event: { params: Protocol.WebMCP.ToolRespondedEvent }) => void): void;
|
|
6017
|
+
offToolResponded(listener: (event: { params: Protocol.WebMCP.ToolRespondedEvent }) => void): void;
|
|
6018
|
+
onceToolResponded(eventMatcher?: (event: { params: Protocol.WebMCP.ToolRespondedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolRespondedEvent }>;
|
|
6019
|
+
|
|
5996
6020
|
}
|
|
5997
6021
|
}
|
|
5998
6022
|
|
package/types/protocol.d.ts
CHANGED
|
@@ -6846,6 +6846,29 @@ export namespace Protocol {
|
|
|
6846
6846
|
}
|
|
6847
6847
|
}
|
|
6848
6848
|
|
|
6849
|
+
/**
|
|
6850
|
+
* This domain exposes the current state of the CrashReportContext API.
|
|
6851
|
+
* @experimental
|
|
6852
|
+
*/
|
|
6853
|
+
export namespace CrashReportContext {
|
|
6854
|
+
|
|
6855
|
+
/**
|
|
6856
|
+
* Key-value pair in CrashReportContext.
|
|
6857
|
+
*/
|
|
6858
|
+
export interface CrashReportContextEntry {
|
|
6859
|
+
key: string;
|
|
6860
|
+
value: string;
|
|
6861
|
+
/**
|
|
6862
|
+
* The ID of the frame where the key-value pair was set.
|
|
6863
|
+
*/
|
|
6864
|
+
frameId: Page.FrameId;
|
|
6865
|
+
}
|
|
6866
|
+
|
|
6867
|
+
export interface GetEntriesResponse {
|
|
6868
|
+
entries: CrashReportContextEntry[];
|
|
6869
|
+
}
|
|
6870
|
+
}
|
|
6871
|
+
|
|
6849
6872
|
/**
|
|
6850
6873
|
* This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object
|
|
6851
6874
|
* that has an `id`. This `id` can be used to get additional information on the Node, resolve it into
|
|
@@ -22348,6 +22371,11 @@ export namespace Protocol {
|
|
|
22348
22371
|
autosubmit?: boolean;
|
|
22349
22372
|
}
|
|
22350
22373
|
|
|
22374
|
+
/**
|
|
22375
|
+
* Represents the status of a tool invocation.
|
|
22376
|
+
*/
|
|
22377
|
+
export type InvocationStatus = ('Success' | 'Canceled' | 'Error');
|
|
22378
|
+
|
|
22351
22379
|
/**
|
|
22352
22380
|
* Definition of a tool that can be invoked.
|
|
22353
22381
|
*/
|
|
@@ -22401,6 +22429,54 @@ export namespace Protocol {
|
|
|
22401
22429
|
*/
|
|
22402
22430
|
tools: Tool[];
|
|
22403
22431
|
}
|
|
22432
|
+
|
|
22433
|
+
/**
|
|
22434
|
+
* Event fired when a tool invocation starts.
|
|
22435
|
+
*/
|
|
22436
|
+
export interface ToolInvokedEvent {
|
|
22437
|
+
/**
|
|
22438
|
+
* Name of the tool to invoke.
|
|
22439
|
+
*/
|
|
22440
|
+
toolName: string;
|
|
22441
|
+
/**
|
|
22442
|
+
* Frame id
|
|
22443
|
+
*/
|
|
22444
|
+
frameId: Page.FrameId;
|
|
22445
|
+
/**
|
|
22446
|
+
* Invocation identifier.
|
|
22447
|
+
*/
|
|
22448
|
+
invocationId: string;
|
|
22449
|
+
/**
|
|
22450
|
+
* The input parameters used for the invocation.
|
|
22451
|
+
*/
|
|
22452
|
+
input: string;
|
|
22453
|
+
}
|
|
22454
|
+
|
|
22455
|
+
/**
|
|
22456
|
+
* Event fired when a tool invocation completes or fails.
|
|
22457
|
+
*/
|
|
22458
|
+
export interface ToolRespondedEvent {
|
|
22459
|
+
/**
|
|
22460
|
+
* Invocation identifier.
|
|
22461
|
+
*/
|
|
22462
|
+
invocationId: string;
|
|
22463
|
+
/**
|
|
22464
|
+
* Status of the invocation.
|
|
22465
|
+
*/
|
|
22466
|
+
status: InvocationStatus;
|
|
22467
|
+
/**
|
|
22468
|
+
* Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.
|
|
22469
|
+
*/
|
|
22470
|
+
output?: any;
|
|
22471
|
+
/**
|
|
22472
|
+
* Error text for protocol users.
|
|
22473
|
+
*/
|
|
22474
|
+
errorText?: string;
|
|
22475
|
+
/**
|
|
22476
|
+
* The exception object, if the javascript tool threw an error>
|
|
22477
|
+
*/
|
|
22478
|
+
exception?: Runtime.RemoteObject;
|
|
22479
|
+
}
|
|
22404
22480
|
}
|
|
22405
22481
|
}
|
|
22406
22482
|
|