Execute a page-registered MCP tool
call_webmcp_toolCall a WebMCP tool the open page registered: tool_name as the page listed it, input a JSON string matching the tool's input schema. The tool runs in the page's main world; it is the page author's own interface for that action.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tool_name": "<tool_name>"
},
"name": "call_webmcp_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | JSON-stringified parameters to pass to the tool. Omit for tools with no parameters. | |
| tool_name | Yes | Name of the WebMCP tool to call (from list_webmcp_tools) |