Generate Playwright Script
browser.generate_playwright_scriptGenerate a Playwright test script from your current browser session to automate user actions, save authentication states, and extract page data.
Instructions
Generate a Playwright test script from current session.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>"
},
"name": "browser.generate_playwright_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| sessionId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| notes | Yes | ||
| language | Yes |