browser_evaluate
Execute JavaScript in the active browser page to manipulate DOM, extract data, or trigger custom actions. Use for advanced automation tasks that require direct page context execution.
Instructions
Execute JavaScript in page context
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function | No | JavaScript function to execute | |
| expression | No | JavaScript expression to evaluate |