devtools-protocol 0.0.1733639 → 0.0.1740066

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.
@@ -22157,6 +22157,7 @@
22157
22157
  "publickey-credentials-remote-client-data-json",
22158
22158
  "rewriter",
22159
22159
  "screen-wake-lock",
22160
+ "semantic-embedder",
22160
22161
  "serial",
22161
22162
  "smart-card",
22162
22163
  "speaker-selection",
@@ -31100,16 +31101,24 @@
31100
31101
  },
31101
31102
  {
31102
31103
  "name": "invokeTool",
31103
- "description": "Invokes a registered tool.",
31104
+ "description": "Invokes a registered tool. Exactly one of `toolId` and `toolName` must be specified; the command fails if both or\nneither are.",
31104
31105
  "parameters": [
31105
31106
  {
31106
31107
  "name": "frameId",
31107
31108
  "description": "Frame in which to invoke the tool.",
31108
31109
  "$ref": "Page.FrameId"
31109
31110
  },
31111
+ {
31112
+ "name": "toolId",
31113
+ "description": "Identifier of the tool to invoke, as reported in `Tool.toolId`. Invokes exactly that tool, and fails if it is no\nlonger registered, even if a different tool has since been registered under the same name.",
31114
+ "optional": true,
31115
+ "$ref": "ToolId"
31116
+ },
31110
31117
  {
31111
31118
  "name": "toolName",
31112
- "description": "Name of the tool to invoke.",
31119
+ "description": "Name of the tool to invoke. Deprecated: invokes whichever tool is registered under this name when the command\nis handled, which may not be the tool the client observed if the page has since replaced it. Use `toolId`\ninstead.",
31120
+ "deprecated": true,
31121
+ "optional": true,
31113
31122
  "type": "string"
31114
31123
  },
31115
31124
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1733639",
3
+ "version": "0.0.1740066",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -153,6 +153,7 @@ domain Page
153
153
  publickey-credentials-remote-client-data-json
154
154
  rewriter
155
155
  screen-wake-lock
156
+ semantic-embedder
156
157
  serial
157
158
  smart-card
158
159
  speaker-selection
@@ -66,13 +66,19 @@ experimental domain WebMCP
66
66
  # Disables the WebMCP domain.
67
67
  command disable
68
68
 
69
- # Invokes a registered tool.
69
+ # Invokes a registered tool. Exactly one of `toolId` and `toolName` must be specified; the command fails if both or
70
+ # neither are.
70
71
  command invokeTool
71
72
  parameters
72
73
  # Frame in which to invoke the tool.
73
74
  Page.FrameId frameId
74
- # Name of the tool to invoke.
75
- string toolName
75
+ # Identifier of the tool to invoke, as reported in `Tool.toolId`. Invokes exactly that tool, and fails if it is no
76
+ # longer registered, even if a different tool has since been registered under the same name.
77
+ optional ToolId toolId
78
+ # Name of the tool to invoke. Deprecated: invokes whichever tool is registered under this name when the command
79
+ # is handled, which may not be the tool the client observed if the page has since replaced it. Use `toolId`
80
+ # instead.
81
+ deprecated optional string toolName
76
82
  # Input parameters for the tool, matching the tool's inputSchema.
77
83
  object input
78
84
  returns
@@ -6358,7 +6358,8 @@ export namespace ProtocolMapping {
6358
6358
  returnType: void;
6359
6359
  };
6360
6360
  /**
6361
- * Invokes a registered tool.
6361
+ * Invokes a registered tool. Exactly one of `toolId` and `toolName` must be specified; the command fails if both or
6362
+ * neither are.
6362
6363
  */
6363
6364
  'WebMCP.invokeTool': {
6364
6365
  paramsType: [Protocol.WebMCP.InvokeToolRequest];
@@ -5514,7 +5514,8 @@ export namespace ProtocolProxyApi {
5514
5514
  disable(): Promise<void>;
5515
5515
 
5516
5516
  /**
5517
- * Invokes a registered tool.
5517
+ * Invokes a registered tool. Exactly one of `toolId` and `toolName` must be specified; the command fails if both or
5518
+ * neither are.
5518
5519
  */
5519
5520
  invokeTool(params: Protocol.WebMCP.InvokeToolRequest): Promise<Protocol.WebMCP.InvokeToolResponse>;
5520
5521
 
@@ -5970,7 +5970,8 @@ export namespace ProtocolTestsProxyApi {
5970
5970
  disable(): Promise<{id: number, result: void, sessionId: string}>;
5971
5971
 
5972
5972
  /**
5973
- * Invokes a registered tool.
5973
+ * Invokes a registered tool. Exactly one of `toolId` and `toolName` must be specified; the command fails if both or
5974
+ * neither are.
5974
5975
  */
5975
5976
  invokeTool(params: Protocol.WebMCP.InvokeToolRequest): Promise<{id: number, result: Protocol.WebMCP.InvokeToolResponse, sessionId: string}>;
5976
5977
 
@@ -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' | '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');
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' | 'semantic-embedder' | '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.
@@ -22317,9 +22317,17 @@ export namespace Protocol {
22317
22317
  */
22318
22318
  frameId: Page.FrameId;
22319
22319
  /**
22320
- * Name of the tool to invoke.
22320
+ * Identifier of the tool to invoke, as reported in `Tool.toolId`. Invokes exactly that tool, and fails if it is no
22321
+ * longer registered, even if a different tool has since been registered under the same name.
22321
22322
  */
22322
- toolName: string;
22323
+ toolId?: ToolId;
22324
+ /**
22325
+ * Name of the tool to invoke. Deprecated: invokes whichever tool is registered under this name when the command
22326
+ * is handled, which may not be the tool the client observed if the page has since replaced it. Use `toolId`
22327
+ * instead.
22328
+ * @deprecated
22329
+ */
22330
+ toolName?: string;
22323
22331
  /**
22324
22332
  * Input parameters for the tool, matching the tool's inputSchema.
22325
22333
  */