sincecutoff.com
← all changes

agent-browser batch command executes commands from stdin

Introduced 2026-03-17 · score 0.98

HOW TO USE IT

When running multiple browser commands in one invocation, pass a JSON array of string arrays to `batch`. Add `--bail` to stop at the first error, and `--json` for structured output.

echo '[ ["open", "https://example.com"], ["snapshot", "-i"] ]' | agent-browser batch --bail
echo '[ ["open", "https://example.com"], ["snapshot", "-i"] ]' | agent-browser batch --json

WHY THIS HELPS

Run a sequence of browser commands in one agent-browser invocation and stop at the first failure when needed.

REQUIREMENTS AND LIMITATIONS

  • Version: v0.21.0
  • stdin JSON array (required): An array of string arrays; each inner array is a command and its arguments.
  • --bail: Stop after the first command error.
  • --json: Return results as JSON.
  • Prerequisite: Install agent-browser and download Chrome with `agent-browser install` before first use.
  • Input is a JSON array of string arrays.
  • Results are returned sequentially.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card