exec
Execute trusted Playwright Python code within persistent browser profiles to automate sites, keep logins across runs, and run custom browser actions with helpers.
Instructions
Execute trusted Playwright Python with persistent session variables and helpers.
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": {
"profile": "<profile>",
"code": "<code>"
},
"name": "exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| site | No | ||
| profile | Yes | ||
| timeout | No |