browser_evaluate
Run JavaScript expressions directly in the current page context and retrieve JSON-serializable results, enabling agents to extract data or test logic during browser automation.
Instructions
Run a JS expression in the page context and return its JSON-serializable result.
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": "browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |