Skip to main content
Glama

browser_file_upload

Upload one or more files to a file input or trigger the next file chooser in a browser session. Provide absolute paths and target the input by snapshot ref or element description.

Instructions

Upload one or more files to a file input or trigger the next file chooser.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOptional snapshot ref of an <input type='file'> or button that opens a file chooser.
pathsNoAbsolute file paths to upload. Omit to cancel/clear.
elementNoHuman-readable description of the file input/button.
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and falls well short. It does not say whether the call blocks waiting for a chooser, what happens to the page after upload (navigation, change events), whether paths must exist on the server host, or what errors look like. Only the bare action is disclosed.

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 front-loaded sentence with no filler, and the primary action comes first. It is efficient but borders on under-specified rather than merely concise.

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

Completeness2/5

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

For a tool with no annotations, no output schema, and a non-obvious two-mode behavior, one sentence is not enough. An agent cannot tell from the description whether the call waits, what state change to expect, or how failures surface, which matters for correct invocation.

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

Parameters3/5

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

Schema description coverage is 100%, so the four parameters are already documented, including 'Omit to cancel/clear' for paths and the snapshot ref semantics. The description adds little beyond restating the two modes, which is the expected baseline when the schema does the heavy lifting.

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 verb and resource ('upload one or more files to a file input') and adds a second mode ('trigger the next file chooser'), which separates it from generic siblings like browser_click or browser_fill_form. The phrase 'trigger the next file chooser' is slightly opaque about what actually happens, keeping it short of a 5.

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?

Implies two usage modes (targeting a known input via ref vs. arming the next chooser), but never states the condition that selects one over the other, nor when to prefer this over browser_fill_form or browser_click. Usage is inferable only by reading the parameter descriptions.

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