eval
Execute JavaScript code in a running Chrome/Chromium tab via CDP to automate browser tasks and extract data.
Instructions
Execute JavaScript
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": {
"script": "<script>"
},
"name": "eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| timeout | No |