Skip to content

Commit 07f7b82

Browse files
committed
Roll protocol to r1596832
1 parent 50eddc4 commit 07f7b82

File tree

9 files changed

+264
-73
lines changed

9 files changed

+264
-73
lines changed

changelog.md

Lines changed: 12 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11

22

3+
## Roll protocol to r1596832 — _2026-03-10T04:53:52.000Z_
4+
###### Diff: [`50eddc4...734ff67`](https://github.com/ChromeDevTools/devtools-protocol/compare/50eddc4...734ff67)
5+
6+
```diff
7+
@@ browser_protocol.pdl:56 @@ include domains/Tethering.pdl
8+
include domains/Tracing.pdl
9+
include domains/WebAudio.pdl
10+
include domains/WebAuthn.pdl
11+
+include domains/WebMCP.pdl
12+
```
13+
314
## Roll protocol to r1595872 — _2026-03-07T04:48:07.000Z_
4-
###### Diff: [`374f160...05d7571`](https://github.com/ChromeDevTools/devtools-protocol/compare/374f160...05d7571)
15+
###### Diff: [`374f160...50eddc4`](https://github.com/ChromeDevTools/devtools-protocol/compare/374f160...50eddc4)
516

617
```diff
718
@@ domains/Audits.pdl:258 @@ experimental domain Audits
@@ -42290,73 +42301,4 @@ index 0dbdc01d..7a3c772c 100644
4229042301
+ optional Page.FrameId frameId
4229142302
# Credit card information to fill out the form. Credit card data is not saved.
4229242303
CreditCard card
42293-
```
42294-
42295-
## Roll protocol to r1143632 — _2023-05-13T04:26:23.000Z_
42296-
###### Diff: [`53a0f38...3c6f201`](https://github.com/ChromeDevTools/devtools-protocol/compare/53a0f38...3c6f201)
42297-
42298-
```diff
42299-
@@ browser_protocol.pdl:10996 @@ experimental domain Preload
42300-
SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation
42301-
MemoryPressureOnTrigger
42302-
MemoryPressureAfterTriggered
42303-
+ SpeculationRuleRemoved
42304-
+ TriggerPageNavigated
42305-
+ OtherPrerenderedPageActivated
42306-
42307-
# Fired when a prerender attempt is completed.
42308-
event prerenderAttemptCompleted
42309-
@@ -11035,6 +11038,44 @@ experimental domain Preload
42310-
# PreloadingTriggeringOutcome which not used by prefetch nor prerender.
42311-
NotSupported
42312-
42313-
+ # TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
42314-
+ # filter out the ones that aren't necessary to the developers.
42315-
+ type PrefetchStatus extends string
42316-
+ enum
42317-
+ # Prefetch is not disabled by PrefetchHeldback.
42318-
+ PrefetchAllowed
42319-
+ PrefetchFailedIneligibleRedirect
42320-
+ PrefetchFailedInvalidRedirect
42321-
+ PrefetchFailedMIMENotSupported
42322-
+ PrefetchFailedNetError
42323-
+ PrefetchFailedNon2XX
42324-
+ PrefetchFailedPerPageLimitExceeded
42325-
+ PrefetchHeldback
42326-
+ # A previous prefetch to the origin got a HTTP 503 response with an
42327-
+ # Retry-After header that has no elapsed yet.
42328-
+ PrefetchIneligibleRetryAfter
42329-
+ PrefetchIsPrivacyDecoy
42330-
+ PrefetchIsStale
42331-
+ PrefetchNotEligibleBrowserContextOffTheRecord
42332-
+ PrefetchNotEligibleDataSaverEnabled
42333-
+ PrefetchNotEligibleExistingProxy
42334-
+ PrefetchNotEligibleHostIsNonUnique
42335-
+ PrefetchNotEligibleNonDefaultStoragePartition
42336-
+ PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy
42337-
+ PrefetchNotEligibleSchemeIsNotHttps
42338-
+ PrefetchNotEligibleUserHasCookies
42339-
+ PrefetchNotEligibleUserHasServiceWorker
42340-
+ PrefetchNotFinishedInTime
42341-
+ PrefetchNotStarted
42342-
+ PrefetchNotUsedCookiesChanged
42343-
+ PrefetchProxyNotAvailable
42344-
+ # The response of the prefetch is used for the next navigation. This is
42345-
+ # the final successful state.
42346-
+ PrefetchResponseUsed
42347-
+ # The prefetch finished successfully but was never used.
42348-
+ PrefetchSuccessfulButNotUsed
42349-
+ PrefetchNotUsedProbeFailed
42350-
+
42351-
# Fired when a prefetch attempt is updated.
42352-
event prefetchStatusUpdated
42353-
parameters
42354-
@@ -11043,6 +11084,7 @@ experimental domain Preload
42355-
Page.FrameId initiatingFrameId
42356-
string prefetchUrl
42357-
PreloadingStatus status
42358-
+ PrefetchStatus prefetchStatus
42359-
42360-
# Fired when a prerender attempt is updated.
42361-
event prerenderStatusUpdated
4236242304
```

json/browser_protocol.json

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31384,6 +31384,118 @@
3138431384
]
3138531385
}
3138631386
]
31387+
},
31388+
{
31389+
"domain": "WebMCP",
31390+
"experimental": true,
31391+
"dependencies": [
31392+
"Runtime",
31393+
"Page",
31394+
"DOM"
31395+
],
31396+
"types": [
31397+
{
31398+
"id": "Annotation",
31399+
"description": "Tool annotations",
31400+
"type": "object",
31401+
"properties": [
31402+
{
31403+
"name": "readOnly",
31404+
"description": "A hint indicating that the tool does not modify any state.",
31405+
"optional": true,
31406+
"type": "boolean"
31407+
},
31408+
{
31409+
"name": "autosubmit",
31410+
"description": "If the declarative tool was declared with the autosubmit attribute.",
31411+
"optional": true,
31412+
"type": "boolean"
31413+
}
31414+
]
31415+
},
31416+
{
31417+
"id": "Tool",
31418+
"description": "Definition of a tool that can be invoked.",
31419+
"type": "object",
31420+
"properties": [
31421+
{
31422+
"name": "name",
31423+
"description": "Tool name.",
31424+
"type": "string"
31425+
},
31426+
{
31427+
"name": "description",
31428+
"description": "Tool description.",
31429+
"type": "string"
31430+
},
31431+
{
31432+
"name": "inputSchema",
31433+
"description": "Schema for the tool's input parameters.",
31434+
"optional": true,
31435+
"type": "object"
31436+
},
31437+
{
31438+
"name": "annotations",
31439+
"description": "Optional annotations for the tool.",
31440+
"optional": true,
31441+
"$ref": "Annotation"
31442+
},
31443+
{
31444+
"name": "frameId",
31445+
"description": "Frame identifier associated with the tool registration.",
31446+
"$ref": "Page.FrameId"
31447+
},
31448+
{
31449+
"name": "backendNodeId",
31450+
"description": "Optional node ID for declarative tools.",
31451+
"optional": true,
31452+
"$ref": "DOM.BackendNodeId"
31453+
},
31454+
{
31455+
"name": "stackTrace",
31456+
"description": "The stack trace at the time of the registration.",
31457+
"optional": true,
31458+
"$ref": "Runtime.StackTrace"
31459+
}
31460+
]
31461+
}
31462+
],
31463+
"commands": [
31464+
{
31465+
"name": "enable",
31466+
"description": "Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for\nall currently registered tools."
31467+
}
31468+
],
31469+
"events": [
31470+
{
31471+
"name": "toolsAdded",
31472+
"description": "Event fired when new tools are added.",
31473+
"parameters": [
31474+
{
31475+
"name": "tools",
31476+
"description": "Array of tools that were added.",
31477+
"type": "array",
31478+
"items": {
31479+
"$ref": "Tool"
31480+
}
31481+
}
31482+
]
31483+
},
31484+
{
31485+
"name": "toolsRemoved",
31486+
"description": "Event fired when tools are removed.",
31487+
"parameters": [
31488+
{
31489+
"name": "tools",
31490+
"description": "Array of tools that were removed.",
31491+
"type": "array",
31492+
"items": {
31493+
"$ref": "Tool"
31494+
}
31495+
}
31496+
]
31497+
}
31498+
]
3138731499
}
3138831500
]
3138931501
}

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.1595872",
3+
"version": "0.0.1596832",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/browser_protocol.pdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ include domains/Tethering.pdl
5656
include domains/Tracing.pdl
5757
include domains/WebAudio.pdl
5858
include domains/WebAuthn.pdl
59+
include domains/WebMCP.pdl

types/protocol-mapping.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,14 @@ export namespace ProtocolMapping {
11141114
* Triggered when a credential is used in a webauthn assertion.
11151115
*/
11161116
'WebAuthn.credentialAsserted': [Protocol.WebAuthn.CredentialAssertedEvent];
1117+
/**
1118+
* Event fired when new tools are added.
1119+
*/
1120+
'WebMCP.toolsAdded': [Protocol.WebMCP.ToolsAddedEvent];
1121+
/**
1122+
* Event fired when tools are removed.
1123+
*/
1124+
'WebMCP.toolsRemoved': [Protocol.WebMCP.ToolsRemovedEvent];
11171125
}
11181126

11191127
export interface Commands {
@@ -6318,6 +6326,14 @@ export namespace ProtocolMapping {
63186326
paramsType: [Protocol.WebAuthn.SetCredentialPropertiesRequest];
63196327
returnType: void;
63206328
};
6329+
/**
6330+
* Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for
6331+
* all currently registered tools.
6332+
*/
6333+
'WebMCP.enable': {
6334+
paramsType: [];
6335+
returnType: void;
6336+
};
63216337
}
63226338
}
63236339

types/protocol-proxy-api.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ export namespace ProtocolProxyApi {
122122

123123
WebAuthn: WebAuthnApi;
124124

125+
WebMCP: WebMCPApi;
126+
125127
}
126128

127129

@@ -5495,6 +5497,25 @@ export namespace ProtocolProxyApi {
54955497
on(event: 'credentialAsserted', listener: (params: Protocol.WebAuthn.CredentialAssertedEvent) => void): void;
54965498

54975499
}
5500+
5501+
export interface WebMCPApi {
5502+
/**
5503+
* Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for
5504+
* all currently registered tools.
5505+
*/
5506+
enable(): Promise<void>;
5507+
5508+
/**
5509+
* Event fired when new tools are added.
5510+
*/
5511+
on(event: 'toolsAdded', listener: (params: Protocol.WebMCP.ToolsAddedEvent) => void): void;
5512+
5513+
/**
5514+
* Event fired when tools are removed.
5515+
*/
5516+
on(event: 'toolsRemoved', listener: (params: Protocol.WebMCP.ToolsRemovedEvent) => void): void;
5517+
5518+
}
54985519
}
54995520

55005521
export default ProtocolProxyApi;

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ export namespace ProtocolTestsProxyApi {
122122

123123
WebAuthn: WebAuthnApi;
124124

125+
WebMCP: WebMCPApi;
126+
125127
}
126128

127129

@@ -5969,6 +5971,29 @@ export namespace ProtocolTestsProxyApi {
59695971
onceCredentialAsserted(eventMatcher?: (event: { params: Protocol.WebAuthn.CredentialAssertedEvent }) => boolean): Promise<{ params: Protocol.WebAuthn.CredentialAssertedEvent }>;
59705972

59715973
}
5974+
5975+
export interface WebMCPApi {
5976+
/**
5977+
* Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for
5978+
* all currently registered tools.
5979+
*/
5980+
enable(): Promise<{id: number, result: void, sessionId: string}>;
5981+
5982+
/**
5983+
* Event fired when new tools are added.
5984+
*/
5985+
onToolsAdded(listener: (event: { params: Protocol.WebMCP.ToolsAddedEvent }) => void): void;
5986+
offToolsAdded(listener: (event: { params: Protocol.WebMCP.ToolsAddedEvent }) => void): void;
5987+
onceToolsAdded(eventMatcher?: (event: { params: Protocol.WebMCP.ToolsAddedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolsAddedEvent }>;
5988+
5989+
/**
5990+
* Event fired when tools are removed.
5991+
*/
5992+
onToolsRemoved(listener: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => void): void;
5993+
offToolsRemoved(listener: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => void): void;
5994+
onceToolsRemoved(eventMatcher?: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolsRemovedEvent }>;
5995+
5996+
}
59725997
}
59735998

59745999
export default ProtocolTestsProxyApi;

0 commit comments

Comments
 (0)