browser_evaluate
Execute JavaScript in the current page by passing an expression or a function body with a return statement to read or change DOM values.
Instructions
Run JavaScript in the page. Pass an expression ("document.title") or a function body using return.
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": {
"script": "<script>"
},
"name": "browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes |