Repository navigation
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The API now supports custom WebMCP tools (
GET/POST /browsers/{id_or_name}/webmcp/custom-tools,DELETE .../custom-tools/{id}). It also returns tool metadata nested undertool(name,description,inputSchema, MCP-style annotation names) instead of the old flat fields. The generated API reference already covers both, but the hand-written guides still used the flat shape, so their examples broke against the current API and SDK 0.112.0.New page:
browsers/webmcp-custom-tools(nav: after WebMCP)pagevscdptools, the definition fields, and the context acdphandler receives (matches,signal)hn-tools.js): apagetool that lists stories and acdptool that navigates its tab and returns commentstool_refs,force_overwrite_namespace, 409/400/404 behaviorreset: true, or a crash removes all of themwebmcp.addCustomTools/listCustomTools/removeCustomTool, limits, and security notesUpdated for the nested shape
browsers/webmcp: field tables, annotation names, SDK/curl examples, GoListToolsparams argument,exclude_custom, andsource.custom/source.target_idbrowsers/playwright-executionandbrowsers/repl:tool.tool.nameandtool.inputSchemain the WebMCP helper examples. The REPL page also lists the custom-tool helpers andexcludeCustomreference/mcp-server/tools/webmcp(+ overview card): newlist_custom,add_custom, andremove_customactions and parametersreference/cli/browsers: new WebMCP section coveringwebmcp list/invokeandwebmcp custom-tools list/add/remove(CLI v0.41.0)Testing
webmcp.mdx, Playwright, and REPL examples, using a stand-insearch_productscustom tool.tsc --strict, and Go examples passgo vet.pagetools don't validate input, andcdptools doexclude_customworkswebmcp.listTools()includes custom toolsadd_customexample source against production.mint broken-linkspasses. All changed pages render undermint dev.Not verified, so the docs don't claim anything about it: whether custom tools survive browser standby/restore or browser-pool reuse. No changelog entry was added.