nex_browser_evaluate
Evaluate JavaScript expressions in the active or specified browser page and session when evaluate permission is enabled to inspect page state or run scripted checks.
Instructions
Evaluate JavaScript when the dedicated evaluate permission is enabled. Page CAPTCHA: default to nex_captcha_product_schema, collect real page inputs with permitted tools, then use free nex_captcha_detect with productCode/adapter. Confirm application capability before NexCaptcha buy/query and apply the result in the original page. nex_browser_captcha_prepare is optional; never bypass browser permissions.
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": "nex_browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Defaults to the active page | |
| sessionId | No | Defaults to the active session | |
| expression | Yes |