Skip to main content
Glama
MCP Chrome Bridge

MCP Chrome Bridge

file_upload

Uploads a local file to a specified file input element in a Chrome tab using a CSS selector and absolute file path.

Instructions

Upload a file to a file input element (input[type=file])

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>",
      "selector": "<selector>",
      "filePath": "<filePath>"
    },
    "name": "file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesTab ID
filePathYesAbsolute path to the file to upload
selectorYesCSS selector of the input[type=file] element

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it only discloses the element-type constraint. It says nothing about whether the file must exist on disk, whether a change event is dispatched, whether the element must be visible, or what happens on failure for a tool whose whole purpose is a side-effecting mutation of page state.

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?

A single short sentence with zero filler and the key constraint (file input element) front-loaded. It is efficient, though the brevity borders on under-specification rather than disciplined conciseness.

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?

The tool is simple with only three fully documented parameters and no output schema, so the description is adequate to invoke it. However, with no annotations and no return contract, the absence of any statement about side effects, event dispatch, or error behavior leaves a real gap.

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 description coverage is 100%, so tabId, selector, and filePath are already documented, including the absolute-path requirement. The description adds no meaning beyond the schema, making the baseline 3 correct.

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 ('Upload') and a specific target resource ('a file input element (input[type=file])'), which also implicitly separates it from the generic 'form_input' sibling. It stops short of naming alternatives explicitly, so it is clear but not fully differentiated.

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?

The mention of input[type=file] implies the condition under which this tool applies versus form_input or click, but there is no explicit when-to-use or when-not statement. An agent must infer that this is the tool for file inputs and that other input types belong elsewhere.

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