chrome_javascript
Execute JavaScript in a Chrome tab to extract data, submit forms, or scroll to elements, returning the result for actions not covered by other tools.
Instructions
Run JavaScript in a Chrome tab and return the result. Use for anything the other chrome_ tools do not cover - extracting data, submitting a form, scrolling to an element.
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_javascript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| tab_id | No | ||
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |