execute_js
Execute JavaScript on webpages to automate tasks, interact with elements, or modify content. Provides a URL and script input for targeted browser automation.
Instructions
Execute JavaScript code on a webpage
Input Schema
Name | Required | Description | Default |
---|---|---|---|
script | Yes | The JavaScript code to execute | |
steps | No | Comma-separated actions or sentences describing steps to take after page load (e.g., "click #submit, scroll down" or "Fill the login form and submit") | |
url | Yes | The URL to navigate to |
Input Schema (JSON Schema)
{
"properties": {
"script": {
"description": "The JavaScript code to execute",
"type": "string"
},
"steps": {
"description": "Comma-separated actions or sentences describing steps to take after page load (e.g., \"click #submit, scroll down\" or \"Fill the login form and submit\")",
"type": "string"
},
"url": {
"description": "The URL to navigate to",
"type": "string"
}
},
"required": [
"url",
"script"
],
"type": "object"
}