docs(mcp): bring tool reference up to date with implementation - #2134
Open
Dmitry Gozman (dgozman) wants to merge 1 commit into
Open
docs(mcp): bring tool reference up to date with implementation#2134Dmitry Gozman (dgozman) wants to merge 1 commit into
Dmitry Gozman (dgozman) wants to merge 1 commit into
Conversation
Refresh mcp/ against the current tool definitions in playwright-core: - Element-targeting tools take `target` (a snapshot ref or a selector), not `ref`; `browser_drag` takes `startTarget`/`endTarget`. - Rename `browser_run_code` to `browser_run_code_unsafe`. - Document `browser_find`, `browser_network_request`, `browser_drop`, the highlight/annotate/recording tools and the video action overlays. - Drop tools that are not exposed over MCP (`browser_reload`, `browser_check`, `browser_console_clear`, ...) and point at the equivalent MCP call instead. - Fix parameter tables that did not match the schemas, notably `browser_network_requests`, `browser_evaluate`, `browser_route`, `browser_set_storage_state` and the verify tools. - Remove `--save-video`, which no longer exists, and refresh the CLI option list and config schema.
Yury Semikhatsky (yury-s)
approved these changes
Sep 4, 2026
Yury Semikhatsky (yury-s)
left a comment
Member
There was a problem hiding this comment.
do we need the same for CLI?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
mcp/against the current tool definitions inplaywright-core: element-targeting tools taketarget(a snapshot ref or a selector) rather thanref,browser_run_codeis nowbrowser_run_code_unsafe, and the parameter tables match the schemas again.browser_find,browser_network_request,browser_drop, the highlight/annotate/recording tools and the video action overlays (newmcp/tools/devtools.mdx).--save-video, which no longer exists.tools/file-uploadpage to the sidebar.Fixes microsoft/playwright#42517.