Skip to main content
Glama
1password-browser-mcp

1password-browser-mcp

Upload file

browser_upload_file

Uploads files to a file input or triggers a file chooser and supplies the selected files during browser automation.

Instructions

Set files on a file input (or click a button that opens a file chooser and feed it the files).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "paths": "<paths>"
    },
    "name": "browser_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoElement ref from browser_snapshot, e.g. "e12"
pathsYesAbsolute file paths
selectorNoPlaywright selector (CSS, text=..., role=..., xpath=...) used when no ref is given
viaChooserNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It usefully discloses the two execution modes (direct input set vs chooser interception), which is behavior beyond the schema, but says nothing about waiting for upload completion, permission prompts, navigation effects, or the return value. For an unannotated tool this leaves meaningful gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence with no filler and the primary mode front-loaded. The nested parenthetical is slightly less scannable than two short clauses would be, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four parameters, no annotations, and no output schema, the description should say more about post-upload state or errors. It covers the core invocation paths adequately but leaves the agent guessing about completion semantics and failure modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the schema already explains ref, paths, and selector. The one undocumented parameter, viaChooser, is effectively explained by the description's chooser-button clause, which adds meaning the schema does not. It does not clarify path formatting constraints beyond 'absolute', but the schema handles that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific action on a specific resource — setting files on a file input — and covers the chooser-button variant in the same sentence. It distinguishes the tool from generic interaction siblings like browser_click or browser_fill_form, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The parenthetical gives real situational guidance: use the chooser path when the target is a button that opens a file chooser rather than a bare input. That is implied usage, not explicit routing — there is no statement about when to prefer this over browser_click to trigger the chooser, or what prerequisites (e.g., a prior snapshot) apply.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.