Skip to main content
Glama

upload_file

Sets local files on a file input or triggers a file chooser in Chrome, letting MCP clients automate web form uploads.

Instructions

Upload a file through a file input, or an element that opens a file chooser.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYes
pageIdNoTargets a specific page by ID. Defaults to the selected page.
filePathsYesPaths local to the computer running Chrome.
includeSnapshotNoWhether to include a snapshot in the response. Default is false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it discloses only one nuance: the element may be a file input or a chooser trigger. It says nothing about permissions required, whether the upload is synchronous with the call, visible side effects (dialog or navigation), or whether existing input state is replaced.

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. The dual-target clarification is useful, though the description is too brief to fully earn the top mark given the tool's 4 parameters and absence of annotations.

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?

For a browser-automation tool with no annotations and no output schema, the definition is minimally adequate: it conveys the action and the target types. It omits what uid refers to, whether the call blocks until upload completes, and any return behavior, which matters when nothing else documents them.

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 75%: pageId and includeSnapshot are documented in-schema, filePaths notes that paths are local to the machine running Chrome, but uid has no description anywhere. The description adds no parameter meaning beyond the schema, so the baseline of 3 for high schema coverage applies, with uid left ambiguous.

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 (upload) and resource (file) and clarifies the two target types: a file input or an element that opens a chooser. This is enough to distinguish it from sibling actions like click or fill. It stops short of naming an alternative sibling to route against, so it is clear but not maximally differentiated.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no mention of alternatives such as click or fill for interacting with the same element. The only hint is that the target may be either a file input or a chooser-opening element, which is targeting guidance rather than usage guidance.

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