browser_eval
Evaluates a JavaScript expression in a specified browser tab and returns the JSON-serialized value, enabling structured extraction from page context.
Instructions
Evaluate a JavaScript expression in the page and return its JSON-serialized value.
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_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | tab to target: 0-based index or URL/title substring; defaults to first tab | |
| expression | Yes |