wb_evaluate
Execute JavaScript in the active browser page to retrieve data or manipulate state, returning compact JSON output.
Instructions
Run JavaScript in the page. Prefer compact JSON.stringify returns. Wrap multi-call state in an IIFE.
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": "wb_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| session | No | Per-call session override (does not change the process default) |