Send File to Channel
send_file_to_channelUploads a local file and sends it to a Microsoft Teams channel as an attachment. Supports any file type and can reply to an existing message thread.
Instructions
Upload a local file and send it as a message to a Teams channel. Supports any file type (PDF, DOCX, ZIP, images, etc.). The file is uploaded to the channel's SharePoint folder and sent as a reference attachment. If messageId is provided, the file is sent as a reply to that message (thread).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Message format (text or markdown) | |
| teamId | Yes | Team ID | |
| message | No | Optional message text to accompany the file | |
| fileName | No | Optional custom filename (defaults to the original file name) | |
| filePath | Yes | Absolute path to the local file to upload | |
| 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 | No | Optional message ID to reply to. When provided, the file is sent as a reply in the message thread instead of a new message. | |
| importance | No | Message importance |