devtools-protocol 0.0.1612613 → 0.0.1616338

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.
@@ -1773,7 +1773,11 @@
1773
1773
  "AutofillAndManualTextPolicyControlledFeaturesInfo",
1774
1774
  "AutofillPolicyControlledFeatureInfo",
1775
1775
  "ManualTextPolicyControlledFeatureInfo",
1776
- "FormModelContextParameterMissingTitleAndDescription"
1776
+ "FormModelContextParameterMissingTitleAndDescription",
1777
+ "FormModelContextMissingToolName",
1778
+ "FormModelContextMissingToolDescription",
1779
+ "FormModelContextRequiredParameterMissingName",
1780
+ "FormModelContextParameterMissingName"
1777
1781
  ]
1778
1782
  },
1779
1783
  {
@@ -17917,6 +17921,7 @@
17917
17921
  "type": "string",
17918
17922
  "enum": [
17919
17923
  "Refreshed",
17924
+ "RefreshedAsWaiter",
17920
17925
  "InitializedService",
17921
17926
  "Unreachable",
17922
17927
  "ServerError",
@@ -17968,7 +17973,8 @@
17968
17973
  "ClearBrowsingData",
17969
17974
  "ServerRequested",
17970
17975
  "InvalidSessionParams",
17971
- "RefreshFatalError"
17976
+ "RefreshFatalError",
17977
+ "DevTools"
17972
17978
  ]
17973
17979
  }
17974
17980
  ]
@@ -18884,6 +18890,17 @@
18884
18890
  }
18885
18891
  ]
18886
18892
  },
18893
+ {
18894
+ "name": "deleteDeviceBoundSession",
18895
+ "description": "Deletes a device bound session.",
18896
+ "experimental": true,
18897
+ "parameters": [
18898
+ {
18899
+ "name": "key",
18900
+ "$ref": "DeviceBoundSessionKey"
18901
+ }
18902
+ ]
18903
+ },
18887
18904
  {
18888
18905
  "name": "fetchSchemefulSite",
18889
18906
  "description": "Fetches the schemeful site for a specific origin.",
@@ -28669,7 +28686,7 @@
28669
28686
  },
28670
28687
  {
28671
28688
  "name": "parentFrameId",
28672
- "description": "Id of the parent frame, only present for the \"iframe\" targets.",
28689
+ "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
28690
  "experimental": true,
28674
28691
  "optional": true,
28675
28692
  "$ref": "Page.FrameId"
@@ -30690,7 +30707,7 @@
30690
30707
  "description": "Represents the status of a tool invocation.",
30691
30708
  "type": "string",
30692
30709
  "enum": [
30693
- "Success",
30710
+ "Completed",
30694
30711
  "Canceled",
30695
30712
  "Error"
30696
30713
  ]
@@ -30750,6 +30767,45 @@
30750
30767
  {
30751
30768
  "name": "disable",
30752
30769
  "description": "Disables the WebMCP domain."
30770
+ },
30771
+ {
30772
+ "name": "invokeTool",
30773
+ "description": "Invokes a registered tool.",
30774
+ "parameters": [
30775
+ {
30776
+ "name": "frameId",
30777
+ "description": "Frame in which to invoke the tool.",
30778
+ "$ref": "Page.FrameId"
30779
+ },
30780
+ {
30781
+ "name": "toolName",
30782
+ "description": "Name of the tool to invoke.",
30783
+ "type": "string"
30784
+ },
30785
+ {
30786
+ "name": "input",
30787
+ "description": "Input parameters for the tool, matching the tool's inputSchema.",
30788
+ "type": "object"
30789
+ }
30790
+ ],
30791
+ "returns": [
30792
+ {
30793
+ "name": "invocationId",
30794
+ "description": "Unique identifier for this invocation. Response is sent before tool events.",
30795
+ "type": "string"
30796
+ }
30797
+ ]
30798
+ },
30799
+ {
30800
+ "name": "cancelInvocation",
30801
+ "description": "Cancels a pending tool invocation.",
30802
+ "parameters": [
30803
+ {
30804
+ "name": "invocationId",
30805
+ "description": "Invocation identifier to cancel.",
30806
+ "type": "string"
30807
+ }
30808
+ ]
30753
30809
  }
30754
30810
  ],
30755
30811
  "events": [
@@ -30823,7 +30879,7 @@
30823
30879
  },
30824
30880
  {
30825
30881
  "name": "output",
30826
- "description": "Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.",
30882
+ "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
30883
  "optional": true,
30828
30884
  "type": "any"
30829
30885
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1612613",
3
+ "version": "0.0.1616338",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -429,6 +429,10 @@ experimental domain Audits
429
429
  AutofillPolicyControlledFeatureInfo
430
430
  ManualTextPolicyControlledFeatureInfo
431
431
  FormModelContextParameterMissingTitleAndDescription
432
+ FormModelContextMissingToolName
433
+ FormModelContextMissingToolDescription
434
+ FormModelContextRequiredParameterMissingName
435
+ FormModelContextParameterMissingName
432
436
 
433
437
  # Depending on the concrete errorType, different properties are set.
434
438
  type GenericIssueDetails extends object
@@ -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,25 @@ 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
+
67
+ # Cancels a pending tool invocation.
68
+ command cancelInvocation
69
+ parameters
70
+ # Invocation identifier to cancel.
71
+ string invocationId
72
+
54
73
  # Event fired when new tools are added.
55
74
  event toolsAdded
56
75
  parameters
@@ -82,7 +101,8 @@ experimental domain WebMCP
82
101
  string invocationId
83
102
  # Status of the invocation.
84
103
  InvocationStatus status
85
- # Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.
104
+ # Output or error delivered as delivered to the agent. Missing if `status` is anything other than Completed.
105
+ # Note: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.
86
106
  optional any output
87
107
  # Error text for protocol users.
88
108
  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,20 @@ 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
+ };
6323
+ /**
6324
+ * Cancels a pending tool invocation.
6325
+ */
6326
+ 'WebMCP.cancelInvocation': {
6327
+ paramsType: [Protocol.WebMCP.CancelInvocationRequest];
6328
+ returnType: void;
6329
+ };
6308
6330
  }
6309
6331
  }
6310
6332
 
@@ -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,16 @@ 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
+
5487
+ /**
5488
+ * Cancels a pending tool invocation.
5489
+ */
5490
+ cancelInvocation(params: Protocol.WebMCP.CancelInvocationRequest): Promise<void>;
5491
+
5476
5492
  /**
5477
5493
  * Event fired when new tools are added.
5478
5494
  */
@@ -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,16 @@ 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
+
5953
+ /**
5954
+ * Cancels a pending tool invocation.
5955
+ */
5956
+ cancelInvocation(params: Protocol.WebMCP.CancelInvocationRequest): Promise<{id: number, result: void, sessionId: string}>;
5957
+
5942
5958
  /**
5943
5959
  * Event fired when new tools are added.
5944
5960
  */
@@ -3705,7 +3705,7 @@ export namespace Protocol {
3705
3705
  request: AffectedRequest;
3706
3706
  }
3707
3707
 
3708
- export type GenericIssueErrorType = ('FormLabelForNameError' | 'FormDuplicateIdForInputError' | 'FormInputWithNoLabelError' | 'FormAutocompleteAttributeEmptyError' | 'FormEmptyIdAndNameAttributesForInputError' | 'FormAriaLabelledByToNonExistingIdError' | 'FormInputAssignedAutocompleteValueToIdOrNameAttributeError' | 'FormLabelHasNeitherForNorNestedInputError' | 'FormLabelForMatchesNonExistingIdError' | 'FormInputHasWrongButWellIntendedAutocompleteValueError' | 'ResponseWasBlockedByORB' | 'NavigationEntryMarkedSkippable' | 'AutofillAndManualTextPolicyControlledFeaturesInfo' | 'AutofillPolicyControlledFeatureInfo' | 'ManualTextPolicyControlledFeatureInfo' | 'FormModelContextParameterMissingTitleAndDescription');
3708
+ export type GenericIssueErrorType = ('FormLabelForNameError' | 'FormDuplicateIdForInputError' | 'FormInputWithNoLabelError' | 'FormAutocompleteAttributeEmptyError' | 'FormEmptyIdAndNameAttributesForInputError' | 'FormAriaLabelledByToNonExistingIdError' | 'FormInputAssignedAutocompleteValueToIdOrNameAttributeError' | 'FormLabelHasNeitherForNorNestedInputError' | 'FormLabelForMatchesNonExistingIdError' | 'FormInputHasWrongButWellIntendedAutocompleteValueError' | 'ResponseWasBlockedByORB' | 'NavigationEntryMarkedSkippable' | 'AutofillAndManualTextPolicyControlledFeaturesInfo' | 'AutofillPolicyControlledFeatureInfo' | 'ManualTextPolicyControlledFeatureInfo' | 'FormModelContextParameterMissingTitleAndDescription' | 'FormModelContextMissingToolName' | 'FormModelContextMissingToolDescription' | 'FormModelContextRequiredParameterMissingName' | 'FormModelContextParameterMissingName');
3709
3709
 
3710
3710
  /**
3711
3711
  * Depending on the concrete errorType, different properties are set.
@@ -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,35 @@ 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
+
22104
+ export interface CancelInvocationRequest {
22105
+ /**
22106
+ * Invocation identifier to cancel.
22107
+ */
22108
+ invocationId: string;
22109
+ }
22110
+
22075
22111
  /**
22076
22112
  * Event fired when new tools are added.
22077
22113
  */
@@ -22127,7 +22163,8 @@ export namespace Protocol {
22127
22163
  */
22128
22164
  status: InvocationStatus;
22129
22165
  /**
22130
- * Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.
22166
+ * Output or error delivered as delivered to the agent. Missing if `status` is anything other than Completed.
22167
+ * Note: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.
22131
22168
  */
22132
22169
  output?: any;
22133
22170
  /**