evaluate_in_page
Execute JavaScript code directly in the browser page to manipulate elements, extract data, and validate application behavior.
Instructions
Execute JavaScript code in the browser page context
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": {
"code": "<code>"
},
"name": "evaluate_in_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript code to execute in the page |