webmcp-register-tool
Installation
SKILL.md
WebMCP Tool Registration (Imperative API)
Before writing code
Fetch live docs:
- Fetch
https://webmachinelearning.github.io/webmcp/for the latestregisterToolmethod signature and parameters - Web-search
webmcp navigator.modelContext registerTool specificationfor the full API reference - Web-search
site:developer.chrome.com webmcp registerToolfor Chrome-specific guidance - Web-search
site:github.com mcp-b registerToolfor polyfill-compatible registration patterns
Conceptual Architecture
What registerTool Does
navigator.modelContext.registerTool() is the core imperative method for exposing a tool to AI agents. Each registered tool becomes discoverable and invocable by any agent integrated with the browser.
Tool Definition Object
A tool object passed to registerTool() has these fields: