eval_js
Run JavaScript in the active browser tab and retrieve the result. Optionally use a saved profile to access real cookies and sessions, or run in a clean environment.
Instructions
Run JavaScript in the active tab and return the result. Set useProfile to a profile name (or "" for default) to use a COPY of your real cookies/sessions; omit for a clean browser.
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": "eval_js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| useProfile | No |