devtools-protocol 0.0.1612613 → 0.0.1615727

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.
@@ -17917,6 +17917,7 @@
17917
17917
  "type": "string",
17918
17918
  "enum": [
17919
17919
  "Refreshed",
17920
+ "RefreshedAsWaiter",
17920
17921
  "InitializedService",
17921
17922
  "Unreachable",
17922
17923
  "ServerError",
@@ -17968,7 +17969,8 @@
17968
17969
  "ClearBrowsingData",
17969
17970
  "ServerRequested",
17970
17971
  "InvalidSessionParams",
17971
- "RefreshFatalError"
17972
+ "RefreshFatalError",
17973
+ "DevTools"
17972
17974
  ]
17973
17975
  }
17974
17976
  ]
@@ -18884,6 +18886,17 @@
18884
18886
  }
18885
18887
  ]
18886
18888
  },
18889
+ {
18890
+ "name": "deleteDeviceBoundSession",
18891
+ "description": "Deletes a device bound session.",
18892
+ "experimental": true,
18893
+ "parameters": [
18894
+ {
18895
+ "name": "key",
18896
+ "$ref": "DeviceBoundSessionKey"
18897
+ }
18898
+ ]
18899
+ },
18887
18900
  {
18888
18901
  "name": "fetchSchemefulSite",
18889
18902
  "description": "Fetches the schemeful site for a specific origin.",
@@ -28669,7 +28682,7 @@
28669
28682
  },
28670
28683
  {
28671
28684
  "name": "parentFrameId",
28672
- "description": "Id of the parent frame, only present for the \"iframe\" targets.",
28685
+ "description": "Id of the parent frame, present for \"iframe\" and \"worker\" targets. For nested workers,\nthis is the \"ancestor\" frame that created the first worker in the nested chain.",
28673
28686
  "experimental": true,
28674
28687
  "optional": true,
28675
28688
  "$ref": "Page.FrameId"
@@ -30690,7 +30703,7 @@
30690
30703
  "description": "Represents the status of a tool invocation.",
30691
30704
  "type": "string",
30692
30705
  "enum": [
30693
- "Success",
30706
+ "Completed",
30694
30707
  "Canceled",
30695
30708
  "Error"
30696
30709
  ]
@@ -30750,6 +30763,34 @@
30750
30763
  {
30751
30764
  "name": "disable",
30752
30765
  "description": "Disables the WebMCP domain."
30766
+ },
30767
+ {
30768
+ "name": "invokeTool",
30769
+ "description": "Invokes a registered tool.",
30770
+ "parameters": [
30771
+ {
30772
+ "name": "frameId",
30773
+ "description": "Frame in which to invoke the tool.",
30774
+ "$ref": "Page.FrameId"
30775
+ },
30776
+ {
30777
+ "name": "toolName",
30778
+ "description": "Name of the tool to invoke.",
30779
+ "type": "string"
30780
+ },
30781
+ {
30782
+ "name": "input",
30783
+ "description": "Input parameters for the tool, matching the tool's inputSchema.",
30784
+ "type": "object"
30785
+ }
30786
+ ],
30787
+ "returns": [
30788
+ {
30789
+ "name": "invocationId",
30790
+ "description": "Unique identifier for this invocation. Response is sent before tool events.",
30791
+ "type": "string"
30792
+ }
30793
+ ]
30753
30794
  }
30754
30795
  ],
30755
30796
  "events": [
@@ -30823,7 +30864,7 @@
30823
30864
  },
30824
30865
  {
30825
30866
  "name": "output",
30826
- "description": "Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.",
30867
+ "description": "Output or error delivered as delivered to the agent. Missing if `status` is anything other than Completed.\nNote: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.",
30827
30868
  "optional": true,
30828
30869
  "type": "any"
30829
30870
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1612613",
3
+ "version": "0.0.1615727",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -2260,6 +2260,7 @@ domain Network
2260
2260
  # The result of a refresh.
2261
2261
  enum refreshResult
2262
2262
  Refreshed
2263
+ RefreshedAsWaiter
2263
2264
  InitializedService
2264
2265
  Unreachable
2265
2266
  ServerError
@@ -2290,6 +2291,7 @@ domain Network
2290
2291
  ServerRequested
2291
2292
  InvalidSessionParams
2292
2293
  RefreshFatalError
2294
+ DevTools
2293
2295
 
2294
2296
  # Session event details specific to challenges.
2295
2297
  experimental type ChallengeEventDetails extends object
@@ -2334,6 +2336,11 @@ domain Network
2334
2336
  # Whether to enable or disable events.
2335
2337
  boolean enable
2336
2338
 
2339
+ # Deletes a device bound session.
2340
+ experimental command deleteDeviceBoundSession
2341
+ parameters
2342
+ DeviceBoundSessionKey key
2343
+
2337
2344
  # Fetches the schemeful site for a specific origin.
2338
2345
  experimental command fetchSchemefulSite
2339
2346
  parameters
@@ -27,7 +27,8 @@ domain Target
27
27
  experimental boolean canAccessOpener
28
28
  # Frame id of originating window (is only set if target has an opener).
29
29
  experimental optional Page.FrameId openerFrameId
30
- # Id of the parent frame, only present for the "iframe" targets.
30
+ # Id of the parent frame, present for "iframe" and "worker" targets. For nested workers,
31
+ # this is the "ancestor" frame that created the first worker in the nested chain.
31
32
  experimental optional Page.FrameId parentFrameId
32
33
  experimental optional Browser.BrowserContextID browserContextId
33
34
  # Provides additional details for specific target types. For example, for
@@ -21,7 +21,7 @@ experimental domain WebMCP
21
21
  # Represents the status of a tool invocation.
22
22
  type InvocationStatus extends string
23
23
  enum
24
- Success
24
+ Completed
25
25
  Canceled
26
26
  Error
27
27
 
@@ -51,6 +51,19 @@ experimental domain WebMCP
51
51
  # Disables the WebMCP domain.
52
52
  command disable
53
53
 
54
+ # Invokes a registered tool.
55
+ command invokeTool
56
+ parameters
57
+ # Frame in which to invoke the tool.
58
+ Page.FrameId frameId
59
+ # Name of the tool to invoke.
60
+ string toolName
61
+ # Input parameters for the tool, matching the tool's inputSchema.
62
+ object input
63
+ returns
64
+ # Unique identifier for this invocation. Response is sent before tool events.
65
+ string invocationId
66
+
54
67
  # Event fired when new tools are added.
55
68
  event toolsAdded
56
69
  parameters
@@ -82,7 +95,8 @@ experimental domain WebMCP
82
95
  string invocationId
83
96
  # Status of the invocation.
84
97
  InvocationStatus status
85
- # Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.
98
+ # Output or error delivered as delivered to the agent. Missing if `status` is anything other than Completed.
99
+ # Note: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.
86
100
  optional any output
87
101
  # Error text for protocol users.
88
102
  optional string errorText
@@ -4556,6 +4556,14 @@ export namespace ProtocolMapping {
4556
4556
  paramsType: [Protocol.Network.EnableDeviceBoundSessionsRequest];
4557
4557
  returnType: void;
4558
4558
  };
4559
+ /**
4560
+ * Deletes a device bound session.
4561
+ * @experimental
4562
+ */
4563
+ 'Network.deleteDeviceBoundSession': {
4564
+ paramsType: [Protocol.Network.DeleteDeviceBoundSessionRequest];
4565
+ returnType: void;
4566
+ };
4559
4567
  /**
4560
4568
  * Fetches the schemeful site for a specific origin.
4561
4569
  * @experimental
@@ -6305,6 +6313,13 @@ export namespace ProtocolMapping {
6305
6313
  paramsType: [];
6306
6314
  returnType: void;
6307
6315
  };
6316
+ /**
6317
+ * Invokes a registered tool.
6318
+ */
6319
+ 'WebMCP.invokeTool': {
6320
+ paramsType: [Protocol.WebMCP.InvokeToolRequest];
6321
+ returnType: Protocol.WebMCP.InvokeToolResponse;
6322
+ };
6308
6323
  }
6309
6324
  }
6310
6325
 
@@ -3259,6 +3259,12 @@ export namespace ProtocolProxyApi {
3259
3259
  */
3260
3260
  enableDeviceBoundSessions(params: Protocol.Network.EnableDeviceBoundSessionsRequest): Promise<void>;
3261
3261
 
3262
+ /**
3263
+ * Deletes a device bound session.
3264
+ * @experimental
3265
+ */
3266
+ deleteDeviceBoundSession(params: Protocol.Network.DeleteDeviceBoundSessionRequest): Promise<void>;
3267
+
3262
3268
  /**
3263
3269
  * Fetches the schemeful site for a specific origin.
3264
3270
  * @experimental
@@ -5473,6 +5479,11 @@ export namespace ProtocolProxyApi {
5473
5479
  */
5474
5480
  disable(): Promise<void>;
5475
5481
 
5482
+ /**
5483
+ * Invokes a registered tool.
5484
+ */
5485
+ invokeTool(params: Protocol.WebMCP.InvokeToolRequest): Promise<Protocol.WebMCP.InvokeToolResponse>;
5486
+
5476
5487
  /**
5477
5488
  * Event fired when new tools are added.
5478
5489
  */
@@ -3435,6 +3435,12 @@ export namespace ProtocolTestsProxyApi {
3435
3435
  */
3436
3436
  enableDeviceBoundSessions(params: Protocol.Network.EnableDeviceBoundSessionsRequest): Promise<{id: number, result: void, sessionId: string}>;
3437
3437
 
3438
+ /**
3439
+ * Deletes a device bound session.
3440
+ * @experimental
3441
+ */
3442
+ deleteDeviceBoundSession(params: Protocol.Network.DeleteDeviceBoundSessionRequest): Promise<{id: number, result: void, sessionId: string}>;
3443
+
3438
3444
  /**
3439
3445
  * Fetches the schemeful site for a specific origin.
3440
3446
  * @experimental
@@ -5939,6 +5945,11 @@ export namespace ProtocolTestsProxyApi {
5939
5945
  */
5940
5946
  disable(): Promise<{id: number, result: void, sessionId: string}>;
5941
5947
 
5948
+ /**
5949
+ * Invokes a registered tool.
5950
+ */
5951
+ invokeTool(params: Protocol.WebMCP.InvokeToolRequest): Promise<{id: number, result: Protocol.WebMCP.InvokeToolResponse, sessionId: string}>;
5952
+
5942
5953
  /**
5943
5954
  * Event fired when new tools are added.
5944
5955
  */
@@ -14056,6 +14056,7 @@ export namespace Protocol {
14056
14056
 
14057
14057
  export const enum RefreshEventDetailsRefreshResult {
14058
14058
  Refreshed = 'Refreshed',
14059
+ RefreshedAsWaiter = 'RefreshedAsWaiter',
14059
14060
  InitializedService = 'InitializedService',
14060
14061
  Unreachable = 'Unreachable',
14061
14062
  ServerError = 'ServerError',
@@ -14072,7 +14073,7 @@ export namespace Protocol {
14072
14073
  /**
14073
14074
  * The result of a refresh.
14074
14075
  */
14075
- refreshResult: ('Refreshed' | 'InitializedService' | 'Unreachable' | 'ServerError' | 'RefreshQuotaExceeded' | 'FatalError' | 'SigningQuotaExceeded');
14076
+ refreshResult: ('Refreshed' | 'RefreshedAsWaiter' | 'InitializedService' | 'Unreachable' | 'ServerError' | 'RefreshQuotaExceeded' | 'FatalError' | 'SigningQuotaExceeded');
14076
14077
  /**
14077
14078
  * If there was a fetch attempt, the result of that.
14078
14079
  */
@@ -14102,6 +14103,7 @@ export namespace Protocol {
14102
14103
  ServerRequested = 'ServerRequested',
14103
14104
  InvalidSessionParams = 'InvalidSessionParams',
14104
14105
  RefreshFatalError = 'RefreshFatalError',
14106
+ DevTools = 'DevTools',
14105
14107
  }
14106
14108
 
14107
14109
  /**
@@ -14112,7 +14114,7 @@ export namespace Protocol {
14112
14114
  /**
14113
14115
  * The reason for a session being deleted.
14114
14116
  */
14115
- deletionReason: ('Expired' | 'FailedToRestoreKey' | 'FailedToUnwrapKey' | 'StoragePartitionCleared' | 'ClearBrowsingData' | 'ServerRequested' | 'InvalidSessionParams' | 'RefreshFatalError');
14117
+ deletionReason: ('Expired' | 'FailedToRestoreKey' | 'FailedToUnwrapKey' | 'StoragePartitionCleared' | 'ClearBrowsingData' | 'ServerRequested' | 'InvalidSessionParams' | 'RefreshFatalError' | 'DevTools');
14116
14118
  }
14117
14119
 
14118
14120
  export const enum ChallengeEventDetailsChallengeResult {
@@ -14707,6 +14709,10 @@ export namespace Protocol {
14707
14709
  enable: boolean;
14708
14710
  }
14709
14711
 
14712
+ export interface DeleteDeviceBoundSessionRequest {
14713
+ key: DeviceBoundSessionKey;
14714
+ }
14715
+
14710
14716
  export interface FetchSchemefulSiteRequest {
14711
14717
  /**
14712
14718
  * The URL origin.
@@ -20756,7 +20762,8 @@ export namespace Protocol {
20756
20762
  */
20757
20763
  openerFrameId?: Page.FrameId;
20758
20764
  /**
20759
- * Id of the parent frame, only present for the "iframe" targets.
20765
+ * Id of the parent frame, present for "iframe" and "worker" targets. For nested workers,
20766
+ * this is the "ancestor" frame that created the first worker in the nested chain.
20760
20767
  * @experimental
20761
20768
  */
20762
20769
  parentFrameId?: Page.FrameId;
@@ -22036,7 +22043,7 @@ export namespace Protocol {
22036
22043
  /**
22037
22044
  * Represents the status of a tool invocation.
22038
22045
  */
22039
- export type InvocationStatus = ('Success' | 'Canceled' | 'Error');
22046
+ export type InvocationStatus = ('Completed' | 'Canceled' | 'Error');
22040
22047
 
22041
22048
  /**
22042
22049
  * Definition of a tool that can be invoked.
@@ -22072,6 +22079,28 @@ export namespace Protocol {
22072
22079
  stackTrace?: Runtime.StackTrace;
22073
22080
  }
22074
22081
 
22082
+ export interface InvokeToolRequest {
22083
+ /**
22084
+ * Frame in which to invoke the tool.
22085
+ */
22086
+ frameId: Page.FrameId;
22087
+ /**
22088
+ * Name of the tool to invoke.
22089
+ */
22090
+ toolName: string;
22091
+ /**
22092
+ * Input parameters for the tool, matching the tool's inputSchema.
22093
+ */
22094
+ input: any;
22095
+ }
22096
+
22097
+ export interface InvokeToolResponse {
22098
+ /**
22099
+ * Unique identifier for this invocation. Response is sent before tool events.
22100
+ */
22101
+ invocationId: string;
22102
+ }
22103
+
22075
22104
  /**
22076
22105
  * Event fired when new tools are added.
22077
22106
  */
@@ -22127,7 +22156,8 @@ export namespace Protocol {
22127
22156
  */
22128
22157
  status: InvocationStatus;
22129
22158
  /**
22130
- * Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.
22159
+ * Output or error delivered as delivered to the agent. Missing if `status` is anything other than Completed.
22160
+ * Note: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.
22131
22161
  */
22132
22162
  output?: any;
22133
22163
  /**