devtools-protocol 0.0.1595872 → 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.
|
@@ -31384,6 +31384,118 @@
|
|
|
31384
31384
|
]
|
|
31385
31385
|
}
|
|
31386
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
|
+
]
|
|
31387
31499
|
}
|
|
31388
31500
|
]
|
|
31389
31501
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
|
@@ -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 {
|
|
@@ -6318,6 +6326,14 @@ export namespace ProtocolMapping {
|
|
|
6318
6326
|
paramsType: [Protocol.WebAuthn.SetCredentialPropertiesRequest];
|
|
6319
6327
|
returnType: void;
|
|
6320
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
|
+
};
|
|
6321
6337
|
}
|
|
6322
6338
|
}
|
|
6323
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
|
|
|
@@ -5495,6 +5497,25 @@ export namespace ProtocolProxyApi {
|
|
|
5495
5497
|
on(event: 'credentialAsserted', listener: (params: Protocol.WebAuthn.CredentialAssertedEvent) => void): void;
|
|
5496
5498
|
|
|
5497
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
|
+
}
|
|
5498
5519
|
}
|
|
5499
5520
|
|
|
5500
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
|
|
|
@@ -5969,6 +5971,29 @@ export namespace ProtocolTestsProxyApi {
|
|
|
5969
5971
|
onceCredentialAsserted(eventMatcher?: (event: { params: Protocol.WebAuthn.CredentialAssertedEvent }) => boolean): Promise<{ params: Protocol.WebAuthn.CredentialAssertedEvent }>;
|
|
5970
5972
|
|
|
5971
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
|
+
}
|
|
5972
5997
|
}
|
|
5973
5998
|
|
|
5974
5999
|
export default ProtocolTestsProxyApi;
|
package/types/protocol.d.ts
CHANGED
|
@@ -22326,6 +22326,80 @@ export namespace Protocol {
|
|
|
22326
22326
|
credential: Credential;
|
|
22327
22327
|
}
|
|
22328
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
|
+
}
|
|
22329
22403
|
}
|
|
22330
22404
|
|
|
22331
22405
|
export default Protocol;
|