browser_evaluate
Run JavaScript expressions in the current page and get results as JSON to read state that snapshots hide, such as document.title, localStorage values, or window flags.
Instructions
Run a JavaScript expression in the page and get the result as JSON. Useful for reading state the snapshot hides (e.g. document.title, localStorage, window flags).
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 | JavaScript expression, e.g. document.title |