chrome_evaluate
Execute JavaScript in a live Chrome page and retrieve the returned value, enabling browser automation and data extraction.
Instructions
Execute JavaScript in the page context and return the 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": {
"expression": "<expression>"
},
"name": "chrome_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_index | No | Tab index (optional) | |
| expression | Yes | JavaScript expression to evaluate |