runtime_evaluate
Execute JavaScript in a live Chrome tab to test, debug, or modify page behavior through the DevTools Protocol.
Instructions
Evaluate JavaScript in the inspected tab using Chrome DevTools Protocol Runtime.evaluate.
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": {
"tabId": "<tabId>",
"expression": "<expression>"
},
"name": "runtime_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | ||
| expression | Yes | ||
| awaitPromise | No | ||
| returnByValue | No |