Execute Script
execute_scriptRun JavaScript in the foreground browser page and return its JSON result.
Instructions
Run JavaScript in the foreground browser page and return its JSON 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": {
"js": "<js>"
},
"name": "execute_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | Yes | ||
| device | No |