Export the session as a Playwright test
browser_export_testConvert recorded browser session actions into a runnable @playwright/test spec using role+name locators that survive re-renders, and optionally write it to disk.
Instructions
Convert every action performed in this session into a runnable @playwright/test spec file, using role+name locators so the test survives re-renders. Returns the file contents, and optionally writes them to disk.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_export_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to write the spec to. When omitted the spec is only returned. | |
| title | No | Test title. Default: "Recorded browsing session". |