feat(mcp): add start/stop recording commands - #42359
Merged
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Yury Semikhatsky (yury-s)
force-pushed
the
fix-42338
branch
2 times, most recently
from
August 24, 2026 21:14
1f8a089 to
a96aae4
Compare
Yury Semikhatsky (yury-s)
requested a review
from Pavel Feldman (pavelfeldman)
August 24, 2026 21:36
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Yury Semikhatsky (yury-s)
force-pushed
the
fix-42338
branch
from
August 24, 2026 22:07
a96aae4 to
0c8d6f1
Compare
Pavel Feldman (pavelfeldman)
approved these changes
Aug 24, 2026
- move recording tool and cli commands to the devtools capability - declare the internal BrowserContext api in tools instead of casting to any
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Test results for "tests 1"6 flaky51400 passed, 1238 skipped Merge workflow run. |
Contributor
Test results for "MCP"8259 passed, 1361 skipped Merge workflow run. |
Yury Semikhatsky (yury-s)
added a commit
to microsoft/playwright-mcp
that referenced
this pull request
Sep 1, 2026
## What's New ### New Tools - **`browser_start_recording` / `browser_stop_recording`** (opt-in via `--caps=devtools`) — Record actions that the user performs manually in the browser and return them as Playwright code. Useful when the user wants to demonstrate a flow instead of describing it ([#42359](microsoft/playwright#42359)) ## Bug Fixes - The default `--codegen` language is inferred from the environment ([#42150](microsoft/playwright#42150)) - Honor `--user-data-dir` in extension mode ([#42190](microsoft/playwright#42190)) - Do not treat orphaned browser preferences entries as an installed extension ([#42224](microsoft/playwright#42224)) - `browser_take_screenshot` returns the original screenshot bytes instead of silently downscaling them to model-specific limits ([#42406](microsoft/playwright#42406)) - Drop the cached browser backend after `browser_close` with a shared browser context, so subsequent tool calls from the same client no longer fail ([#42365](microsoft/playwright#42365)) - When connected to a remote endpoint, `browserInfo` reports the browser actually running remotely instead of the configured one ([#42228](microsoft/playwright#42228)) - Do not clobber the `chromiumSandbox` setting from the config file ([#42288](microsoft/playwright#42288)) - Do not run the heartbeat for HTTP clients that have not opened an event stream ([#42189](microsoft/playwright#42189)) - The internal `/killkillkill` endpoint is no longer registered outside of tests ([#42133](microsoft/playwright#42133))
12 tasks
Pathfinder Team (PM-Labs)
pushed a commit
to pmlabs-org/mcp-playwright
that referenced
this pull request
Sep 15, 2026
## What's New ### New Tools - **`browser_start_recording` / `browser_stop_recording`** (opt-in via `--caps=devtools`) — Record actions that the user performs manually in the browser and return them as Playwright code. Useful when the user wants to demonstrate a flow instead of describing it ([#42359](microsoft/playwright#42359)) ## Bug Fixes - The default `--codegen` language is inferred from the environment ([#42150](microsoft/playwright#42150)) - Honor `--user-data-dir` in extension mode ([#42190](microsoft/playwright#42190)) - Do not treat orphaned browser preferences entries as an installed extension ([#42224](microsoft/playwright#42224)) - `browser_take_screenshot` returns the original screenshot bytes instead of silently downscaling them to model-specific limits ([#42406](microsoft/playwright#42406)) - Drop the cached browser backend after `browser_close` with a shared browser context, so subsequent tool calls from the same client no longer fail ([#42365](microsoft/playwright#42365)) - When connected to a remote endpoint, `browserInfo` reports the browser actually running remotely instead of the configured one ([#42228](microsoft/playwright#42228)) - Do not clobber the `chromiumSandbox` setting from the config file ([#42288](microsoft/playwright#42288)) - Do not run the heartbeat for HTTP clients that have not opened an event stream ([#42189](microsoft/playwright#42189)) - The internal `/killkillkill` endpoint is no longer registered outside of tests ([#42133](microsoft/playwright#42133))
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
browser_start_recording/browser_stop_recordingMCP tools andrecording-start/recording-stopCLI commands that record user actions in the browser and return them as Playwright code.Fixes #42338