Download Message Hosted Content
download_message_hosted_contentDownload hosted content, like images, from a Teams message to obtain base64 data and metadata for processing or saving.
Instructions
Download hosted content (such as images) from a Teams channel message. Returns the content as base64 encoded data along with metadata. Use this to retrieve images or other inline content embedded in messages.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"teamId": "<teamId>",
"channelId": "<channelId>",
"messageId": "<messageId>"
},
"name": "download_message_hosted_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | Yes | Team ID | |
| replyId | No | Reply ID if downloading hosted content from a reply to a message (optional) | |
| 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. | |
| channelId | Yes | Channel ID | |
| 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. |