Skip to main content
The SDK wraps the API v4 Reference. Create a run, wait for it to finish, then read result.
runs.create() automatically creates a session and workspace. wait_for_completion() / waitForCompletion() polls the lightweight run status endpoint, then fetches the full run result once it reaches completed, failed, or cancelled. Use the agent for:
  • Data extraction and research across many pages
  • Form filling, downloads, and multi-step workflows
  • Authenticated work with browser profiles
  • Long-running tasks that create or consume files
  • Follow-up turns that preserve the same conversation, workspace, and live browser
See Follow-up tasks, Live messages, and Workspaces & files for the main V4 patterns.