javascript
Run a script expression in a specified Chrome tab to inspect or manipulate page content and return the result.
Instructions
Execute JavaScript in a tab
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": "javascript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID | |
| expression | Yes | JavaScript expression to evaluate |