Browser Use Server

execute_js

Execute JavaScript code on a webpage

Input Schema

NameRequiredDescriptionDefault
scriptYesThe JavaScript code to execute
stepsNoComma-separated actions or sentences describing steps to take after page load (e.g., "click #submit, scroll down" or "Fill the login form and submit")
urlYesThe 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" }

You must be authenticated.

Other Tools