Skip to main content
Glama

browser_download_file

Destructive

Click an item in the tenant's hosted browser, capture the file download, and store it as a document. Supports PDF, ZIP, Office, CSV, images and other file formats. Required: steps (same safe named actions as browser_run_flow, including a goto) and download.selector for the final clickable item. Secrets are resolved from the tenant vault. Empty files, files over 25 MB, and HTML login/error pages masquerading as downloads are rejected before storage. Optional: download.wait_ms, stealth, title, entity/entity_id. Returns document_id, filename, MIME type and size; retrieve it with get_document_link.

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": {
      "steps": "<steps>",
      "download": "<download>"
    },
    "name": "browser_download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesBrowser actions as in browser_run_flow, including a goto
titleNoTitle of the stored document
entityNoRecord type to file the download against; use with entity_id
secretsNoName -> { provider, field } from the tenant vault.
stealthNoAsk the browser to reduce automation signals (does not bypass CAPTCHAs)
downloadYesDownload trigger: selector of the item to click, optional wait_ms
entity_idNoID of the record

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / download / description
      Added value: +"Download trigger: selector of the item to click, optional wait_ms"
    • addedInput schema / properties / entity / description
      Added value: +"Record type to file the download against; use with entity_id"
    • addedInput schema / properties / entity_id / description
      Added value: +"ID of the record"
    • addedInput schema / properties / stealth / description
      Added value: +"Ask the browser to reduce automation signals (does not bypass CAPTCHAs)"
    • addedInput schema / properties / steps / description
      Added value: +"Browser actions as in browser_run_flow, including a goto"
    • addedInput schema / properties / title / description
      Added value: +"Title of the stored document"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already disclose destructive, open-world, non-idempotent behavior. The description adds valuable operational detail beyond that: it rejects empty files, files over 25 MB, and HTML login/error pages before storage, and it resolves secrets from the tenant vault. It does not spell out permissions or overwrite behavior, but the added constraints are substantial.

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

Conciseness5/5

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

The description is front-loaded with the core action, then required inputs, constraints, optional fields, and return values. It is dense but every sentence carries useful information, with no wasted framing.

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

Completeness5/5

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

For a complex tool with nested parameters and no output schema, the description covers the critical constraints, secret handling, and return fields (document_id, filename, MIME type, size) plus how to retrieve the stored file. Nothing essential for correct invocation is missing.

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 the baseline is 3. The description still adds meaning by tying steps to the same safe named actions as browser_run_flow with a required goto, and by specifying that download.selector is the final clickable item that triggers the download.

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 states a specific verb and resource: click an item in the hosted browser, capture the download, and store it as a document. It distinguishes itself from browser_run_flow by requiring a download selector and from get_document_link by naming that tool for retrieval.

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

Usage Guidelines4/5

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

It clearly states the required inputs and the retrieval path via get_document_link, which gives an agent enough context to use it. It does not explicitly contrast when to use this versus browser_download_image or browser_run_flow, so the guidance is clear but not exhaustive.

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.