Skip to main content
Glama

browser_upload_file

Select an existing local file in a browser file input; the native host validates an absolute regular-file path and rejects files over 40 MiB.

Instructions

Select an existing local file in a file input. Native host validates an absolute regular-file path and size <=40 MiB.

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": {
      "ref": "<ref>",
      "path": "<path>"
    },
    "name": "browser_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
pathYes
tabIdNoOptional browser tab id to act on instead of the focused tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses the native host validation rules (absolute regular-file path, <=40 MiB), which tells the agent what will be rejected. However, it does not say what happens on success or failure, whether it fires input/change events, whether it overwrites a previous selection, or what error an agent should expect.

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 with the action first and the validation constraints second. Every clause carries information and there is 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 3-parameter tool with no annotations and no output schema, this covers the essentials: what it does and the validation envelope that will cause failures. It falls short of fully complete because it omits outcome/error behavior and interaction with existing selections.

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 a moderate 67%: ref and tabId are documented in the schema, while path has no schema description beyond minLength. The description compensates by specifying that path must be an absolute regular-file path capped at 40 MiB, which is meaningful semantics the 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 specific verb+resource: selecting an existing local file in a file input. This is clearly separable from typing text (browser_type) or clicking (browser_click), so an agent can identify it without opening the schema. It does not explicitly name a sibling alternative, but the action is unambiguous.

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: it must be a file input, and the path must be an existing local file. There is no explicit when-to-use/when-not-to-use guidance, no statement about preconditions such as obtaining the element ref via browser_snapshot, and no note on whether multiple-file inputs are supported.

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