Skip to main content
Glama

browser_drop_file

Uploads files to web pages when normal upload fails. Finds hidden file inputs or intercepts the OS file dialog to handle sites without file inputs, like Google Ads.

Instructions

Upload a file when browser_upload_file fails. Two strategies: (1) finds a hidden in the target's subtree or up to 2 ancestor levels; (2) if there is no input at all, intercepts the NATIVE OS file-chooser - pass the selector of the button that opens the dialog, and the file is supplied programmatically without the dialog ever appearing. Strategy 2 handles sites like Google Ads that never put a file input in the DOM. Files must be regular files inside the working directory the MCP server runs in - folders, symlinks and hardlinks that point outside it are refused.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoSingle absolute file path. Alias: `file_path`.
filesNoArray of absolute file paths
selectorYesCSS selector for the drop-zone target element (e.g. ".upload-area")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.28.0
    • changedInput schema / properties / file / description
      Previous value: -"Single absolute file path"New value: +"Single absolute file path. Alias: `file_path`."
  2. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It transparently explains that strategy 2 intercepts the native OS file-chooser without showing the dialog, and it states the file constraints (regular files inside working directory, refusal of folders/symlinks/hardlinks pointing outside). It could mention failure behavior when both strategies fail, but it covers key traits well.

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 description is somewhat long but every sentence contributes value, and the structure is logical (purpose, strategy 1, strategy 2, constraints). It is front-loaded with the primary usage, and the details are organized in a readable list format.

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?

Given the absence of annotations and output schema, the description is quite complete. It covers the tool's purpose, usage, both strategies, and constraints. It omits only minor details like error handling or preconditions (e.g., active browser session), which are implied by the sibling toolset and not critical for correct invocation.

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 coverage is 100%, so baseline is 3. The description adds meaningful semantics beyond the schema by explaining the selector's dual role (drop-zone target or button opening the dialog) and by clarifying that file paths must be regular files inside the working directory. This is additional context the schema does not provide.

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

Purpose5/5

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

The description clearly states the tool's purpose: uploading a file when browser_upload_file fails. It also distinguishes it from the sibling browser_upload_file and details two distinct strategies, leaving no ambiguity about what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly specifies when to use this tool ('when browser_upload_file fails') and provides a clear decision path between the two strategies, including the condition for each. It also names the alternative tool, making usage guidance unambiguous.

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