browser_execute
Run JavaScript directly in a mobile browser page using the device serial number and script; get the evaluated result as a JSON envelope.
Instructions
Evaluate JavaScript in the page.
Danger tier: the script runs with the page's own privileges, the same reach as shell access to the browser profile.
Args: serialno: The browser device serialno, from list_devices. script: The JavaScript source to evaluate.
Returns: JSON envelope whose data carries the script result.
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": {
"serialno": "<serialno>",
"script": "<script>"
},
"name": "browser_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| serialno | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |