Skip to main content
Glama

Browser Upload

browser_upload
Destructive

Use this to attach a user-authorized local file to an inspected Chromium file-input element. Check the exact file path, site origin and target input first; the page may receive the file contents.

Input Schema

NameRequiredDescriptionDefault
pathNoPermitted local filesystem path.
pathsNoList of permitted local filesystem paths.
titleNoChoose a page whose title contains this text.
deviceYesReMCP device id returned by list_devices. Required for every device operation.
endpointNoLoopback Chrome DevTools endpoint. Defaults to REMCP_CDP_URL or http://127.0.0.1:9222.
selectorYesCSS selector for the target element; prefer the reusable selector returned by browser_find.
target_idNoPage target id returned by browser_tabs.
timeout_msNoTimeout in milliseconds.
url_containsNoChoose a page whose URL contains this text.

Output Schema

NameRequiredDescriptionDefault
dataNoBrowser element action structured result for browser_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.
textYesConcise human-readable result of the tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the definition's added value is the disclosure that "the page may receive the file contents" — an exfiltration/data-flow warning an agent would not infer from the flags alone — plus the instruction to verify path and origin beforehand. It stops short of stating reversibility or permission requirements.

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?

Two sentences, with the action front-loaded before the safety caveat, and no filler. The second sentence is dense but each clause (path, origin, target input, page receives contents) carries distinct information.

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

Completeness4/5

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

With 9 parameters but full schema coverage and an output schema present, the description need not explain fields or returns. It covers the two things structured data cannot: the risky side effect on the remote page and the need to verify target/origin first. Minor gap on how failures or timeout behavior surface.

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 device, selector, path, paths, target_id and timeouts are already documented in the schema. The description refers to the file path and target input generically and adds no format, mutual-exclusivity (path vs paths), or selector-selection detail beyond structured data.

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 and resource: attaching a user-authorized local file to a Chromium file-input element. That distinguishes it from browser_type/browser_fill_form, which set values rather than transfer local file contents, though it does not name those siblings 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?

"Check the exact file path, site origin and target input first" and "an inspected ... element" imply the precondition of inspecting the page via browser_find/browser_tabs before calling, which the schema reinforces. However, there is no explicit when-not guidance or direct routing to an alternative tool for non-file-input cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources