download_message_resource
Download an image or file attached to a Feishu message. Use to store or view the attached resource, with optional local save for large payloads.
Instructions
[User Identity / Official API] Download an image or file attached to a message so the model can see / store it. v1.3.7 (C2.4) consolidates the v1.3.6 download_image (mode 1) + download_file. UAT-first, falls back to app.
For images, the response includes an inline image content block so the model sees pixels. For files, the response includes the bytes as base64 (truncated for display) plus an optional save_path write.
Size cap: payloads > 2 MiB MUST pass save_path. The Anthropic API rejects responses > 5 MB; we cap at 2 MiB so multipart wrapping has headroom.
merge_forward children: Feishu keys media by the parent merge_forward id, not the child id. Use the child's parentMessageId field (returned by read_messages with expand_merge_forward) — not the child id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | Message ID (om_xxx). For merge_forward children, use the child's `parentMessageId`. | |
| key | Yes | image_key (img_xxx) for kind=image, file_key for kind=file. From read_messages content. | |
| kind | Yes | image or file | |
| save_path | No | Absolute local path. Required when downloaded bytes > 2 MiB (else the response would exceed the Anthropic API 5 MB inline limit). |