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
- You create a task with
POST /v1/tasks(orwhale.run()in the SDK). Onlyurlandtaskare required. You can add anoutputschema for a fixed output shape,paramsfor forms, and time and step limits. Without a schema,output's keys are chosen for the request and may vary between runs. - It runs in a disposable browser. Each task gets its own fresh browser, which is discarded afterwards. Nothing carries over between tasks.
- You read a typed outcome. Long-poll
GET /v1/tasks/:id?wait=30until the task finishes. The status iscompleted,partialorfailed, and every status other thancompletedcomes with acause. Thestepslog 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
- Quickstart: run your first task with the SDK.
- REST API: endpoints, the task object, errors and limits.
- Supported tasks and limitations: what to use it for today.