{
  "slug": "browse-upload-sends-files-to-file-input-elements-528f584bdd0c",
  "title": "browse upload sends files to file input elements",
  "tools": [
    "browse"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-27T22:18:56.744Z",
  "announced_at": "2026-04-27T22:18:56.744Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When the target is an `<input type=\"file\">`, run `browse upload` with its selector and one or more file paths. It supports local and remote Browserbase sessions.",
    "examples": [
      "browse upload \"#fileUpload\" ./document.pdf",
      "browse upload \"#files\" ./a.png ./b.png"
    ],
    "gotchas": [
      "Version: @browserbasehq/browse-cli@0.6.0",
      "<selector> (required): Selects the `<input type=\"file\">` element; may be a selector or a ref from `browse snapshot`.",
      "<files...> (required): One or more file paths to upload.",
      "Prerequisite: An active browser session with the target file input. Local mode is the default when `BROWSERBASE_API_KEY` is unset; remote mode uses Browserbase when it is set.",
      "Prerequisite: Remote mode requires `BROWSERBASE_API_KEY`.",
      "Works with local and remote Browserbase sessions."
    ]
  },
  "why_it_matters": "Upload one or more files to a file input in a local or remote Browserbase session.",
  "sources": [
    "https://github.com/browserbase/stagehand/blob/@browserbasehq/browse-cli@0.6.0/packages/cli/CHANGELOG.md#060",
    "https://github.com/browserbase/skills/blob/main/skills/browser/REFERENCE.md"
  ],
  "rank": 0.98025,
  "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": "browsecli-20261017",
    "verdict_id": "browsecli-20261017:browsecli-20261017-3c4979b768b6c71b-2:gate",
    "evidence_hash": "c479979dfb87ba277fb2bdc21313c79b71cc02c576bb24a56469a528897fac4e"
  },
  "review": {
    "draft_hash": "bf9740248f0634fa4e0a56ac3136532279bb50e8e26326fda392d0fe1b15bf8d",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "browsecli-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.82 (>= 0.6 needed)."
  }
}
