WebMCP Domain
Experimental
Methods
Events
Types
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
Types
WebMCP.Annotation #
Tool annotations
Type: object
Properties
readOnlyOptional
booleanA hint indicating that the tool does not modify any state.
autosubmitOptional
booleanIf the declarative tool was declared with the autosubmit attribute.
WebMCP.Tool #
Definition of a tool that can be invoked.
Type: object
Properties
name stringTool name.
description stringTool description.
inputSchemaOptional
objectSchema for the tool's input parameters.
annotationsOptional
Annotation
Optional annotations for the tool.
frameId Page.FrameId
Frame identifier associated with the tool registration.
backendNodeIdOptional
DOM.BackendNodeId
Optional node ID for declarative tools.
stackTraceOptional
Runtime.StackTrace
The stack trace at the time of the registration.