Skip to content

Output and errors

Output is designed to be cheap for agents to read.

One short plain-text line per success, for example:

clicked @e4 "Sign in"

Add --json to any command.

{ "ok": true, "result": "..." }
{ "ok": false, "error": { "code": "E_STALE_REF", "message": "...", "hint": "Run snapshot again" } }

Every error includes a one-line hint naming the most likely fix.

Anything large is written to disk and the path is printed: screenshots, videos, PDFs, HAR files, and scrape results over the inline limit.

  • Default directory: ./.agent-browser-ff/artifacts/
  • Override with --out <file>
  • Without --out, scrape prints at most 50 items and reports how many were omitted
Flag Default Meaning
--session <name> default Target a session
--json off Machine-readable output
--timeout <ms> per command Fail with exit 3 if exceeded

See Exit and error codes for the full list.