Evaluate JavaScript
browser_evaluateEvaluate JavaScript on a page or element to extract data, modify content, or trigger actions during browser automation. Enables custom script execution in anti-bot protected pages.
Instructions
Evaluate JavaScript expression on page or element
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": {
"function": "<function>"
},
"name": "browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | ||
| target | No | ||
| element | No | ||
| filename | No | ||
| function | Yes |