Send File to Chat
send_file_to_chatUploads a local file and sends it as a message in a Microsoft Teams chat. Supports any file type by storing the file in OneDrive and attaching the reference to the chat.
Instructions
Upload a local file and send it as a message to a Teams chat. Supports any file type (PDF, DOCX, ZIP, images, etc.). The file is uploaded to OneDrive and sent as a reference attachment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | Chat ID | |
| format | No | Message format (text or markdown) | |
| 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. | |
| importance | No | Message importance |