task | string | Yes | What should the browser agent do |
startUrl | string | No | Initial page URL to start the agent on (reduces navigation steps) |
variables | json | No | Optional secrets injected into the task (format: {key: value}) |
allowedDomains | string | No | Comma-separated list of domains the agent is allowed to visit |
maxSteps | number | No | Maximum number of steps the agent may take (default 100, max 10000) |
flashMode | boolean | No | Enable flash mode (faster, less careful navigation) |
thinking | boolean | No | Enable extended reasoning mode |
vision | string | No | Vision capability: "true", "false", or "auto" |
systemPromptExtension | string | No | Optional text appended to the agent system prompt (max 2000 chars) |
structuredOutput | string | No | Stringified JSON schema for the structured output |
highlightElements | boolean | No | Highlight interactive elements on the page (default true) |
metadata | json | No | Custom key-value metadata (up to 10 pairs) for tracking |
model | string | No | LLM model identifier (e.g. browser-use-2.0) |
apiKey | string | Yes | API key for BrowserUse API |
profile_id | string | No | Browser profile ID for persistent sessions (cookies, login state) |