run_session
Create a new browser agent session and run a task. This uses the v3 sandbox-based agent that supports long-running sessions, workspaces, and keep-alive. After creating a session, call get_session to poll for status and output. For tasks requiring authentication, use list_browser_profiles first to get a profile_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Detailed instructions for what you want the browser agent to do. | |
| model | No | Agent model to use. When omitted, an account-appropriate default is selected. Available: gemini-3-flash, claude-sonnet-5, claude-opus-4.6, claude-opus-4.7, claude-opus-4.8, gpt-5.4-mini, glm-5.2, minimax-m3, grok-4.6, glm-5.3-flash, deepseek-v4-flash-vision. | |
| keep_alive | No | If true, the session stays idle after the task finishes, ready for follow-up tasks via send_task. Default is false (session auto-stops). | |
| profile_id | No | UUID of the cloud profile to use for authenticated tasks. Get this from list_browser_profiles. | |
| workspace_id | No | UUID of the workspace for file persistence across sessions. | |
| output_schema | No | JSON schema for structured output. The agent will return data matching this schema. | |
| proxy_country | No | ISO 3166-1 alpha-2 country code for the proxy location (e.g. "us", "gb", "de", "jp", "br"). Defaults to "us" if not specified. Set to null to disable the proxy. | us |