camofox_evaluate
Execute JavaScript in a browser tab to read page state, inject scripts, or call web app APIs. Returns the result of the expression.
Instructions
Evaluate JavaScript in a tab
Execute JavaScript in a Camoufox tab's page context and return the result of the expression. Use for injecting scripts, reading page state, or calling web app APIs.
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": {
"tabId": "<tabId>",
"userId": "<userId>",
"expression": "<expression>"
},
"name": "camofox_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | ||
| userId | Yes | ||
| expression | Yes | JavaScript expression to evaluate. |