browser_js
Run JavaScript expressions in the active browser tab or a specified iframe to inspect or modify page state.
Instructions
Evaluate a JavaScript expression in the current tab (or an iframe target_id).
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": "browser_js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | No | ||
| expression | Yes |