browser_run_code
Run Python automation code inside the persistent browser daemon to control pages, extract data, and execute multi-step browser tasks.
Instructions
Execute Python automation code directly inside the resident browser daemon.
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": {
"code": "<code>"
},
"name": "browser_run_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| tab_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |