Skip to main content
Glama
yogesh-joshi-0333

browser-control-mcp-server

Browser File Upload

browser_file_upload

Upload one or more local files to a file input element using its CSS selector and absolute file paths; supports single and multiple inputs.

Instructions

Upload one or more files to a file input element. Provide the CSS selector of the element and an array of absolute file paths to upload. Works with single and multiple file inputs. Examples: browser_file_upload({selector: "input[type=file]", paths: ["/home/user/document.pdf"]}) or multiple files: browser_file_upload({selector: "#photos", paths: ["/tmp/img1.png", "/tmp/img2.png"]})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoForce a specific mode.
pathsYesArray of absolute file paths to upload.
selectorYesCSS selector of the <input type="file"> element.
sessionIdNoPuppeteer session ID. Skips mode selection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states the mechanics but omits all behavioral traits: whether a change event is dispatched, whether existing selected files are replaced or appended, what happens if the selector matches nothing, and any session/mode implications. For a state-mutating browser tool this is a significant gap.

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?

The core sentence is front-loaded and the examples illustrate the single-file and multi-file cases. The second example is somewhat redundant with the first, but nothing is wasted and the structure is easy to scan.

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 moderately simple mutation tool this covers what it does and how to call it, but with no output schema and no annotations the agent still lacks information about return value or failure behavior. It is minimally complete rather than thorough.

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 100%, so the baseline is 3, but the description goes slightly further by showing concrete call syntax with a realistic selector and path values, which concretizes the expected formats for selector and paths. It says nothing about the optional mode/sessionId params, keeping it from a 5.

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 gives a specific verb and resource ('Upload one or more files to a file input element') and clarifies scope with 'works with single and multiple file inputs'. It is immediately distinguishable from text-oriented siblings like browser_type and browser_form_fill by virtue of targeting an <input type="file">, though it never names an alternative explicitly.

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 purpose, and the examples clarify the calling pattern, but there is no explicit when-to-use/when-not-to-use guidance and no pointer to an alternative tool (e.g., browser_form_fill) for related cases. Adequate but leaves routing to inference.

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