Skip to main content
Tasks you would do in a browser yourself, written the way you would ask a colleague. Each is a working file in packages/scout/examples, and each reads its models from the environment through examples/models.ts (see models from the environment). Each file’s header gives the command that runs it from packages/scout, for example:
The first four run on a local Chromium, browser: { launch: {} }. The last runs the research task on Outcrawl’s cloud, the one line that changes.

Research

The three most-commented stories on the Hacker News front page, as structured results. research.ts

Fill in a form

Text fields, radio buttons, checkboxes and a submit, then read back what the server received. form-fill.ts

Compare

Open two books and compare price and stock in one answer. A run that moves across several pages is where a brain model helps, so this one suggests setting SCOUT_BRAIN_MODEL as well. compare.ts

Sign in

Sign in, then read the page that is only there once you are signed in. The site is a public test site whose demo credentials are printed on its own login page. For a real site, read the credentials from your environment rather than writing them into the task. login.ts

On Outcrawl’s cloud

The research task again, on Outcrawl’s cloud. One option changes, browser: 'outcrawl': same agent, same models, same result shape, plus a replay link. Set OUTCRAWL_API_KEY as well. outcrawl.ts
Want the answer in a fixed shape, such as a list of names and prices? Pass a JSON Schema with the task, as every example here does, and the answer comes back in exactly that shape. See running tasks.