Skip to main content
Glama

browser_upload_click

Clicks a file button at given CSS coordinates and hands files to Chrome's file chooser, enabling uploads when DOM selectors aren't available.

Instructions

Presses the file button at CSS coordinates from a recent screenshot and hands files to the Chrome file chooser. Available in normal without DOM selectors. Replaces the previous selection; may start the upload; does not press an additional publish button. If it fails, check the page before repeating the click.

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": {
      "tabId": "<tabId>",
      "x": "<x>",
      "y": "<y>",
      "files": "<files>"
    },
    "name": "browser_upload_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
filesYes
tabIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.4

TDQS

B3.4/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 burden and does a fair job: it discloses that the previous selection is replaced, that the click may itself start the upload, and that no publish step follows. It omits what happens on partial success, what the call returns or errors with, and any permission/mode constraints, so meaningful behavioral gaps remain.

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?

Four short sentences, action first, side-effects and retry caution after. No filler. The phrase 'Available in normal without DOM selectors' is compressed to the point of ambiguity, which is the only real structural weakness.

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 four-required-parameter, no-annotation, no-output-schema mutation-adjacent tool, the definition covers the core behavior and side effects but leaves tabId, file path format, and return/error shape for the agent to infer. The retry advice ('check the page before repeating the click') is a helpful touch that partially offsets these gaps.

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 0% across four required parameters, so the description must compensate. It clarifies that x/y are CSS coordinates derived from a screenshot and that files are handed to the Chrome file chooser, but it never explains tabId, nor whether files must be absolute paths (the schema only says string, length 1-4096, max 10).

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 concrete verb and mechanism: it presses a file button at CSS coordinates taken from a recent screenshot and hands files to the Chrome file chooser. That is specific enough to separate it from a plain click or a DOM-based upload, though it never names the sibling (browser_upload / browser_file_inputs) it is implicitly contrasted with.

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 rather than stated: 'Available in normal without DOM selectors' tells the agent this is the coordinate-based path when selectors are unavailable, and 'does not press an additional publish button' pre-empts a follow-up step. There is no explicit when-to-use versus a named alternative, and no prerequisites such as requiring a prior screenshot call are spelled out beyond 'from a recent screenshot'.

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