{
  "slug": "agent-browser-batch-accepts-inline-command-arguments-68a817cd442a",
  "title": "agent-browser batch accepts inline command arguments",
  "tools": [
    "agent-browser"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-06T15:27:59.000Z",
  "announced_at": "2026-04-06T15:27:59.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When running multiple browser commands in one invocation, pass each command as a quoted argument to `agent-browser batch`. Add `--bail` to stop on the first error; stdin JSON is also supported.",
    "examples": [
      "agent-browser batch \"open https://example.com\" \"snapshot -i\" \"screenshot\"",
      "agent-browser batch --bail \"open https://example.com\" \"click @e1\" \"screenshot\"",
      "echo '[ [\"open\", \"https://example.com\"], [\"snapshot\", \"-i\"], [\"click\", \"@e1\"], [\"screenshot\", \"result.png\"] ]' | agent-browser batch --json"
    ],
    "gotchas": [
      "Version: v0.25.0",
      "batch commands (required): Quoted arguments; each is a full command. Alternatively, pipe JSON via stdin.",
      "--bail: Stop on the first error; default is to continue all commands.",
      "--json: For stdin JSON mode, request results as a JSON array.",
      "Prerequisite: Install agent-browser and run `agent-browser install` to download Chrome from Chrome for Testing (first time only).",
      "The command supports quoted arguments or JSON via stdin.",
      "`--bail` stops on the first error."
    ]
  },
  "why_it_matters": "When running several browser commands as one invocation in a repository workflow, pass each command as a quoted argument to `batch`.",
  "before": "Before inline argument mode, batch read a JSON array of command arrays from stdin; use `--json` for structured output.",
  "sources": [
    "https://github.com/vercel-labs/agent-browser/releases/tag/v0.25.0",
    "https://github.com/vercel-labs/agent-browser/blob/v0.25.0/README.md"
  ],
  "rank": 0.94035,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-1fa6494be6e9a0ee-3:gate",
    "evidence_hash": "1401b601ae60e8ad06180e7f5b08cb910a70a5f2b0a577511cadaa5e9660d99d"
  },
  "review": {
    "draft_hash": "ab3a6e05b9bcd24e9cc8b8c01c3ede4711d046a3e6ab787c7a2f42c8d587896e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
