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.
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": {
"chatId": "<chatId>",
"filePath": "<filePath>"
},
"name": "send_file_to_chat"
}
}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 |