browser_eval_js
Execute JavaScript code directly within the active web page's context to retrieve data or trigger actions.
Instructions
Evaluate arbitrary JavaScript in the context of the active page.
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": {
"code": "<code>"
},
"name": "browser_eval_js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |