teams_send_file
Upload a local file to Microsoft Teams chat or channel and post it as a file card, using OneDrive links for chats or the channel Files folder for channels.
Instructions
Upload a local file (any type, any size) and post it into a chat or channel as a file card. Personal: your OneDrive, with an "anyone with the link can view" link; work chats: your OneDrive, view link for the chat members (organisation link as fallback); work channels: the channel's Files folder.
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": {
"conversation_id": "<conversation_id>",
"path": "<path>"
},
"name": "teams_send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| account | No | Account alias (see teams_accounts). Defaults to the default account. | |
| message | No | ||
| conversation_id | Yes |