Download Media
download_mediaDownload attachments needed for a task from authenticated pages using saved browser cookies, returning local paths, sizes, and per-file errors; run after auth_fetch.
Instructions
Download only attachments needed for the user's task using saved browser cookies. Returns local paths, sizes, and per-file errors. Check downloaded before reporting success. Cookies may not cover sites that require JavaScript-generated authorization headers. Use include_preview to return small PNG/JPEG/WebP images directly to the AI; larger files need a local file viewer. Run after auth_fetch finishes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | One or more URLs to download | |
| output_dir | No | Optional directory to save files to. Defaults to ~/.auth-fetch-mcp/downloads/<timestamp>/ | |
| include_preview | No | Include small PNG/JPEG/WebP images as MCP image content, within a shared 1 MiB preview budget. Local paths are always returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| total | Yes | ||
| status | Yes | ||
| directory | Yes | ||
| downloaded | Yes |