Skip to main content
Glama

browser_file_upload

Upload files to a web page by setting them on a file input, targeting a specific input via ref or selector or defaulting to the first file input.

Instructions

Upload one or more files by setting them on a file input identified by a ref (eN) or selector (defaults to the first file input on the page).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYesAbsolute file paths to upload.
targetNoOptional file input ref (eN) or selector to set the files on.
elementNoHuman-readable element description used to obtain permission to interact with the element.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It states the mechanism (setting files on an input) but does not mention side effects such as triggering change events, requiring permission, or handling validation. For a mutation tool, this is incomplete.

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?

The description is a single, efficient sentence that front-loads the core purpose ('Upload one or more files') and then clarifies the target identification. There is no wasted wording.

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

Completeness4/5

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

For a tool with 3 parameters and no output schema, the description covers the essential action, target specification, and default behavior. It does not explain return values or error handling, but these are likely not critical for this tool type. Overall it is reasonably complete.

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 parameters are already documented. The description adds the default behavior for the target parameter (defaults to first file input), which is helpful, but it does not add substantial meaning beyond the schema – baseline 3 is appropriate.

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?

The description clearly states the action (upload files), the target (file input), and the identification method (ref or selector). It is specific enough to distinguish from siblings like browser_click or browser_fill_form, which serve different purposes.

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 description implies usage when uploading files via a file input, but it does not explicitly state when to use this tool versus alternatives, nor does it mention when not to use it (e.g., for other input types). The default behavior is noted, but there is no explicit routing guidance.

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