Skip to content

Commit 94a770f

Browse files
committed
Roll protocol to r1603894
1 parent 169ca38 commit 94a770f

File tree

9 files changed

+252
-58
lines changed

9 files changed

+252
-58
lines changed

changelog.md

Lines changed: 59 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,65 @@
11

22

3+
## Roll protocol to r1603894 — _2026-03-24T05:02:01.000Z_
4+
###### Diff: [`169ca38...b44d11f`](https://github.com/ChromeDevTools/devtools-protocol/compare/169ca38...b44d11f)
5+
6+
```diff
7+
@@ domains/WebMCP.pdl:11 @@ experimental domain WebMCP
8+
9+
# Tool annotations
10+
type Annotation extends object
11+
+
12+
properties
13+
# A hint indicating that the tool does not modify any state.
14+
optional boolean readOnly
15+
# If the declarative tool was declared with the autosubmit attribute.
16+
optional boolean autosubmit
17+
18+
+ # Represents the status of a tool invocation.
19+
+ type InvocationStatus extends string
20+
+ enum
21+
+ Success
22+
+ Canceled
23+
+ Error
24+
+
25+
# Definition of a tool that can be invoked.
26+
type Tool extends object
27+
properties
28+
@@ -51,3 +59,30 @@ experimental domain WebMCP
29+
parameters
30+
# Array of tools that were removed.
31+
array of Tool tools
32+
+
33+
+ # Event fired when a tool invocation starts.
34+
+ event toolInvoked
35+
+ parameters
36+
+ # Name of the tool to invoke.
37+
+ string toolName
38+
+ # Frame id
39+
+ Page.FrameId frameId
40+
+ # Invocation identifier.
41+
+ string invocationId
42+
+ # The input parameters used for the invocation.
43+
+ string input
44+
+
45+
+ # Event fired when a tool invocation completes or fails.
46+
+ event toolResponded
47+
+ parameters
48+
+ # Invocation identifier.
49+
+ string invocationId
50+
+ # Status of the invocation.
51+
+ InvocationStatus status
52+
+ # Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.
53+
+ optional object output
54+
+ # Error text for protocol users.
55+
+ optional string errorText
56+
+ # The exception object, if the javascript tool threw an error>
57+
+ optional Runtime.RemoteObject exception
58+
+
59+
```
60+
361
## Roll protocol to r1602427 — _2026-03-20T04:57:27.000Z_
4-
###### Diff: [`7a16bec...c588f6e`](https://github.com/ChromeDevTools/devtools-protocol/compare/7a16bec...c588f6e)
62+
###### Diff: [`7a16bec...169ca38`](https://github.com/ChromeDevTools/devtools-protocol/compare/7a16bec...169ca38)
563

664
```diff
765
@@ domains/DOM.pdl:13 @@ @@ -13,6 +13,7 @@
@@ -42721,58 +42779,4 @@ index 7a3c772c..ed622630 100644
4272142779
#Blocklisted features
4272242780
WebSocket
4272342781
WebTransport
42724-
```
42725-
42726-
## Roll protocol to r1149535 — _2023-05-26T04:26:25.000Z_
42727-
###### Diff: [`4f898ab...44ad3c8`](https://github.com/ChromeDevTools/devtools-protocol/compare/4f898ab...44ad3c8)
42728-
42729-
```diff
42730-
@@ browser_protocol.pdl:8631 @@ domain Page
42731-
# Base64-encoded data
42732-
binary data
42733-
42734-
+ # Enable/disable prerendering manually.
42735-
+ #
42736-
+ # This command is a short-term solution for https://crbug.com/1440085.
42737-
+ # See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA
42738-
+ # for more details.
42739-
+ #
42740-
+ # TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
42741-
+ experimental command setPrerenderingAllowed
42742-
+ parameters
42743-
+ boolean isAllowed
42744-
+
42745-
domain Performance
42746-
42747-
# Run-time execution metric.
42748-
@@ -11036,6 +11047,7 @@ experimental domain Preload
42749-
SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation
42750-
MemoryPressureOnTrigger
42751-
MemoryPressureAfterTriggered
42752-
+ PrerenderingDisabledByDevTools
42753-
42754-
# Fired when a prerender attempt is completed.
42755-
event prerenderAttemptCompleted
42756-
diff --git a/pdl/js_protocol.pdl b/pdl/js_protocol.pdl
42757-
index 0dbdc01d..7a3c772c 100644
42758-
--- a/pdl/js_protocol.pdl
42759-
+++ b/pdl/js_protocol.pdl
42760-
@@ -1443,7 +1443,7 @@ domain Runtime
42761-
# resulting `objectId` is still provided.
42762-
deprecated optional boolean generateWebDriverValue
42763-
# Specifies the result serialization. If provided, overrides
42764-
- # `returnByValue` and `generateWebDriverValue`.
42765-
+ # `generatePreview`, `returnByValue` and `generateWebDriverValue`.
42766-
experimental optional SerializationOptions serializationOptions
42767-
42768-
returns
42769-
@@ -1538,7 +1538,7 @@ domain Runtime
42770-
# resulting `objectId` is still provided.
42771-
deprecated optional boolean generateWebDriverValue
42772-
# Specifies the result serialization. If provided, overrides
42773-
- # `returnByValue` and `generateWebDriverValue`.
42774-
+ # `generatePreview`, `returnByValue` and `generateWebDriverValue`.
42775-
experimental optional SerializationOptions serializationOptions
42776-
returns
42777-
# Evaluation result.
4277842782
```

json/browser_protocol.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31418,6 +31418,16 @@
3141831418
}
3141931419
]
3142031420
},
31421+
{
31422+
"id": "InvocationStatus",
31423+
"description": "Represents the status of a tool invocation.",
31424+
"type": "string",
31425+
"enum": [
31426+
"Success",
31427+
"Canceled",
31428+
"Error"
31429+
]
31430+
},
3142131431
{
3142231432
"id": "Tool",
3142331433
"description": "Definition of a tool that can be invoked.",
@@ -31499,6 +31509,66 @@
3149931509
}
3150031510
}
3150131511
]
31512+
},
31513+
{
31514+
"name": "toolInvoked",
31515+
"description": "Event fired when a tool invocation starts.",
31516+
"parameters": [
31517+
{
31518+
"name": "toolName",
31519+
"description": "Name of the tool to invoke.",
31520+
"type": "string"
31521+
},
31522+
{
31523+
"name": "frameId",
31524+
"description": "Frame id",
31525+
"$ref": "Page.FrameId"
31526+
},
31527+
{
31528+
"name": "invocationId",
31529+
"description": "Invocation identifier.",
31530+
"type": "string"
31531+
},
31532+
{
31533+
"name": "input",
31534+
"description": "The input parameters used for the invocation.",
31535+
"type": "string"
31536+
}
31537+
]
31538+
},
31539+
{
31540+
"name": "toolResponded",
31541+
"description": "Event fired when a tool invocation completes or fails.",
31542+
"parameters": [
31543+
{
31544+
"name": "invocationId",
31545+
"description": "Invocation identifier.",
31546+
"type": "string"
31547+
},
31548+
{
31549+
"name": "status",
31550+
"description": "Status of the invocation.",
31551+
"$ref": "InvocationStatus"
31552+
},
31553+
{
31554+
"name": "output",
31555+
"description": "Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.",
31556+
"optional": true,
31557+
"type": "object"
31558+
},
31559+
{
31560+
"name": "errorText",
31561+
"description": "Error text for protocol users.",
31562+
"optional": true,
31563+
"type": "string"
31564+
},
31565+
{
31566+
"name": "exception",
31567+
"description": "The exception object, if the javascript tool threw an error>",
31568+
"optional": true,
31569+
"$ref": "Runtime.RemoteObject"
31570+
}
31571+
]
3150231572
}
3150331573
]
3150431574
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-protocol",
3-
"version": "0.0.1602427",
3+
"version": "0.0.1603894",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/domains/WebMCP.pdl

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,20 @@ experimental domain WebMCP
1111

1212
# Tool annotations
1313
type Annotation extends object
14+
1415
properties
1516
# A hint indicating that the tool does not modify any state.
1617
optional boolean readOnly
1718
# If the declarative tool was declared with the autosubmit attribute.
1819
optional boolean autosubmit
1920

21+
# Represents the status of a tool invocation.
22+
type InvocationStatus extends string
23+
enum
24+
Success
25+
Canceled
26+
Error
27+
2028
# Definition of a tool that can be invoked.
2129
type Tool extends object
2230
properties
@@ -51,3 +59,30 @@ experimental domain WebMCP
5159
parameters
5260
# Array of tools that were removed.
5361
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+

types/protocol-mapping.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,14 @@ export namespace ProtocolMapping {
11221122
* Event fired when tools are removed.
11231123
*/
11241124
'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];
11251133
}
11261134

11271135
export interface Commands {

types/protocol-proxy-api.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5515,6 +5515,16 @@ export namespace ProtocolProxyApi {
55155515
*/
55165516
on(event: 'toolsRemoved', listener: (params: Protocol.WebMCP.ToolsRemovedEvent) => void): void;
55175517

5518+
/**
5519+
* Event fired when a tool invocation starts.
5520+
*/
5521+
on(event: 'toolInvoked', listener: (params: Protocol.WebMCP.ToolInvokedEvent) => void): void;
5522+
5523+
/**
5524+
* Event fired when a tool invocation completes or fails.
5525+
*/
5526+
on(event: 'toolResponded', listener: (params: Protocol.WebMCP.ToolRespondedEvent) => void): void;
5527+
55185528
}
55195529
}
55205530

types/protocol-tests-proxy-api.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5993,6 +5993,20 @@ export namespace ProtocolTestsProxyApi {
59935993
offToolsRemoved(listener: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => void): void;
59945994
onceToolsRemoved(eventMatcher?: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolsRemovedEvent }>;
59955995

5996+
/**
5997+
* Event fired when a tool invocation starts.
5998+
*/
5999+
onToolInvoked(listener: (event: { params: Protocol.WebMCP.ToolInvokedEvent }) => void): void;
6000+
offToolInvoked(listener: (event: { params: Protocol.WebMCP.ToolInvokedEvent }) => void): void;
6001+
onceToolInvoked(eventMatcher?: (event: { params: Protocol.WebMCP.ToolInvokedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolInvokedEvent }>;
6002+
6003+
/**
6004+
* Event fired when a tool invocation completes or fails.
6005+
*/
6006+
onToolResponded(listener: (event: { params: Protocol.WebMCP.ToolRespondedEvent }) => void): void;
6007+
offToolResponded(listener: (event: { params: Protocol.WebMCP.ToolRespondedEvent }) => void): void;
6008+
onceToolResponded(eventMatcher?: (event: { params: Protocol.WebMCP.ToolRespondedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolRespondedEvent }>;
6009+
59966010
}
59976011
}
59986012

0 commit comments

Comments
 (0)