eval_js
Run custom JavaScript in a browser tab to inspect page state and return awaited results; use only for inspection when other Chromancer tools are insufficient and allowEval is enabled.
Instructions
Run JavaScript in the page and return the result (awaits promises). DISABLED unless allowEval is true in the Chromancer config. Prefer the other tools; use this only for inspection.
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 | ||
| tabId | No | Tab ID from tabs_list. Omit for the active tab. | |
| profile | No | Chrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile. |