Download Chat Hosted Content
download_chat_hosted_contentDownload images or other hosted content from a Microsoft Teams chat message as base64-encoded data, with optional saving to a local or UNC path.
Instructions
Download hosted content (such as images) from a chat message. Returns the content as base64 encoded data along with metadata. Use this to retrieve images or other inline content embedded in chat messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | Chat ID | |
| savePath | No | Optional file path to save the content. Supports UNC paths (e.g., \\wsl.localhost\Ubuntu\tmp\file.png). | |
| tenantId | No | Target tenant ID from list_tenants. Omit only when a default is configured or exactly one tenant is connected. Resource IDs belong to this tenant. | |
| messageId | Yes | Message ID containing the hosted content | |
| hostedContentId | No | Specific hosted content ID to download. If not provided, downloads all hosted contents from the message. |