run_script
Navigate to a specified URL, execute custom JavaScript in the page context, and return the result for dynamic web scraping or page interaction.
Instructions
Navigate to a URL and execute custom JavaScript, returning the result
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": {
"url": "<url>",
"script": "<script>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to navigate to | |
| script | Yes | JavaScript code to execute in the page context. Must return a value. |