Download a media item
download_media_itemRetrieve a media item's bytes as base64 with MIME type. Uses only the item's ID and resolves the current base_url, preventing stale-link errors.
Instructions
Fetch the bytes of a media item this app uploaded, returned as base64 with its mime type. Resolves the item's current base_url first, so it works with a plain id and never with a stale URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Size suffix: 'd' for the original, or 'w2048-h2048' to cap the long edge. Default 'w2048-h2048'. | |
| max_mb | No | Refuse anything larger, in MB. Default 25. | |
| account | No | Which connected Google account to act as, by the name it was configured under (or its email). Defaults to the first one. Call list_accounts to see them. | |
| media_item_id | Yes | The media item to download. |