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 --bailecho '[ ["open", "https://example.com"], ["snapshot", "-i"] ]' | agent-browser batch --jsonWHY 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
- https://github.com/vercel-labs/agent-browser/releases/tag/v0.21.0
- https://github.com/vercel-labs/agent-browser/blob/v0.21.0/README.md
- https://github.com/vercel-labs/agent-browser/blob/v0.21.0/cli/src/main.rs
Check the installed version and the source before using it. Entry JSON