devtools-protocol 0.0.1732152 → 0.0.1733639
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 +33 -8
- package/package.json +1 -1
- package/pdl/domains/Browser.pdl +0 -1
- package/pdl/domains/Page.pdl +0 -2
- package/pdl/domains/WebMCP.pdl +17 -2
- package/types/protocol.d.ts +31 -6
|
@@ -3763,7 +3763,6 @@
|
|
|
3763
3763
|
"smartCard",
|
|
3764
3764
|
"speakerSelection",
|
|
3765
3765
|
"storageAccess",
|
|
3766
|
-
"topLevelStorageAccess",
|
|
3767
3766
|
"videoCapture",
|
|
3768
3767
|
"vr",
|
|
3769
3768
|
"wakeLockScreen",
|
|
@@ -22082,7 +22081,6 @@
|
|
|
22082
22081
|
"autofill",
|
|
22083
22082
|
"autoplay",
|
|
22084
22083
|
"bluetooth",
|
|
22085
|
-
"browsing-topics",
|
|
22086
22084
|
"camera",
|
|
22087
22085
|
"captured-surface-control",
|
|
22088
22086
|
"ch-dpr",
|
|
@@ -22136,7 +22134,6 @@
|
|
|
22136
22134
|
"hid",
|
|
22137
22135
|
"identity-credentials-get",
|
|
22138
22136
|
"idle-detection",
|
|
22139
|
-
"interest-cohort",
|
|
22140
22137
|
"keyboard-map",
|
|
22141
22138
|
"language-detector",
|
|
22142
22139
|
"language-model",
|
|
@@ -31007,11 +31004,21 @@
|
|
|
31007
31004
|
"Error"
|
|
31008
31005
|
]
|
|
31009
31006
|
},
|
|
31007
|
+
{
|
|
31008
|
+
"id": "ToolId",
|
|
31009
|
+
"description": "Unique identifier of a registered tool. A new identifier is created every time a tool is registered, so a tool that\nis unregistered and then registered again under the same name gets a different identifier. Clients should treat it\nas an opaque string.",
|
|
31010
|
+
"type": "string"
|
|
31011
|
+
},
|
|
31010
31012
|
{
|
|
31011
31013
|
"id": "Tool",
|
|
31012
31014
|
"description": "Definition of a tool that can be invoked.",
|
|
31013
31015
|
"type": "object",
|
|
31014
31016
|
"properties": [
|
|
31017
|
+
{
|
|
31018
|
+
"name": "toolId",
|
|
31019
|
+
"description": "Tool identifier.",
|
|
31020
|
+
"$ref": "ToolId"
|
|
31021
|
+
},
|
|
31015
31022
|
{
|
|
31016
31023
|
"name": "name",
|
|
31017
31024
|
"description": "Tool name.",
|
|
@@ -31028,6 +31035,12 @@
|
|
|
31028
31035
|
"optional": true,
|
|
31029
31036
|
"type": "object"
|
|
31030
31037
|
},
|
|
31038
|
+
{
|
|
31039
|
+
"name": "outputSchema",
|
|
31040
|
+
"description": "Schema for the tool's output structure.",
|
|
31041
|
+
"optional": true,
|
|
31042
|
+
"type": "object"
|
|
31043
|
+
},
|
|
31031
31044
|
{
|
|
31032
31045
|
"name": "annotations",
|
|
31033
31046
|
"description": "Optional annotations for the tool.",
|
|
@@ -31058,6 +31071,11 @@
|
|
|
31058
31071
|
"description": "Definition of a tool that was removed.",
|
|
31059
31072
|
"type": "object",
|
|
31060
31073
|
"properties": [
|
|
31074
|
+
{
|
|
31075
|
+
"name": "toolId",
|
|
31076
|
+
"description": "Identifier of the removed tool.",
|
|
31077
|
+
"$ref": "ToolId"
|
|
31078
|
+
},
|
|
31061
31079
|
{
|
|
31062
31080
|
"name": "name",
|
|
31063
31081
|
"description": "Tool name.",
|
|
@@ -31153,11 +31171,6 @@
|
|
|
31153
31171
|
"name": "toolInvoked",
|
|
31154
31172
|
"description": "Event fired when a tool invocation starts.",
|
|
31155
31173
|
"parameters": [
|
|
31156
|
-
{
|
|
31157
|
-
"name": "toolName",
|
|
31158
|
-
"description": "Name of the tool to invoke.",
|
|
31159
|
-
"type": "string"
|
|
31160
|
-
},
|
|
31161
31174
|
{
|
|
31162
31175
|
"name": "frameId",
|
|
31163
31176
|
"description": "Frame id",
|
|
@@ -31172,6 +31185,18 @@
|
|
|
31172
31185
|
"name": "input",
|
|
31173
31186
|
"description": "The input parameters used for the invocation.",
|
|
31174
31187
|
"type": "string"
|
|
31188
|
+
},
|
|
31189
|
+
{
|
|
31190
|
+
"name": "toolName",
|
|
31191
|
+
"description": "Name of the tool to invoke. Missing if the tool was invoked by its identifier, but could not be found (e.g.,\nit was already unregistered), so its name could not be recovered.",
|
|
31192
|
+
"optional": true,
|
|
31193
|
+
"type": "string"
|
|
31194
|
+
},
|
|
31195
|
+
{
|
|
31196
|
+
"name": "toolId",
|
|
31197
|
+
"description": "Identifier of the tool to invoke. Missing if the tool was invoked by name, but could not be found, so its\nidentifier could not be recovered.",
|
|
31198
|
+
"optional": true,
|
|
31199
|
+
"$ref": "ToolId"
|
|
31175
31200
|
}
|
|
31176
31201
|
]
|
|
31177
31202
|
},
|
package/package.json
CHANGED
package/pdl/domains/Browser.pdl
CHANGED
package/pdl/domains/Page.pdl
CHANGED
|
@@ -77,7 +77,6 @@ domain Page
|
|
|
77
77
|
autofill
|
|
78
78
|
autoplay
|
|
79
79
|
bluetooth
|
|
80
|
-
browsing-topics
|
|
81
80
|
camera
|
|
82
81
|
captured-surface-control
|
|
83
82
|
ch-dpr
|
|
@@ -131,7 +130,6 @@ domain Page
|
|
|
131
130
|
hid
|
|
132
131
|
identity-credentials-get
|
|
133
132
|
idle-detection
|
|
134
|
-
interest-cohort
|
|
135
133
|
keyboard-map
|
|
136
134
|
language-detector
|
|
137
135
|
language-model
|
package/pdl/domains/WebMCP.pdl
CHANGED
|
@@ -31,15 +31,24 @@ experimental domain WebMCP
|
|
|
31
31
|
Canceled
|
|
32
32
|
Error
|
|
33
33
|
|
|
34
|
+
# Unique identifier of a registered tool. A new identifier is created every time a tool is registered, so a tool that
|
|
35
|
+
# is unregistered and then registered again under the same name gets a different identifier. Clients should treat it
|
|
36
|
+
# as an opaque string.
|
|
37
|
+
type ToolId extends string
|
|
38
|
+
|
|
34
39
|
# Definition of a tool that can be invoked.
|
|
35
40
|
type Tool extends object
|
|
36
41
|
properties
|
|
42
|
+
# Tool identifier.
|
|
43
|
+
ToolId toolId
|
|
37
44
|
# Tool name.
|
|
38
45
|
string name
|
|
39
46
|
# Tool description.
|
|
40
47
|
string description
|
|
41
48
|
# Schema for the tool's input parameters.
|
|
42
49
|
optional object inputSchema
|
|
50
|
+
# Schema for the tool's output structure.
|
|
51
|
+
optional object outputSchema
|
|
43
52
|
# Optional annotations for the tool.
|
|
44
53
|
optional Annotation annotations
|
|
45
54
|
# Frame identifier associated with the tool registration.
|
|
@@ -85,6 +94,8 @@ experimental domain WebMCP
|
|
|
85
94
|
# Definition of a tool that was removed.
|
|
86
95
|
type RemovedTool extends object
|
|
87
96
|
properties
|
|
97
|
+
# Identifier of the removed tool.
|
|
98
|
+
ToolId toolId
|
|
88
99
|
# Tool name.
|
|
89
100
|
string name
|
|
90
101
|
# Frame identifier associated with the tool registration.
|
|
@@ -99,14 +110,18 @@ experimental domain WebMCP
|
|
|
99
110
|
# Event fired when a tool invocation starts.
|
|
100
111
|
event toolInvoked
|
|
101
112
|
parameters
|
|
102
|
-
# Name of the tool to invoke.
|
|
103
|
-
string toolName
|
|
104
113
|
# Frame id
|
|
105
114
|
Page.FrameId frameId
|
|
106
115
|
# Invocation identifier.
|
|
107
116
|
string invocationId
|
|
108
117
|
# The input parameters used for the invocation.
|
|
109
118
|
string input
|
|
119
|
+
# Name of the tool to invoke. Missing if the tool was invoked by its identifier, but could not be found (e.g.,
|
|
120
|
+
# it was already unregistered), so its name could not be recovered.
|
|
121
|
+
optional string toolName
|
|
122
|
+
# Identifier of the tool to invoke. Missing if the tool was invoked by name, but could not be found, so its
|
|
123
|
+
# identifier could not be recovered.
|
|
124
|
+
optional ToolId toolId
|
|
110
125
|
|
|
111
126
|
# Event fired when a tool invocation completes or fails.
|
|
112
127
|
event toolResponded
|
package/types/protocol.d.ts
CHANGED
|
@@ -4743,7 +4743,7 @@ export namespace Protocol {
|
|
|
4743
4743
|
/**
|
|
4744
4744
|
* @experimental
|
|
4745
4745
|
*/
|
|
4746
|
-
export type PermissionType = ('ar' | 'audioCapture' | 'automaticFullscreen' | 'backgroundFetch' | 'backgroundSync' | 'cameraPanTiltZoom' | 'capturedSurfaceControl' | 'clipboardReadWrite' | 'clipboardSanitizedWrite' | 'displayCapture' | 'durableStorage' | 'geolocation' | 'handTracking' | 'idleDetection' | 'keyboardLock' | 'localFonts' | 'localNetwork' | 'localNetworkAccess' | 'loopbackNetwork' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'paymentHandler' | 'periodicBackgroundSync' | 'pointerLock' | 'protectedMediaIdentifier' | 'sensors' | 'smartCard' | 'speakerSelection' | 'storageAccess' | '
|
|
4746
|
+
export type PermissionType = ('ar' | 'audioCapture' | 'automaticFullscreen' | 'backgroundFetch' | 'backgroundSync' | 'cameraPanTiltZoom' | 'capturedSurfaceControl' | 'clipboardReadWrite' | 'clipboardSanitizedWrite' | 'displayCapture' | 'durableStorage' | 'geolocation' | 'handTracking' | 'idleDetection' | 'keyboardLock' | 'localFonts' | 'localNetwork' | 'localNetworkAccess' | 'loopbackNetwork' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'paymentHandler' | 'periodicBackgroundSync' | 'pointerLock' | 'protectedMediaIdentifier' | 'sensors' | 'smartCard' | 'speakerSelection' | 'storageAccess' | 'videoCapture' | 'vr' | 'wakeLockScreen' | 'wakeLockSystem' | 'webAppInstallation' | 'webPrinting' | 'windowManagement');
|
|
4747
4747
|
|
|
4748
4748
|
/**
|
|
4749
4749
|
* @experimental
|
|
@@ -16896,7 +16896,7 @@ export namespace Protocol {
|
|
|
16896
16896
|
* in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
|
|
16897
16897
|
* @experimental
|
|
16898
16898
|
*/
|
|
16899
|
-
export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | '
|
|
16899
|
+
export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'haptics' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'publickey-credentials-remote-client-data-json' | 'rewriter' | 'screen-wake-lock' | 'serial' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'tools' | 'translator' | 'unbounded-element' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'webnn' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
|
|
16900
16900
|
|
|
16901
16901
|
/**
|
|
16902
16902
|
* Reason for a permissions policy feature to be disabled.
|
|
@@ -22244,10 +22244,21 @@ export namespace Protocol {
|
|
|
22244
22244
|
*/
|
|
22245
22245
|
export type InvocationStatus = ('Completed' | 'Canceled' | 'Error');
|
|
22246
22246
|
|
|
22247
|
+
/**
|
|
22248
|
+
* Unique identifier of a registered tool. A new identifier is created every time a tool is registered, so a tool that
|
|
22249
|
+
* is unregistered and then registered again under the same name gets a different identifier. Clients should treat it
|
|
22250
|
+
* as an opaque string.
|
|
22251
|
+
*/
|
|
22252
|
+
export type ToolId = string;
|
|
22253
|
+
|
|
22247
22254
|
/**
|
|
22248
22255
|
* Definition of a tool that can be invoked.
|
|
22249
22256
|
*/
|
|
22250
22257
|
export interface Tool {
|
|
22258
|
+
/**
|
|
22259
|
+
* Tool identifier.
|
|
22260
|
+
*/
|
|
22261
|
+
toolId: ToolId;
|
|
22251
22262
|
/**
|
|
22252
22263
|
* Tool name.
|
|
22253
22264
|
*/
|
|
@@ -22260,6 +22271,10 @@ export namespace Protocol {
|
|
|
22260
22271
|
* Schema for the tool's input parameters.
|
|
22261
22272
|
*/
|
|
22262
22273
|
inputSchema?: any;
|
|
22274
|
+
/**
|
|
22275
|
+
* Schema for the tool's output structure.
|
|
22276
|
+
*/
|
|
22277
|
+
outputSchema?: any;
|
|
22263
22278
|
/**
|
|
22264
22279
|
* Optional annotations for the tool.
|
|
22265
22280
|
*/
|
|
@@ -22282,6 +22297,10 @@ export namespace Protocol {
|
|
|
22282
22297
|
* Definition of a tool that was removed.
|
|
22283
22298
|
*/
|
|
22284
22299
|
export interface RemovedTool {
|
|
22300
|
+
/**
|
|
22301
|
+
* Identifier of the removed tool.
|
|
22302
|
+
*/
|
|
22303
|
+
toolId: ToolId;
|
|
22285
22304
|
/**
|
|
22286
22305
|
* Tool name.
|
|
22287
22306
|
*/
|
|
@@ -22345,10 +22364,6 @@ export namespace Protocol {
|
|
|
22345
22364
|
* Event fired when a tool invocation starts.
|
|
22346
22365
|
*/
|
|
22347
22366
|
export interface ToolInvokedEvent {
|
|
22348
|
-
/**
|
|
22349
|
-
* Name of the tool to invoke.
|
|
22350
|
-
*/
|
|
22351
|
-
toolName: string;
|
|
22352
22367
|
/**
|
|
22353
22368
|
* Frame id
|
|
22354
22369
|
*/
|
|
@@ -22361,6 +22376,16 @@ export namespace Protocol {
|
|
|
22361
22376
|
* The input parameters used for the invocation.
|
|
22362
22377
|
*/
|
|
22363
22378
|
input: string;
|
|
22379
|
+
/**
|
|
22380
|
+
* Name of the tool to invoke. Missing if the tool was invoked by its identifier, but could not be found (e.g.,
|
|
22381
|
+
* it was already unregistered), so its name could not be recovered.
|
|
22382
|
+
*/
|
|
22383
|
+
toolName?: string;
|
|
22384
|
+
/**
|
|
22385
|
+
* Identifier of the tool to invoke. Missing if the tool was invoked by name, but could not be found, so its
|
|
22386
|
+
* identifier could not be recovered.
|
|
22387
|
+
*/
|
|
22388
|
+
toolId?: ToolId;
|
|
22364
22389
|
}
|
|
22365
22390
|
|
|
22366
22391
|
/**
|