Skip to main content
Glama

upload_file

Assigns local files to a browser file input, enabling automated form uploads in Chrome when file URL access is enabled.

Instructions

Asigna archivos locales a un input file. Requiere acceso a URLs de archivo en chrome://extensions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "files": "<files>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoRef de snapshot, por ejemplo e42 o s0e17.
filesYes
tabIdNoPestaña objetivo. Por defecto la pestaña actual del agente.
selectorNoSelector CSS o text=Texto visible.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose a genuine operational prerequisite (file URL access in chrome://extensions), which is real value, but it omits what happens on failure, whether existing files are replaced, and whether change/submit events are dispatched.

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?

Two short sentences, front-loaded with purpose then constraint; nothing redundant. Very terse but no wasted wording.

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 mutation-style browser tool with no annotations and no output schema, the definition is adequate but thin: it does not explain how the files are attached, what the agent should verify afterwards, or any return/error behavior.

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?

Schema coverage is 75% with ref, tabId and selector already documented. The description adds meaning to the undocumented `files` parameter by stating they are local file paths, which the bare array-of-strings schema does not convey.

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 concrete verb+resource: assigns local files to a file input. An agent can identify the action immediately, though it never names or contrasts itself with any sibling in a large browser-automation toolset.

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?

Usage is only implied by the action itself (use it to populate a file input). The one explicit note is a prerequisite — file URL access enabled in chrome://extensions — not a when-to-use vs alternative guidance, and no exclusions are given.

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