upload_file
Send a local file to a Teams chat by uploading it to the chat's OneDrive folder, sharing read access with members, and posting it as a message; use conversationId '48:notes' for yourself.
Instructions
Send a local file to a chat: uploads it to your OneDrive Teams chat files folder, gives the chat members read access and posts it as a message (like Teams does). Use conversationId '48:notes' to send to yourself.
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": {
"conversationId": "<conversationId>",
"path": "<path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name in Teams (defaults to the local file name) | |
| path | Yes | Local file path to upload | |
| text | No | Optional message text shown with the file | |
| conversationId | Yes | Chat conversation ID from list_chats |