Skip to main content
Glama

browser_upload_file

Sets a local file on a browser file input matched by the selector, using the tab handle to target the correct page.

Instructions

Set files on a file input matched by selector. path is the local file. tab: the handle browser_new_tab returned ("t3"). Pass it on every call: several agents can share this server, and the tab is how each one keeps to its own page.

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

Input Schema

NameRequiredDescriptionDefault
tabNo
pathYes
selectorYes

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?

With no annotations, the description carries the full behavioral burden. It usefully discloses the multi-agent tab-isolation model, but omits what happens on selector mismatch, whether the upload fires change events or submits a form, whether multiple files are supported, and what the call returns.

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?

Three short sentences, front-loaded with the action, then parameters, then the tab rationale. The tab explanation is slightly wordy but earns its place by explaining a non-obvious multi-agent constraint.

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 simple three-parameter tool with no output schema or annotations, the description covers purpose and all parameters adequately. It leaves gaps around failure modes and post-upload behavior that an agent would want before invoking it.

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 0%, so the description must compensate, and it explains all three parameters: `selector` targets the file input, `path` is the local file, and `tab` is the handle returned by browser_new_tab with a concrete example ('t3'). It stops short of clarifying path format (absolute vs relative) or multi-file behavior.

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 names a specific verb and resource: 'Set files on a file input matched by `selector`.' This clearly separates it from text-entry siblings like browser_fill, though it never names an alternative outright.

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 implied by the resource ('a file input'), and the 'Pass it on every call' instruction for `tab` gives procedural guidance. However, there is no explicit when-not guidance (e.g., use browser_fill for text fields) or note on what to do when the selector matches no file input.

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