Download a picked photo or video
download_pickedRetrieve the raw bytes of a user-picked Google Photos item as base64 with its MIME type from the picker's base_url. Use this rather than passing along the URL, which needs auth and expires.
Instructions
Fetch the bytes of an item the user picked, returned as base64 with its mime type. Pass the item's base_url from list_picked_media.
Use this rather than giving a base_url to the user or to another tool: the URL needs an auth header and a size suffix, and it expires within the hour. Large files are refused; raise max_mb only when the caller genuinely needs the original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Size suffix. 'd' for the original file, or 'w2048-h2048' to cap the long edge. Defaults to 'w2048-h2048', which is plenty for viewing and far smaller than an original. | |
| 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. | |
| base_url | Yes | The `base_url` of an item from list_picked_media. |