Methods

Chrome DevTools

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

Chrome DevTools

WebMCP.toolsAdded #

Event fired when new tools are added.

Parameters

tools
array[ Tool ]

Array of tools that were added.


Chrome DevTools

WebMCP.toolsRemoved #

Event fired when tools are removed.

Parameters

tools
array[ Tool ]

Array of tools that were removed.

Types

Chrome DevTools

WebMCP.Annotation #

Tool annotations

Type: object

Properties

readOnly
Optional
boolean

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

autosubmit
Optional
boolean

If the declarative tool was declared with the autosubmit attribute.


Chrome DevTools

WebMCP.Tool #

Definition of a tool that can be invoked.

Type: object

Properties

name
string

Tool name.

description
string

Tool description.

inputSchema
Optional
object

Schema for the tool's input parameters.

annotations
Optional
Annotation

Optional annotations for the tool.

frameId
Page.FrameId

Frame identifier associated with the tool registration.

backendNodeId
Optional
DOM.BackendNodeId

Optional node ID for declarative tools.

stackTrace
Optional
Runtime.StackTrace

The stack trace at the time of the registration.