devtools-protocol 0.0.1734725 → 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.
@@ -31101,16 +31101,24 @@
31101
31101
  },
31102
31102
  {
31103
31103
  "name": "invokeTool",
31104
- "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.",
31105
31105
  "parameters": [
31106
31106
  {
31107
31107
  "name": "frameId",
31108
31108
  "description": "Frame in which to invoke the tool.",
31109
31109
  "$ref": "Page.FrameId"
31110
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
+ },
31111
31117
  {
31112
31118
  "name": "toolName",
31113
- "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,
31114
31122
  "type": "string"
31115
31123
  },
31116
31124
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1734725",
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",
@@ -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
 
@@ -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
  */