Skip to main content
Glama

upload

Sets files on a file input element for automated uploads. Specify target selector and file paths.

Instructions

Set files on an input[type=file] target.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYes
leaseNoOptional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env.
targetYes@eN or selector.
sessionNoOptional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 burden of disclosing behavior, but it only says 'set files' — implying action on a file input. It does not disclose whether this triggers file chooser events, whether paths or base64 are expected, whether it waits, or any side effects. There is no contradiction with annotations because none were provided.

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?

The description is a single short sentence, front-loaded with the verb and target, containing no filler word. It earns its place for the information it does provide, though it could have carried more behavioral or parameter detail without hurting conciseness.

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?

The description plus schema are sufficient to understand the basic call: set a list of file strings on a selector-targeted file input. However, there is no output schema and no annotations, leaving important practical details unseen, such as how file strings are interpreted and whether multi-file support is available. For a 4-parameter tool, this feels adequate but with a visible gap.

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 coverage is 75%, so the baseline is 3: the description mostly reinforces the schema's target and files parameters but adds little meaning. The 'files' parameter remains ambiguous in both the schema and description — it does not clarify whether strings are paths, URLs, or base64 data. Thus the description does not fill the semantic gap left by the schema.

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?

The description states a specific action (setting files) on a specific resource (an input[type=file]), which clearly differentiates it from siblings like click, fill, and type that act on other element types. It is still short of 5 because it does not explicitly name the sibling alternatives it should be chosen over.

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?

The description provides no guidance on when to use this tool, when not to, or how it relates to the file-input-related capabilities of siblings like fill or type. The usage context must be inferred from the tool name and schema, so the guidance is effectively absent.

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