Skip to main content
Glama

capture_downloads

Save files the page builds itself, with no browser download and no "Save as" dialog: blob and data URL links (a[download]), window.showSaveFilePicker writes, and downloads the page starts (cancelled at once, bytes fetched again with the…

Instructions

Save files the page builds itself, with no browser download and no "Save as" dialog: blob and data URL links (a[download]), window.showSaveFilePicker writes, and downloads the page starts (cancelled at once, bytes fetched again with the browser cookies). arm with save_dir, then click Export/Download, then wait: it returns the saved paths. A file with a URL: http_request save_to instead. Names are cleaned, existing files never overwritten, size capped by max_mb.

Input Schema

NameRequiredDescriptionDefault
actionYesarm before the click; wait returns what arrived and stays armed; disarm restores the page
max_mbNoarm: per-file cap in MB (default 100, max 200); a bigger file is skipped
tab_idNoTarget tab; omitted = last tab navigated in this session, else the active one
timeoutNowait: max ms for the first file
save_dirNoarm: absolute directory for the files; created if missing

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.30.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the interception trick (downloads cancelled at once, bytes re-fetched with browser cookies), filename sanitization, the never-overwrite guarantee, and the max_mb cap with skip behavior. Annotations only cover the generic safety profile (readOnly=false, idempotent=false, destructive=false), so this richer detail is real added value, and it is consistent with them.

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?

Front-loads the key distinction (no browser download, no Save-as dialog) and packs the workflow into one dense paragraph where almost every clause carries information. It is somewhat run-on across three distinct ideas, but there is little dead weight.

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 stateful three-action tool with no output schema, the description covers the lifecycle, side effects, return value ('returns the saved paths'), and the cross-tool escape hatch. Nothing an agent needs to invoke it correctly 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 per-parameter semantics are already documented; the description's contribution is tying parameters to the stateful workflow ('arm with save_dir', cap via max_mb, wait returns paths). This adds a little context on how params combine across the arm/wait/disarm cycle, but largely reinforces what the schema says.

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?

Names a specific verb+resource ('Save files the page builds itself') and enumerates exactly the mechanisms covered: blob/data URL a[download], showSaveFilePicker writes, and page-initiated downloads. This cleanly separates it from siblings like save_page, manage_downloads, and http_request, which the description explicitly routes away.

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?

Gives an explicit operational sequence ('arm with save_dir, then click Export/Download, then wait') and names the alternative for the out-of-scope case ('A file with a URL: http_request save_to instead'). Both when-to-use and when-not-to-use are stated.

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