browser_js
Evaluate JavaScript expressions in the current tab or an iframe to automate interactions and extract data from web pages.
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 |