Introduction

Browserwhale is a web agent behind a REST API. You send it a start URL and a task in plain language. It does the task in a fresh browser, the way a person would, and returns a task object: a status, structured output when it succeeded, the findings and limitations it has either way, and a plain-language log of the steps it took.

How a task runs

  1. You create a task with POST /v1/tasks (or whale.run() in the SDK). Only url and task are required. You can add an output schema for a fixed output shape, params for forms, and time and step limits. Without a schema, output's keys are chosen for the request and may vary between runs.
  2. It runs in a disposable browser. Each task gets its own fresh browser, which is discarded afterwards. Nothing carries over between tasks.
  3. You read a typed outcome. Long-poll GET /v1/tasks/:id?wait=30 until the task finishes. The status is completed, partial or failed, and every status other than completed comes with a cause. The steps log shows what was done.

What "completed" means

A wrong answer reported as a success is the worst outcome for you, so Browserwhale avoids it. A task is completed only when the full result is available and, if you sent an output schema, valid against it. When the agent finds some of what you asked for, the task is partial: what it found is in results, and what is missing is in limitations.

Next steps