Skip to main content
Glama
Browser MCP Server

Browser MCP Server

upload_file

Uploads one or more local files to a browser input field selected by a CSS selector, using absolute file paths for browser automation.

Instructions

Upload file(s) to input.

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>",
      "filePaths": "<filePaths>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo
selectorYes
filePathsYesAbsolute path(s) to file(s)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations supplied, the description bears the full disclosure burden and provides almost none. It does not state that this mutates page state, that it requires an active page session, whether multiple files are supported per input, or what happens if the selector is not a file input.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no filler, which is good, but the brevity comes at the cost of under-specification rather than being genuinely tight. The key object of the action ('input') remains unclear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter interaction tool with zero annotations and no output schema, the description is far too thin. It leaves the agent without enough information to target the correct element or understand the effect of the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 33%: only filePaths carries a description ('Absolute path(s) to file(s)'). The required selector and optional pageId are completely undocumented in both schema and description, and the description adds no clarification for them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

'Upload file(s) to input' names a verb and resource, but 'input' is ambiguous — it could mean a file input element, a page, or a server endpoint. It does not say that a selector locates the file input, so the agent must guess at the mechanism from the sibling list (click, fill_form, etc.).

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?

There is no guidance on when to use this versus siblings like fill_form or click_element, nor any prerequisite such as connecting to a browser or loading a page first. Only the implied action itself gives any hint of the context in which it applies.

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