WebMCP Domain
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
- 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.