Skip to main content
Glama

page_upload

Attach local files to any file input using a snapshot reference or CSS selector. Set absolute paths directly on the element and receive the network, console, and URL changes caused by the upload.

Instructions

Attach file(s) to a file (by ref from page_snapshot, or CSS selector) — the equivalent of choosing files in the OS picker, but set directly on the element. Give ABSOLUTE paths readable by this process. Reports the network/console/url delta any resulting upload caused.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNo
filesYesabsolute path(s) to the file(s) to attach
waitMsNosettle time after attaching before reporting the delta (default 700ms)
selectorNo
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure — and it largely delivers: it discloses the mechanism (set directly on the element, bypassing the OS picker), the input constraint (absolute paths readable by this process), and the post-action behavior (reports network/console/url delta). It does not cover failure modes (e.g., unmatched selector or non-file input), which keeps it below 5.

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?

Three sentences, each earning its place: the core operation is front-loaded, the path constraint is stated baldly, and the return behavior is captured. No fluff and no restatement of schema content.

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 5-parameter tool with no annotations and no output schema, the description covers the essentials an agent needs: what the tool does, how to target the element, the path requirement, and what the call returns. Remaining gaps are sessionId semantics and error behavior, which are secondary for correct invocation.

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 description coverage is only 40%, and the description compensates for the two most ambiguous parameters: 'by ref from page_snapshot, or CSS selector' explains ref and selector, which have no schema descriptions, and it reinforces the files absolute-path requirement with 'readable by this process.' waitMs is already covered by the schema; only sessionId remains undocumented in both.

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?

The description opens with a specific verb and resource ('Attach file(s) to a file <input>') and adds the OS-picker analogy, making the operation unmistakable. This tool's upload/attach function is unique among the sibling set — no other page_* or net_* tool covers file attachment — so there is no ambiguity about when it applies.

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?

The OS-picker equivalence ('the equivalent of choosing files in the OS picker') is clear context for when to use this tool, and the targeting options ('by ref from page_snapshot, or CSS selector') guide how to invoke it. However, the description names no alternatives or when-not-to-use conditions, which keeps it from a 5.

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