chrome_evaluate
Run JavaScript in a Chrome tab's page context via the debugger by passing an expression, and receive the JSON-serializable result for browser automation and page inspection.
Instructions
Run JavaScript in a tab's page context (via the debugger). Pass an expression; the JSON-serializable result is returned.
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": {
"expression": "<expression>"
},
"name": "chrome_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Chrome tab id (default: active tab) | |
| expression | Yes |