Skip to main content
Glama

browser_upload_file

Upload local files to a file input element in the browser using a CSS selector, simulating the user file pick dialog.

Instructions

Put local files into an selected by CSS selector, as if the user picked them in the file dialog (fires change). Mutating. files are absolute paths on the user's machine; the input must already exist in the DOM.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesabsolute file paths on the user's machine
tabIdYestab id from browser_tabs_list or browser_tab_create
selectorYesCSS selector of the <input type="file">
Behavior4/5

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

With no annotations provided, the description carries full burden. It notes the tool is mutating, triggers a change event, and requires the input to already exist. This is sufficient for basic transparency.

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 sentences, front-loaded with the primary action, and every sentence adds value. No unnecessary words.

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?

Given no output schema or annotations, the description covers the essential behavior, parameters, and preconditions. It does not describe return values or failure modes, but the tool is simple enough that this is acceptable.

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?

All 3 parameters have schema descriptions (100% coverage). The description adds context beyond schema, e.g., clarifying that files are absolute paths and that the selector targets an input of type file.

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?

Description clearly states the tool uploads local files into a file input via CSS selector, mimicking user behavior. It uses a specific verb and resource, and uniquely distinguishes from siblings like browser_click or browser_find.

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?

Description explains key usage constraints (absolute paths, input must exist, fires change) but does not explicitly state when to use this over alternatives or mention when not to use it.

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

Install Server

Other Tools

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/dashi96/chromium-bridge'

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