Skip to main content
Glama

Upload

browser_upload

Attaches files from this machine to a page's file input, using the input, its label, or its chooser button, and reports the attachments and on-screen changes.

Instructions

Attaches files from this machine to a file input by ref: the input, its label, or the button that opens its file chooser. Use it instead of clicking a file input. Paths are absolute or ~/, inside the server's home; credential, key, history and browser-profile files are refused. Reports each file attached and the changes on screen.

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": {
      "ref": "<ref>",
      "files": "<files>"
    },
    "name": "browser_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesRef of the file input, its label, or the button that opens its file chooser (e12, f2e7 …), as browser_snapshot or browser_find showed it.
filesYesThe files to attach, as paths on this machine inside the server's home: absolute, or starting with ~/.
profileNoWhich browser profile (a separate signed-in session) to use. Leave it out for the default one; name another only when the user's task names it. Profiles: default.default

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • addedInput schema / properties / profile
      Added value: +{
      +  "default": "default",
      +  "description": "Which browser profile (a separate signed-in session) to use. Leave it out for the default one; name another only when the user's task names it. Profiles: default.",
      +  "type": "string"
      +}
  2. Addedv1.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and openWorldHint=true; the description goes well beyond by disclosing the filesystem sandbox (server home only), a security refusal list, and the response contents (files attached plus screen changes). These are exactly the operational and safety facts an agent needs before calling a mutating tool.

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

Conciseness5/5

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

Three sentences, each carrying distinct load: what it does, how it is addressed and why not click, then constraints and output. Nothing is repeated from the schema verbatim and the most important information leads.

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

Completeness5/5

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

There is no output schema, and the description nonetheless summarizes the return (per-file attachment results plus on-screen changes). For a three-parameter mutation tool with a sandboxed filesystem, the description covers purpose, input addressing, safety constraints, and outcome.

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?

The schema already documents all three parameters at 100% coverage, but the description adds meaning the schema does not convey: paths must be absolute or ~/-prefixed inside the server's home, and credential, key, history and browser-profile files are refused. That refusal policy materially changes which files an agent may legally pass.

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

Purpose5/5

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

States a specific verb and resource (attaches files to a file input) plus the addressing scheme (ref may be the input, its label, or the chooser-opening button). It also explicitly distinguishes itself from the obvious sibling behavior, telling the agent to use this instead of clicking a file input, so it is unambiguous against browser_click.

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

Usage Guidelines4/5

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

Gives a clear selecting condition — use this rather than clicking a file input — which is exactly the decision an agent faces here. It does not name a sibling tool or describe when not to use it (e.g., when no file input is present), so a small gap remains.

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