Chrome DevTools Protocol

Methods

WebMCP.enable

Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for all currently registered tools.

Events

WebMCP.toolsAdded

Event fired when new tools are added.

parameters
tools
array[ Tool ]

Array of tools that were added.

WebMCP.toolsRemoved

Event fired when tools are removed.

parameters
tools
array[ Tool ]

Array of tools that were removed.

Types

WebMCP.Annotation

Tool annotations

Type: object

properties
readOnly
boolean

A hint indicating that the tool does not modify any state.

autosubmit
boolean

If the declarative tool was declared with the autosubmit attribute.

WebMCP.Tool

Definition of a tool that can be invoked.

Type: object

properties
name
string

Tool name.

description
string

Tool description.

inputSchema
object

Schema for the tool's input parameters.

annotations
Annotation

Optional annotations for the tool.

frameId
Page.FrameId

Frame identifier associated with the tool registration.

backendNodeId
DOM.BackendNodeId

Optional node ID for declarative tools.

stackTrace
Runtime.StackTrace

The stack trace at the time of the registration.