devtools-protocol 0.0.1734725 → 0.0.1742540

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.
@@ -4260,16 +4260,6 @@
4260
4260
  }
4261
4261
  ]
4262
4262
  },
4263
- {
4264
- "name": "addPrivacySandboxEnrollmentOverride",
4265
- "description": "Allows a site to use privacy sandbox features that require enrollment\nwithout the site actually being enrolled. Only supported on page targets.",
4266
- "parameters": [
4267
- {
4268
- "name": "url",
4269
- "type": "string"
4270
- }
4271
- ]
4272
- },
4273
4263
  {
4274
4264
  "name": "getGlobalPrivacyControl",
4275
4265
  "description": "Gets the current globally-applied privacy control status\nSee https://www.w3.org/TR/gpc/#get-global-privacy-control",
@@ -31101,16 +31091,24 @@
31101
31091
  },
31102
31092
  {
31103
31093
  "name": "invokeTool",
31104
- "description": "Invokes a registered tool.",
31094
+ "description": "Invokes a registered tool. Exactly one of `toolId` and `toolName` must be specified; the command fails if both or\nneither are.",
31105
31095
  "parameters": [
31106
31096
  {
31107
31097
  "name": "frameId",
31108
31098
  "description": "Frame in which to invoke the tool.",
31109
31099
  "$ref": "Page.FrameId"
31110
31100
  },
31101
+ {
31102
+ "name": "toolId",
31103
+ "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.",
31104
+ "optional": true,
31105
+ "$ref": "ToolId"
31106
+ },
31111
31107
  {
31112
31108
  "name": "toolName",
31113
- "description": "Name of the tool to invoke.",
31109
+ "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.",
31110
+ "deprecated": true,
31111
+ "optional": true,
31114
31112
  "type": "string"
31115
31113
  },
31116
31114
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1734725",
3
+ "version": "0.0.1742540",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -337,12 +337,6 @@ domain Browser
337
337
  parameters
338
338
  BrowserCommandId commandId
339
339
 
340
- # Allows a site to use privacy sandbox features that require enrollment
341
- # without the site actually being enrolled. Only supported on page targets.
342
- command addPrivacySandboxEnrollmentOverride
343
- parameters
344
- string url
345
-
346
340
  # Gets the current globally-applied privacy control status
347
341
  # See https://www.w3.org/TR/gpc/#get-global-privacy-control
348
342
  experimental command getGlobalPrivacyControl
@@ -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
@@ -2193,14 +2193,6 @@ export namespace ProtocolMapping {
2193
2193
  paramsType: [Protocol.Browser.ExecuteBrowserCommandRequest];
2194
2194
  returnType: void;
2195
2195
  };
2196
- /**
2197
- * Allows a site to use privacy sandbox features that require enrollment
2198
- * without the site actually being enrolled. Only supported on page targets.
2199
- */
2200
- 'Browser.addPrivacySandboxEnrollmentOverride': {
2201
- paramsType: [Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest];
2202
- returnType: void;
2203
- };
2204
2196
  /**
2205
2197
  * Gets the current globally-applied privacy control status
2206
2198
  * See https://www.w3.org/TR/gpc/#get-global-privacy-control
@@ -6358,7 +6350,8 @@ export namespace ProtocolMapping {
6358
6350
  returnType: void;
6359
6351
  };
6360
6352
  /**
6361
- * Invokes a registered tool.
6353
+ * Invokes a registered tool. Exactly one of `toolId` and `toolName` must be specified; the command fails if both or
6354
+ * neither are.
6362
6355
  */
6363
6356
  'WebMCP.invokeTool': {
6364
6357
  paramsType: [Protocol.WebMCP.InvokeToolRequest];
@@ -1167,12 +1167,6 @@ export namespace ProtocolProxyApi {
1167
1167
  */
1168
1168
  executeBrowserCommand(params: Protocol.Browser.ExecuteBrowserCommandRequest): Promise<void>;
1169
1169
 
1170
- /**
1171
- * Allows a site to use privacy sandbox features that require enrollment
1172
- * without the site actually being enrolled. Only supported on page targets.
1173
- */
1174
- addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<void>;
1175
-
1176
1170
  /**
1177
1171
  * Gets the current globally-applied privacy control status
1178
1172
  * See https://www.w3.org/TR/gpc/#get-global-privacy-control
@@ -5514,7 +5508,8 @@ export namespace ProtocolProxyApi {
5514
5508
  disable(): Promise<void>;
5515
5509
 
5516
5510
  /**
5517
- * Invokes a registered tool.
5511
+ * Invokes a registered tool. Exactly one of `toolId` and `toolName` must be specified; the command fails if both or
5512
+ * neither are.
5518
5513
  */
5519
5514
  invokeTool(params: Protocol.WebMCP.InvokeToolRequest): Promise<Protocol.WebMCP.InvokeToolResponse>;
5520
5515
 
@@ -1237,12 +1237,6 @@ export namespace ProtocolTestsProxyApi {
1237
1237
  */
1238
1238
  executeBrowserCommand(params: Protocol.Browser.ExecuteBrowserCommandRequest): Promise<{id: number, result: void, sessionId: string}>;
1239
1239
 
1240
- /**
1241
- * Allows a site to use privacy sandbox features that require enrollment
1242
- * without the site actually being enrolled. Only supported on page targets.
1243
- */
1244
- addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
1245
-
1246
1240
  /**
1247
1241
  * Gets the current globally-applied privacy control status
1248
1242
  * See https://www.w3.org/TR/gpc/#get-global-privacy-control
@@ -5970,7 +5964,8 @@ export namespace ProtocolTestsProxyApi {
5970
5964
  disable(): Promise<{id: number, result: void, sessionId: string}>;
5971
5965
 
5972
5966
  /**
5973
- * Invokes a registered tool.
5967
+ * Invokes a registered tool. Exactly one of `toolId` and `toolName` must be specified; the command fails if both or
5968
+ * neither are.
5974
5969
  */
5975
5970
  invokeTool(params: Protocol.WebMCP.InvokeToolRequest): Promise<{id: number, result: Protocol.WebMCP.InvokeToolResponse, sessionId: string}>;
5976
5971
 
@@ -5069,10 +5069,6 @@ export namespace Protocol {
5069
5069
  commandId: BrowserCommandId;
5070
5070
  }
5071
5071
 
5072
- export interface AddPrivacySandboxEnrollmentOverrideRequest {
5073
- url: string;
5074
- }
5075
-
5076
5072
  export interface GetGlobalPrivacyControlResponse {
5077
5073
  gpc: boolean;
5078
5074
  }
@@ -22317,9 +22313,17 @@ export namespace Protocol {
22317
22313
  */
22318
22314
  frameId: Page.FrameId;
22319
22315
  /**
22320
- * Name of the tool to invoke.
22316
+ * Identifier of the tool to invoke, as reported in `Tool.toolId`. Invokes exactly that tool, and fails if it is no
22317
+ * longer registered, even if a different tool has since been registered under the same name.
22318
+ */
22319
+ toolId?: ToolId;
22320
+ /**
22321
+ * Name of the tool to invoke. Deprecated: invokes whichever tool is registered under this name when the command
22322
+ * is handled, which may not be the tool the client observed if the page has since replaced it. Use `toolId`
22323
+ * instead.
22324
+ * @deprecated
22321
22325
  */
22322
- toolName: string;
22326
+ toolName?: string;
22323
22327
  /**
22324
22328
  * Input parameters for the tool, matching the tool's inputSchema.
22325
22329
  */