The server hands every session a set of instructions written for an agent working on its own. This page is the workflow part of those instructions, so you can predict what an agent will do and check its work against it.

The six steps

  1. Check what already exists. list_available_configs with url_contains for the site, and get_public_flow for a published pipeline. Reuse beats rebuilding.
  2. Look at the page with get_html.
  3. If the data is not in the HTML, do not guess selectors and do not jump to browser mode. Call discover_api_endpoints; it reveals the JSON endpoint the page loads its data from, and calling that directly is far cheaper than rendering. Read one full body with read_captured_response so paths are written against the real shape.
  4. Extract with scrape_unblocker, mode: "http" first. Against a JSON endpoint set attribute_type to JSON and make each selector a dotted path.
  5. Check the diagnostics. Empty fields, or [] fields whose lengths disagree, mean the job is not finished, whatever the status says. Fix and re-run before moving on.
  6. Finish the job. create_template gives the config a name, add_template_url or add_template_bulk_urls extend its URL list, run_routine runs it, check_job collects the results.

As a diagram

list_available_configs(url_contains) ──found──► run_routine(routineId)
        │ nothing
        ▼
get_html(url, mode: http)
        │
        ├── data present ────► scrape_unblocker(mode: http, CSS/SCHEMA/NEXT_DATA selectors)
        │
        └── data absent ─────► discover_api_endpoints(url)
                                      │
                                      ▼
                               read_captured_response(dispatch_id, i)
                                      │
                                      ▼
                               scrape_unblocker(endpoint URL, mode: http, JSON paths)
                                      │
                                      ▼
                               diagnostics clean? ──no──► fix selectors, re-run
                                      │ yes
                                      ▼
                     create_template → add URLs → set_routine_concurrency → run_routine

Cost discipline

  • Start with http. Browser mode is slower and more expensive, and after discover_api_endpoints it is usually unnecessary.
  • Switch to browser only with evidence: a clean http attempt whose diagnostics came back empty is such evidence, and the agent can decide that itself.
  • Never pass options.capture_network just to look around. Use discover_api_endpoints for the index and read_captured_response for one body at a time.
  • Pass options.company_name so repeated work on one site stays in one folder.
  • Do not re-run scrape_unblocker with the same selectors; run the routine it created.

What the agent asks the user

Only things that are genuinely the user's to decide: what data they want and what they are willing to spend. Never something a tool can tell it. When unsure how a tool works, the agent is told to call search_docs before guessing.

Reporting

The agent is asked to say what it did, what it verified, and what it could not verify. "The prices are correct, and the undiscounted-price field is populated, but on this sample it never differed from the current price, so I have not proven it works" is a better answer than a confident table. If something no tool can do comes up, it should say so plainly.

Freshness. Prefer live pages over sitemap.xml. A sitemap is a fallback for when direct discovery is impossible or the user explicitly wants a full URL inventory.

Last updated: September 22, 2026