devtools-protocol 0.0.1594462 → 0.0.1596832

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.
@@ -1471,40 +1471,6 @@
1471
1471
  }
1472
1472
  ]
1473
1473
  },
1474
- {
1475
- "id": "LowTextContrastIssueDetails",
1476
- "type": "object",
1477
- "properties": [
1478
- {
1479
- "name": "violatingNodeId",
1480
- "$ref": "DOM.BackendNodeId"
1481
- },
1482
- {
1483
- "name": "violatingNodeSelector",
1484
- "type": "string"
1485
- },
1486
- {
1487
- "name": "contrastRatio",
1488
- "type": "number"
1489
- },
1490
- {
1491
- "name": "thresholdAA",
1492
- "type": "number"
1493
- },
1494
- {
1495
- "name": "thresholdAAA",
1496
- "type": "number"
1497
- },
1498
- {
1499
- "name": "fontSize",
1500
- "type": "string"
1501
- },
1502
- {
1503
- "name": "fontWeight",
1504
- "type": "string"
1505
- }
1506
- ]
1507
- },
1508
1474
  {
1509
1475
  "id": "CorsIssueDetails",
1510
1476
  "description": "Details for a CORS related issue, e.g. a warning or error related to\nCORS RFC1918 enforcement.",
@@ -2340,7 +2306,6 @@
2340
2306
  "HeavyAdIssue",
2341
2307
  "ContentSecurityPolicyIssue",
2342
2308
  "SharedArrayBufferIssue",
2343
- "LowTextContrastIssue",
2344
2309
  "CorsIssue",
2345
2310
  "AttributionReportingIssue",
2346
2311
  "QuirksModeIssue",
@@ -2401,11 +2366,6 @@
2401
2366
  "optional": true,
2402
2367
  "$ref": "SharedArrayBufferIssueDetails"
2403
2368
  },
2404
- {
2405
- "name": "lowTextContrastIssueDetails",
2406
- "optional": true,
2407
- "$ref": "LowTextContrastIssueDetails"
2408
- },
2409
2369
  {
2410
2370
  "name": "corsIssueDetails",
2411
2371
  "optional": true,
@@ -2611,18 +2571,6 @@
2611
2571
  "name": "enable",
2612
2572
  "description": "Enables issues domain, sends the issues collected so far to the client by means of the\n`issueAdded` event."
2613
2573
  },
2614
- {
2615
- "name": "checkContrast",
2616
- "description": "Runs the contrast check for the target page. Found issues are reported\nusing Audits.issueAdded event.",
2617
- "parameters": [
2618
- {
2619
- "name": "reportAAA",
2620
- "description": "Whether to report WCAG AAA level issues. Default is false.",
2621
- "optional": true,
2622
- "type": "boolean"
2623
- }
2624
- ]
2625
- },
2626
2574
  {
2627
2575
  "name": "checkFormsIssues",
2628
2576
  "description": "Runs the form issues check for the target page. Found issues are reported\nusing Audits.issueAdded event.",
@@ -22960,6 +22908,7 @@
22960
22908
  "BackForwardCacheDisabledForPrerender",
22961
22909
  "UserAgentOverrideDiffers",
22962
22910
  "ForegroundCacheLimit",
22911
+ "ForwardCacheDisabled",
22963
22912
  "BrowsingInstanceNotSwapped",
22964
22913
  "BackForwardCacheDisabledForDelegate",
22965
22914
  "UnloadHandlerExistsInMainFrame",
@@ -31435,6 +31384,118 @@
31435
31384
  ]
31436
31385
  }
31437
31386
  ]
31387
+ },
31388
+ {
31389
+ "domain": "WebMCP",
31390
+ "experimental": true,
31391
+ "dependencies": [
31392
+ "Runtime",
31393
+ "Page",
31394
+ "DOM"
31395
+ ],
31396
+ "types": [
31397
+ {
31398
+ "id": "Annotation",
31399
+ "description": "Tool annotations",
31400
+ "type": "object",
31401
+ "properties": [
31402
+ {
31403
+ "name": "readOnly",
31404
+ "description": "A hint indicating that the tool does not modify any state.",
31405
+ "optional": true,
31406
+ "type": "boolean"
31407
+ },
31408
+ {
31409
+ "name": "autosubmit",
31410
+ "description": "If the declarative tool was declared with the autosubmit attribute.",
31411
+ "optional": true,
31412
+ "type": "boolean"
31413
+ }
31414
+ ]
31415
+ },
31416
+ {
31417
+ "id": "Tool",
31418
+ "description": "Definition of a tool that can be invoked.",
31419
+ "type": "object",
31420
+ "properties": [
31421
+ {
31422
+ "name": "name",
31423
+ "description": "Tool name.",
31424
+ "type": "string"
31425
+ },
31426
+ {
31427
+ "name": "description",
31428
+ "description": "Tool description.",
31429
+ "type": "string"
31430
+ },
31431
+ {
31432
+ "name": "inputSchema",
31433
+ "description": "Schema for the tool's input parameters.",
31434
+ "optional": true,
31435
+ "type": "object"
31436
+ },
31437
+ {
31438
+ "name": "annotations",
31439
+ "description": "Optional annotations for the tool.",
31440
+ "optional": true,
31441
+ "$ref": "Annotation"
31442
+ },
31443
+ {
31444
+ "name": "frameId",
31445
+ "description": "Frame identifier associated with the tool registration.",
31446
+ "$ref": "Page.FrameId"
31447
+ },
31448
+ {
31449
+ "name": "backendNodeId",
31450
+ "description": "Optional node ID for declarative tools.",
31451
+ "optional": true,
31452
+ "$ref": "DOM.BackendNodeId"
31453
+ },
31454
+ {
31455
+ "name": "stackTrace",
31456
+ "description": "The stack trace at the time of the registration.",
31457
+ "optional": true,
31458
+ "$ref": "Runtime.StackTrace"
31459
+ }
31460
+ ]
31461
+ }
31462
+ ],
31463
+ "commands": [
31464
+ {
31465
+ "name": "enable",
31466
+ "description": "Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for\nall currently registered tools."
31467
+ }
31468
+ ],
31469
+ "events": [
31470
+ {
31471
+ "name": "toolsAdded",
31472
+ "description": "Event fired when new tools are added.",
31473
+ "parameters": [
31474
+ {
31475
+ "name": "tools",
31476
+ "description": "Array of tools that were added.",
31477
+ "type": "array",
31478
+ "items": {
31479
+ "$ref": "Tool"
31480
+ }
31481
+ }
31482
+ ]
31483
+ },
31484
+ {
31485
+ "name": "toolsRemoved",
31486
+ "description": "Event fired when tools are removed.",
31487
+ "parameters": [
31488
+ {
31489
+ "name": "tools",
31490
+ "description": "Array of tools that were removed.",
31491
+ "type": "array",
31492
+ "items": {
31493
+ "$ref": "Tool"
31494
+ }
31495
+ }
31496
+ ]
31497
+ }
31498
+ ]
31438
31499
  }
31439
31500
  ]
31440
31501
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1594462",
3
+ "version": "0.0.1596832",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -56,3 +56,4 @@ include domains/Tethering.pdl
56
56
  include domains/Tracing.pdl
57
57
  include domains/WebAudio.pdl
58
58
  include domains/WebAuthn.pdl
59
+ include domains/WebMCP.pdl
@@ -258,16 +258,6 @@ experimental domain Audits
258
258
  boolean isWarning
259
259
  SharedArrayBufferIssueType type
260
260
 
261
- type LowTextContrastIssueDetails extends object
262
- properties
263
- DOM.BackendNodeId violatingNodeId
264
- string violatingNodeSelector
265
- number contrastRatio
266
- number thresholdAA
267
- number thresholdAAA
268
- string fontSize
269
- string fontWeight
270
-
271
261
  # Details for a CORS related issue, e.g. a warning or error related to
272
262
  # CORS RFC1918 enforcement.
273
263
  type CorsIssueDetails extends object
@@ -744,7 +734,6 @@ experimental domain Audits
744
734
  HeavyAdIssue
745
735
  ContentSecurityPolicyIssue
746
736
  SharedArrayBufferIssue
747
- LowTextContrastIssue
748
737
  CorsIssue
749
738
  AttributionReportingIssue
750
739
  QuirksModeIssue
@@ -781,7 +770,6 @@ experimental domain Audits
781
770
  optional HeavyAdIssueDetails heavyAdIssueDetails
782
771
  optional ContentSecurityPolicyIssueDetails contentSecurityPolicyIssueDetails
783
772
  optional SharedArrayBufferIssueDetails sharedArrayBufferIssueDetails
784
- optional LowTextContrastIssueDetails lowTextContrastIssueDetails
785
773
  optional CorsIssueDetails corsIssueDetails
786
774
  optional AttributionReportingIssueDetails attributionReportingIssueDetails
787
775
  optional QuirksModeIssueDetails quirksModeIssueDetails
@@ -849,13 +837,6 @@ experimental domain Audits
849
837
  # `issueAdded` event.
850
838
  command enable
851
839
 
852
- # Runs the contrast check for the target page. Found issues are reported
853
- # using Audits.issueAdded event.
854
- command checkContrast
855
- parameters
856
- # Whether to report WCAG AAA level issues. Default is false.
857
- optional boolean reportAAA
858
-
859
840
  # Runs the form issues check for the target page. Found issues are reported
860
841
  # using Audits.issueAdded event.
861
842
  command checkFormsIssues
@@ -1537,6 +1537,7 @@ domain Page
1537
1537
  BackForwardCacheDisabledForPrerender
1538
1538
  UserAgentOverrideDiffers
1539
1539
  ForegroundCacheLimit
1540
+ ForwardCacheDisabled
1540
1541
  BrowsingInstanceNotSwapped
1541
1542
  BackForwardCacheDisabledForDelegate
1542
1543
  UnloadHandlerExistsInMainFrame
@@ -1114,6 +1114,14 @@ export namespace ProtocolMapping {
1114
1114
  * Triggered when a credential is used in a webauthn assertion.
1115
1115
  */
1116
1116
  'WebAuthn.credentialAsserted': [Protocol.WebAuthn.CredentialAssertedEvent];
1117
+ /**
1118
+ * Event fired when new tools are added.
1119
+ */
1120
+ 'WebMCP.toolsAdded': [Protocol.WebMCP.ToolsAddedEvent];
1121
+ /**
1122
+ * Event fired when tools are removed.
1123
+ */
1124
+ 'WebMCP.toolsRemoved': [Protocol.WebMCP.ToolsRemovedEvent];
1117
1125
  }
1118
1126
 
1119
1127
  export interface Commands {
@@ -1872,14 +1880,6 @@ export namespace ProtocolMapping {
1872
1880
  paramsType: [];
1873
1881
  returnType: void;
1874
1882
  };
1875
- /**
1876
- * Runs the contrast check for the target page. Found issues are reported
1877
- * using Audits.issueAdded event.
1878
- */
1879
- 'Audits.checkContrast': {
1880
- paramsType: [Protocol.Audits.CheckContrastRequest?];
1881
- returnType: void;
1882
- };
1883
1883
  /**
1884
1884
  * Runs the form issues check for the target page. Found issues are reported
1885
1885
  * using Audits.issueAdded event.
@@ -6326,6 +6326,14 @@ export namespace ProtocolMapping {
6326
6326
  paramsType: [Protocol.WebAuthn.SetCredentialPropertiesRequest];
6327
6327
  returnType: void;
6328
6328
  };
6329
+ /**
6330
+ * Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for
6331
+ * all currently registered tools.
6332
+ */
6333
+ 'WebMCP.enable': {
6334
+ paramsType: [];
6335
+ returnType: void;
6336
+ };
6329
6337
  }
6330
6338
  }
6331
6339
 
@@ -122,6 +122,8 @@ export namespace ProtocolProxyApi {
122
122
 
123
123
  WebAuthn: WebAuthnApi;
124
124
 
125
+ WebMCP: WebMCPApi;
126
+
125
127
  }
126
128
 
127
129
 
@@ -843,12 +845,6 @@ export namespace ProtocolProxyApi {
843
845
  */
844
846
  enable(): Promise<void>;
845
847
 
846
- /**
847
- * Runs the contrast check for the target page. Found issues are reported
848
- * using Audits.issueAdded event.
849
- */
850
- checkContrast(params: Protocol.Audits.CheckContrastRequest): Promise<void>;
851
-
852
848
  /**
853
849
  * Runs the form issues check for the target page. Found issues are reported
854
850
  * using Audits.issueAdded event.
@@ -5501,6 +5497,25 @@ export namespace ProtocolProxyApi {
5501
5497
  on(event: 'credentialAsserted', listener: (params: Protocol.WebAuthn.CredentialAssertedEvent) => void): void;
5502
5498
 
5503
5499
  }
5500
+
5501
+ export interface WebMCPApi {
5502
+ /**
5503
+ * Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for
5504
+ * all currently registered tools.
5505
+ */
5506
+ enable(): Promise<void>;
5507
+
5508
+ /**
5509
+ * Event fired when new tools are added.
5510
+ */
5511
+ on(event: 'toolsAdded', listener: (params: Protocol.WebMCP.ToolsAddedEvent) => void): void;
5512
+
5513
+ /**
5514
+ * Event fired when tools are removed.
5515
+ */
5516
+ on(event: 'toolsRemoved', listener: (params: Protocol.WebMCP.ToolsRemovedEvent) => void): void;
5517
+
5518
+ }
5504
5519
  }
5505
5520
 
5506
5521
  export default ProtocolProxyApi;
@@ -122,6 +122,8 @@ export namespace ProtocolTestsProxyApi {
122
122
 
123
123
  WebAuthn: WebAuthnApi;
124
124
 
125
+ WebMCP: WebMCPApi;
126
+
125
127
  }
126
128
 
127
129
 
@@ -899,12 +901,6 @@ export namespace ProtocolTestsProxyApi {
899
901
  */
900
902
  enable(): Promise<{id: number, result: void, sessionId: string}>;
901
903
 
902
- /**
903
- * Runs the contrast check for the target page. Found issues are reported
904
- * using Audits.issueAdded event.
905
- */
906
- checkContrast(params: Protocol.Audits.CheckContrastRequest): Promise<{id: number, result: void, sessionId: string}>;
907
-
908
904
  /**
909
905
  * Runs the form issues check for the target page. Found issues are reported
910
906
  * using Audits.issueAdded event.
@@ -5975,6 +5971,29 @@ export namespace ProtocolTestsProxyApi {
5975
5971
  onceCredentialAsserted(eventMatcher?: (event: { params: Protocol.WebAuthn.CredentialAssertedEvent }) => boolean): Promise<{ params: Protocol.WebAuthn.CredentialAssertedEvent }>;
5976
5972
 
5977
5973
  }
5974
+
5975
+ export interface WebMCPApi {
5976
+ /**
5977
+ * Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for
5978
+ * all currently registered tools.
5979
+ */
5980
+ enable(): Promise<{id: number, result: void, sessionId: string}>;
5981
+
5982
+ /**
5983
+ * Event fired when new tools are added.
5984
+ */
5985
+ onToolsAdded(listener: (event: { params: Protocol.WebMCP.ToolsAddedEvent }) => void): void;
5986
+ offToolsAdded(listener: (event: { params: Protocol.WebMCP.ToolsAddedEvent }) => void): void;
5987
+ onceToolsAdded(eventMatcher?: (event: { params: Protocol.WebMCP.ToolsAddedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolsAddedEvent }>;
5988
+
5989
+ /**
5990
+ * Event fired when tools are removed.
5991
+ */
5992
+ onToolsRemoved(listener: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => void): void;
5993
+ offToolsRemoved(listener: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => void): void;
5994
+ onceToolsRemoved(eventMatcher?: (event: { params: Protocol.WebMCP.ToolsRemovedEvent }) => boolean): Promise<{ params: Protocol.WebMCP.ToolsRemovedEvent }>;
5995
+
5996
+ }
5978
5997
  }
5979
5998
 
5980
5999
  export default ProtocolTestsProxyApi;
@@ -3624,16 +3624,6 @@ export namespace Protocol {
3624
3624
  type: SharedArrayBufferIssueType;
3625
3625
  }
3626
3626
 
3627
- export interface LowTextContrastIssueDetails {
3628
- violatingNodeId: DOM.BackendNodeId;
3629
- violatingNodeSelector: string;
3630
- contrastRatio: number;
3631
- thresholdAA: number;
3632
- thresholdAAA: number;
3633
- fontSize: string;
3634
- fontWeight: string;
3635
- }
3636
-
3637
3627
  /**
3638
3628
  * Details for a CORS related issue, e.g. a warning or error related to
3639
3629
  * CORS RFC1918 enforcement.
@@ -3998,7 +3988,7 @@ export namespace Protocol {
3998
3988
  * optional fields in InspectorIssueDetails to convey more specific
3999
3989
  * information about the kind of issue.
4000
3990
  */
4001
- export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'ConnectionAllowlistIssue' | 'UserReidentificationIssue' | 'PermissionElementIssue' | 'PerformanceIssue' | 'SelectivePermissionsInterventionIssue');
3991
+ export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'ConnectionAllowlistIssue' | 'UserReidentificationIssue' | 'PermissionElementIssue' | 'PerformanceIssue' | 'SelectivePermissionsInterventionIssue');
4002
3992
 
4003
3993
  /**
4004
3994
  * This struct holds a list of optional fields with additional information
@@ -4012,7 +4002,6 @@ export namespace Protocol {
4012
4002
  heavyAdIssueDetails?: HeavyAdIssueDetails;
4013
4003
  contentSecurityPolicyIssueDetails?: ContentSecurityPolicyIssueDetails;
4014
4004
  sharedArrayBufferIssueDetails?: SharedArrayBufferIssueDetails;
4015
- lowTextContrastIssueDetails?: LowTextContrastIssueDetails;
4016
4005
  corsIssueDetails?: CorsIssueDetails;
4017
4006
  attributionReportingIssueDetails?: AttributionReportingIssueDetails;
4018
4007
  quirksModeIssueDetails?: QuirksModeIssueDetails;
@@ -4100,13 +4089,6 @@ export namespace Protocol {
4100
4089
  encodedSize: integer;
4101
4090
  }
4102
4091
 
4103
- export interface CheckContrastRequest {
4104
- /**
4105
- * Whether to report WCAG AAA level issues. Default is false.
4106
- */
4107
- reportAAA?: boolean;
4108
- }
4109
-
4110
4092
  export interface CheckFormsIssuesResponse {
4111
4093
  formIssues: GenericIssueDetails[];
4112
4094
  }
@@ -17295,7 +17277,7 @@ export namespace Protocol {
17295
17277
  * List of not restored reasons for back-forward cache.
17296
17278
  * @experimental
17297
17279
  */
17298
- export type BackForwardCacheNotRestoredReason = ('NotPrimaryMainFrame' | 'BackForwardCacheDisabled' | 'RelatedActiveContentsExist' | 'HTTPStatusNotOK' | 'SchemeNotHTTPOrHTTPS' | 'Loading' | 'WasGrantedMediaAccess' | 'DisableForRenderFrameHostCalled' | 'DomainNotAllowed' | 'HTTPMethodNotGET' | 'SubframeIsNavigating' | 'Timeout' | 'CacheLimit' | 'JavaScriptExecution' | 'RendererProcessKilled' | 'RendererProcessCrashed' | 'SchedulerTrackedFeatureUsed' | 'ConflictingBrowsingInstance' | 'CacheFlushed' | 'ServiceWorkerVersionActivation' | 'SessionRestored' | 'ServiceWorkerPostMessage' | 'EnteredBackForwardCacheBeforeServiceWorkerHostAdded' | 'RenderFrameHostReused_SameSite' | 'RenderFrameHostReused_CrossSite' | 'ServiceWorkerClaim' | 'IgnoreEventAndEvict' | 'HaveInnerContents' | 'TimeoutPuttingInCache' | 'BackForwardCacheDisabledByLowMemory' | 'BackForwardCacheDisabledByCommandLine' | 'NetworkRequestDatapipeDrainedAsBytesConsumer' | 'NetworkRequestRedirected' | 'NetworkRequestTimeout' | 'NetworkExceedsBufferLimit' | 'NavigationCancelledWhileRestoring' | 'NotMostRecentNavigationEntry' | 'BackForwardCacheDisabledForPrerender' | 'UserAgentOverrideDiffers' | 'ForegroundCacheLimit' | 'BrowsingInstanceNotSwapped' | 'BackForwardCacheDisabledForDelegate' | 'UnloadHandlerExistsInMainFrame' | 'UnloadHandlerExistsInSubFrame' | 'ServiceWorkerUnregistration' | 'CacheControlNoStore' | 'CacheControlNoStoreCookieModified' | 'CacheControlNoStoreHTTPOnlyCookieModified' | 'NoResponseHead' | 'Unknown' | 'ActivationNavigationsDisallowedForBug1234857' | 'ErrorDocument' | 'FencedFramesEmbedder' | 'CookieDisabled' | 'HTTPAuthRequired' | 'CookieFlushed' | 'BroadcastChannelOnMessage' | 'WebViewSettingsChanged' | 'WebViewJavaScriptObjectChanged' | 'WebViewMessageListenerInjected' | 'WebViewSafeBrowsingAllowlistChanged' | 'WebViewDocumentStartJavascriptChanged' | 'WebSocket' | 'WebTransport' | 'WebRTC' | 'MainResourceHasCacheControlNoStore' | 'MainResourceHasCacheControlNoCache' | 'SubresourceHasCacheControlNoStore' | 'SubresourceHasCacheControlNoCache' | 'ContainsPlugins' | 'DocumentLoaded' | 'OutstandingNetworkRequestOthers' | 'RequestedMIDIPermission' | 'RequestedAudioCapturePermission' | 'RequestedVideoCapturePermission' | 'RequestedBackForwardCacheBlockedSensors' | 'RequestedBackgroundWorkPermission' | 'BroadcastChannel' | 'WebXR' | 'SharedWorker' | 'SharedWorkerMessage' | 'SharedWorkerWithNoActiveClient' | 'WebLocks' | 'WebLocksContention' | 'WebHID' | 'WebBluetooth' | 'WebShare' | 'RequestedStorageAccessGrant' | 'WebNfc' | 'OutstandingNetworkRequestFetch' | 'OutstandingNetworkRequestXHR' | 'AppBanner' | 'Printing' | 'WebDatabase' | 'PictureInPicture' | 'SpeechRecognizer' | 'IdleManager' | 'PaymentManager' | 'SpeechSynthesis' | 'KeyboardLock' | 'WebOTPService' | 'OutstandingNetworkRequestDirectSocket' | 'InjectedJavascript' | 'InjectedStyleSheet' | 'KeepaliveRequest' | 'IndexedDBEvent' | 'Dummy' | 'JsNetworkRequestReceivedCacheControlNoStoreResource' | 'WebRTCUsedWithCCNS' | 'WebTransportUsedWithCCNS' | 'WebSocketUsedWithCCNS' | 'SmartCard' | 'LiveMediaStreamTrack' | 'UnloadHandler' | 'ParserAborted' | 'ContentSecurityHandler' | 'ContentWebAuthenticationAPI' | 'ContentFileChooser' | 'ContentSerial' | 'ContentFileSystemAccess' | 'ContentMediaDevicesDispatcherHost' | 'ContentWebBluetooth' | 'ContentWebUSB' | 'ContentMediaSessionService' | 'ContentScreenReader' | 'ContentDiscarded' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame' | 'RequestedByWebViewClient' | 'PostMessageByWebViewClient' | 'CacheControlNoStoreDeviceBoundSessionTerminated' | 'CacheLimitPrunedOnModerateMemoryPressure' | 'CacheLimitPrunedOnCriticalMemoryPressure');
17280
+ export type BackForwardCacheNotRestoredReason = ('NotPrimaryMainFrame' | 'BackForwardCacheDisabled' | 'RelatedActiveContentsExist' | 'HTTPStatusNotOK' | 'SchemeNotHTTPOrHTTPS' | 'Loading' | 'WasGrantedMediaAccess' | 'DisableForRenderFrameHostCalled' | 'DomainNotAllowed' | 'HTTPMethodNotGET' | 'SubframeIsNavigating' | 'Timeout' | 'CacheLimit' | 'JavaScriptExecution' | 'RendererProcessKilled' | 'RendererProcessCrashed' | 'SchedulerTrackedFeatureUsed' | 'ConflictingBrowsingInstance' | 'CacheFlushed' | 'ServiceWorkerVersionActivation' | 'SessionRestored' | 'ServiceWorkerPostMessage' | 'EnteredBackForwardCacheBeforeServiceWorkerHostAdded' | 'RenderFrameHostReused_SameSite' | 'RenderFrameHostReused_CrossSite' | 'ServiceWorkerClaim' | 'IgnoreEventAndEvict' | 'HaveInnerContents' | 'TimeoutPuttingInCache' | 'BackForwardCacheDisabledByLowMemory' | 'BackForwardCacheDisabledByCommandLine' | 'NetworkRequestDatapipeDrainedAsBytesConsumer' | 'NetworkRequestRedirected' | 'NetworkRequestTimeout' | 'NetworkExceedsBufferLimit' | 'NavigationCancelledWhileRestoring' | 'NotMostRecentNavigationEntry' | 'BackForwardCacheDisabledForPrerender' | 'UserAgentOverrideDiffers' | 'ForegroundCacheLimit' | 'ForwardCacheDisabled' | 'BrowsingInstanceNotSwapped' | 'BackForwardCacheDisabledForDelegate' | 'UnloadHandlerExistsInMainFrame' | 'UnloadHandlerExistsInSubFrame' | 'ServiceWorkerUnregistration' | 'CacheControlNoStore' | 'CacheControlNoStoreCookieModified' | 'CacheControlNoStoreHTTPOnlyCookieModified' | 'NoResponseHead' | 'Unknown' | 'ActivationNavigationsDisallowedForBug1234857' | 'ErrorDocument' | 'FencedFramesEmbedder' | 'CookieDisabled' | 'HTTPAuthRequired' | 'CookieFlushed' | 'BroadcastChannelOnMessage' | 'WebViewSettingsChanged' | 'WebViewJavaScriptObjectChanged' | 'WebViewMessageListenerInjected' | 'WebViewSafeBrowsingAllowlistChanged' | 'WebViewDocumentStartJavascriptChanged' | 'WebSocket' | 'WebTransport' | 'WebRTC' | 'MainResourceHasCacheControlNoStore' | 'MainResourceHasCacheControlNoCache' | 'SubresourceHasCacheControlNoStore' | 'SubresourceHasCacheControlNoCache' | 'ContainsPlugins' | 'DocumentLoaded' | 'OutstandingNetworkRequestOthers' | 'RequestedMIDIPermission' | 'RequestedAudioCapturePermission' | 'RequestedVideoCapturePermission' | 'RequestedBackForwardCacheBlockedSensors' | 'RequestedBackgroundWorkPermission' | 'BroadcastChannel' | 'WebXR' | 'SharedWorker' | 'SharedWorkerMessage' | 'SharedWorkerWithNoActiveClient' | 'WebLocks' | 'WebLocksContention' | 'WebHID' | 'WebBluetooth' | 'WebShare' | 'RequestedStorageAccessGrant' | 'WebNfc' | 'OutstandingNetworkRequestFetch' | 'OutstandingNetworkRequestXHR' | 'AppBanner' | 'Printing' | 'WebDatabase' | 'PictureInPicture' | 'SpeechRecognizer' | 'IdleManager' | 'PaymentManager' | 'SpeechSynthesis' | 'KeyboardLock' | 'WebOTPService' | 'OutstandingNetworkRequestDirectSocket' | 'InjectedJavascript' | 'InjectedStyleSheet' | 'KeepaliveRequest' | 'IndexedDBEvent' | 'Dummy' | 'JsNetworkRequestReceivedCacheControlNoStoreResource' | 'WebRTCUsedWithCCNS' | 'WebTransportUsedWithCCNS' | 'WebSocketUsedWithCCNS' | 'SmartCard' | 'LiveMediaStreamTrack' | 'UnloadHandler' | 'ParserAborted' | 'ContentSecurityHandler' | 'ContentWebAuthenticationAPI' | 'ContentFileChooser' | 'ContentSerial' | 'ContentFileSystemAccess' | 'ContentMediaDevicesDispatcherHost' | 'ContentWebBluetooth' | 'ContentWebUSB' | 'ContentMediaSessionService' | 'ContentScreenReader' | 'ContentDiscarded' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame' | 'RequestedByWebViewClient' | 'PostMessageByWebViewClient' | 'CacheControlNoStoreDeviceBoundSessionTerminated' | 'CacheLimitPrunedOnModerateMemoryPressure' | 'CacheLimitPrunedOnCriticalMemoryPressure');
17299
17281
 
17300
17282
  /**
17301
17283
  * Types of not restored reasons for back-forward cache.
@@ -22344,6 +22326,80 @@ export namespace Protocol {
22344
22326
  credential: Credential;
22345
22327
  }
22346
22328
  }
22329
+
22330
+ /**
22331
+ * @experimental
22332
+ */
22333
+ export namespace WebMCP {
22334
+
22335
+ /**
22336
+ * Tool annotations
22337
+ */
22338
+ export interface Annotation {
22339
+ /**
22340
+ * A hint indicating that the tool does not modify any state.
22341
+ */
22342
+ readOnly?: boolean;
22343
+ /**
22344
+ * If the declarative tool was declared with the autosubmit attribute.
22345
+ */
22346
+ autosubmit?: boolean;
22347
+ }
22348
+
22349
+ /**
22350
+ * Definition of a tool that can be invoked.
22351
+ */
22352
+ export interface Tool {
22353
+ /**
22354
+ * Tool name.
22355
+ */
22356
+ name: string;
22357
+ /**
22358
+ * Tool description.
22359
+ */
22360
+ description: string;
22361
+ /**
22362
+ * Schema for the tool's input parameters.
22363
+ */
22364
+ inputSchema?: any;
22365
+ /**
22366
+ * Optional annotations for the tool.
22367
+ */
22368
+ annotations?: Annotation;
22369
+ /**
22370
+ * Frame identifier associated with the tool registration.
22371
+ */
22372
+ frameId: Page.FrameId;
22373
+ /**
22374
+ * Optional node ID for declarative tools.
22375
+ */
22376
+ backendNodeId?: DOM.BackendNodeId;
22377
+ /**
22378
+ * The stack trace at the time of the registration.
22379
+ */
22380
+ stackTrace?: Runtime.StackTrace;
22381
+ }
22382
+
22383
+ /**
22384
+ * Event fired when new tools are added.
22385
+ */
22386
+ export interface ToolsAddedEvent {
22387
+ /**
22388
+ * Array of tools that were added.
22389
+ */
22390
+ tools: Tool[];
22391
+ }
22392
+
22393
+ /**
22394
+ * Event fired when tools are removed.
22395
+ */
22396
+ export interface ToolsRemovedEvent {
22397
+ /**
22398
+ * Array of tools that were removed.
22399
+ */
22400
+ tools: Tool[];
22401
+ }
22402
+ }
22347
22403
  }
22348
22404
 
22349
22405
  export default Protocol;