Skip to main content
Glama
pssrh
by pssrh

browser_upload_file

Upload files directly to any file input on the page using Chrome DevTools, bypassing the file dialog. For drag-and-drop zones without a file input, use browser_drop_file.

Instructions

Upload a file to a element on the page. Uses Chrome Debugger API to set files programmatically — no dialog needed. For drag-drop zones without visible file input use browser_drop_file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoSingle file path (alternative to files array)
filesYesArray of absolute file paths to upload. E.g. ["/Users/me/photo.jpg"]
selectorNoCSS selector for the file input (default: input[type="file"])

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.1

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are present, so the description carries the behavioral burden. It usefully discloses the main mechanism (Chrome Debugger API, no file dialog), but it does not mention side effects, whether the current input selection is replaced, event firing, or return behavior. Valuable but not comprehensive.

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?

Two tight sentences: the first states purpose and mechanism, the second routes to the sibling for the alternative case. Every sentence earns its place with no filler.

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 straightforward file-upload primitive with full schema coverage and no output schema, the description gives the essential invocation context and the relevant alternative. It could mention return values or selection-replacement behavior, but nothing required to call and distinguish the tool is missing.

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 schema already explains file, files, and selector. The tool description adds no parameter-level meaning, which is acceptable under the baseline for full schema coverage.

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?

Opens with a specific verb+resource: uploads a file to an input[type=file] element, and immediately differentiates from the drag-drop sibling. An agent can tell this from browser_drop_file without inspecting sibling schemas.

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

Usage Guidelines5/5

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

The description explicitly names browser_drop_file as the alternative and gives the condition that selects it (drag-drop zones without a visible file input). It also clarifies programmatic CDP upload, so the agent knows when this tool is intended.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pssrh/pony-browser-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server