devtools-protocol 0.0.1729950 → 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 +44 -8
- package/package.json +1 -1
- package/pdl/domains/Browser.pdl +0 -1
- package/pdl/domains/Page.pdl +9 -2
- package/pdl/domains/WebMCP.pdl +17 -2
- package/types/protocol.d.ts +41 -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",
|
|
@@ -24878,6 +24875,17 @@
|
|
|
24878
24875
|
"description": "Maximum frame rate in frames per second.",
|
|
24879
24876
|
"optional": true,
|
|
24880
24877
|
"type": "integer"
|
|
24878
|
+
},
|
|
24879
|
+
{
|
|
24880
|
+
"name": "captureArea",
|
|
24881
|
+
"description": "The area to record. Defaults to `target`.",
|
|
24882
|
+
"experimental": true,
|
|
24883
|
+
"optional": true,
|
|
24884
|
+
"type": "string",
|
|
24885
|
+
"enum": [
|
|
24886
|
+
"target",
|
|
24887
|
+
"browserWindow"
|
|
24888
|
+
]
|
|
24881
24889
|
}
|
|
24882
24890
|
],
|
|
24883
24891
|
"returns": [
|
|
@@ -30996,11 +31004,21 @@
|
|
|
30996
31004
|
"Error"
|
|
30997
31005
|
]
|
|
30998
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
|
+
},
|
|
30999
31012
|
{
|
|
31000
31013
|
"id": "Tool",
|
|
31001
31014
|
"description": "Definition of a tool that can be invoked.",
|
|
31002
31015
|
"type": "object",
|
|
31003
31016
|
"properties": [
|
|
31017
|
+
{
|
|
31018
|
+
"name": "toolId",
|
|
31019
|
+
"description": "Tool identifier.",
|
|
31020
|
+
"$ref": "ToolId"
|
|
31021
|
+
},
|
|
31004
31022
|
{
|
|
31005
31023
|
"name": "name",
|
|
31006
31024
|
"description": "Tool name.",
|
|
@@ -31017,6 +31035,12 @@
|
|
|
31017
31035
|
"optional": true,
|
|
31018
31036
|
"type": "object"
|
|
31019
31037
|
},
|
|
31038
|
+
{
|
|
31039
|
+
"name": "outputSchema",
|
|
31040
|
+
"description": "Schema for the tool's output structure.",
|
|
31041
|
+
"optional": true,
|
|
31042
|
+
"type": "object"
|
|
31043
|
+
},
|
|
31020
31044
|
{
|
|
31021
31045
|
"name": "annotations",
|
|
31022
31046
|
"description": "Optional annotations for the tool.",
|
|
@@ -31047,6 +31071,11 @@
|
|
|
31047
31071
|
"description": "Definition of a tool that was removed.",
|
|
31048
31072
|
"type": "object",
|
|
31049
31073
|
"properties": [
|
|
31074
|
+
{
|
|
31075
|
+
"name": "toolId",
|
|
31076
|
+
"description": "Identifier of the removed tool.",
|
|
31077
|
+
"$ref": "ToolId"
|
|
31078
|
+
},
|
|
31050
31079
|
{
|
|
31051
31080
|
"name": "name",
|
|
31052
31081
|
"description": "Tool name.",
|
|
@@ -31142,11 +31171,6 @@
|
|
|
31142
31171
|
"name": "toolInvoked",
|
|
31143
31172
|
"description": "Event fired when a tool invocation starts.",
|
|
31144
31173
|
"parameters": [
|
|
31145
|
-
{
|
|
31146
|
-
"name": "toolName",
|
|
31147
|
-
"description": "Name of the tool to invoke.",
|
|
31148
|
-
"type": "string"
|
|
31149
|
-
},
|
|
31150
31174
|
{
|
|
31151
31175
|
"name": "frameId",
|
|
31152
31176
|
"description": "Frame id",
|
|
@@ -31161,6 +31185,18 @@
|
|
|
31161
31185
|
"name": "input",
|
|
31162
31186
|
"description": "The input parameters used for the invocation.",
|
|
31163
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"
|
|
31164
31200
|
}
|
|
31165
31201
|
]
|
|
31166
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
|
|
@@ -1227,6 +1225,15 @@ domain Page
|
|
|
1227
1225
|
optional integer maxHeight
|
|
1228
1226
|
# Maximum frame rate in frames per second.
|
|
1229
1227
|
optional integer frameRate
|
|
1228
|
+
# The area to record. Defaults to `target`.
|
|
1229
|
+
experimental optional enum captureArea
|
|
1230
|
+
# Records only the target page.
|
|
1231
|
+
target
|
|
1232
|
+
# Records the browser window that shows the target, like window
|
|
1233
|
+
# capture with getDisplayMedia(). If the target is a docked DevTools
|
|
1234
|
+
# window, the window shows DevTools and the inspected page. Only
|
|
1235
|
+
# available to trusted clients and to embedders that support it.
|
|
1236
|
+
browserWindow
|
|
1230
1237
|
returns
|
|
1231
1238
|
# A handle of the stream that holds resulting screencast data.
|
|
1232
1239
|
experimental IO.StreamHandle stream
|
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.
|
|
@@ -18486,6 +18486,11 @@ export namespace Protocol {
|
|
|
18486
18486
|
sendLastFrame?: boolean;
|
|
18487
18487
|
}
|
|
18488
18488
|
|
|
18489
|
+
export const enum StartScreenRecordingRequestCaptureArea {
|
|
18490
|
+
Target = 'target',
|
|
18491
|
+
BrowserWindow = 'browserWindow',
|
|
18492
|
+
}
|
|
18493
|
+
|
|
18489
18494
|
export interface StartScreenRecordingRequest {
|
|
18490
18495
|
audio?: boolean;
|
|
18491
18496
|
/**
|
|
@@ -18500,6 +18505,11 @@ export namespace Protocol {
|
|
|
18500
18505
|
* Maximum frame rate in frames per second.
|
|
18501
18506
|
*/
|
|
18502
18507
|
frameRate?: integer;
|
|
18508
|
+
/**
|
|
18509
|
+
* The area to record. Defaults to `target`.
|
|
18510
|
+
* @experimental
|
|
18511
|
+
*/
|
|
18512
|
+
captureArea?: ('target' | 'browserWindow');
|
|
18503
18513
|
}
|
|
18504
18514
|
|
|
18505
18515
|
export interface StartScreenRecordingResponse {
|
|
@@ -22234,10 +22244,21 @@ export namespace Protocol {
|
|
|
22234
22244
|
*/
|
|
22235
22245
|
export type InvocationStatus = ('Completed' | 'Canceled' | 'Error');
|
|
22236
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
|
+
|
|
22237
22254
|
/**
|
|
22238
22255
|
* Definition of a tool that can be invoked.
|
|
22239
22256
|
*/
|
|
22240
22257
|
export interface Tool {
|
|
22258
|
+
/**
|
|
22259
|
+
* Tool identifier.
|
|
22260
|
+
*/
|
|
22261
|
+
toolId: ToolId;
|
|
22241
22262
|
/**
|
|
22242
22263
|
* Tool name.
|
|
22243
22264
|
*/
|
|
@@ -22250,6 +22271,10 @@ export namespace Protocol {
|
|
|
22250
22271
|
* Schema for the tool's input parameters.
|
|
22251
22272
|
*/
|
|
22252
22273
|
inputSchema?: any;
|
|
22274
|
+
/**
|
|
22275
|
+
* Schema for the tool's output structure.
|
|
22276
|
+
*/
|
|
22277
|
+
outputSchema?: any;
|
|
22253
22278
|
/**
|
|
22254
22279
|
* Optional annotations for the tool.
|
|
22255
22280
|
*/
|
|
@@ -22272,6 +22297,10 @@ export namespace Protocol {
|
|
|
22272
22297
|
* Definition of a tool that was removed.
|
|
22273
22298
|
*/
|
|
22274
22299
|
export interface RemovedTool {
|
|
22300
|
+
/**
|
|
22301
|
+
* Identifier of the removed tool.
|
|
22302
|
+
*/
|
|
22303
|
+
toolId: ToolId;
|
|
22275
22304
|
/**
|
|
22276
22305
|
* Tool name.
|
|
22277
22306
|
*/
|
|
@@ -22335,10 +22364,6 @@ export namespace Protocol {
|
|
|
22335
22364
|
* Event fired when a tool invocation starts.
|
|
22336
22365
|
*/
|
|
22337
22366
|
export interface ToolInvokedEvent {
|
|
22338
|
-
/**
|
|
22339
|
-
* Name of the tool to invoke.
|
|
22340
|
-
*/
|
|
22341
|
-
toolName: string;
|
|
22342
22367
|
/**
|
|
22343
22368
|
* Frame id
|
|
22344
22369
|
*/
|
|
@@ -22351,6 +22376,16 @@ export namespace Protocol {
|
|
|
22351
22376
|
* The input parameters used for the invocation.
|
|
22352
22377
|
*/
|
|
22353
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;
|
|
22354
22389
|
}
|
|
22355
22390
|
|
|
22356
22391
|
/**
|