send_file
Upload a local file to OneDrive/SharePoint and post it as a Teams message attachment, or embed a supported image inline in the conversation.
Instructions
Upload a local file from the host running teams to OneDrive/SharePoint and post it as a Teams message attachment (or inline image when inline=true). Irreversible external side effect. Latency scales with file size (single upload up to 4 MiB, 3.2 MiB chunks above). Requires Files.ReadWrite and message send permissions. Returns { ok, conversation, path, inline, message }.
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": {
"target": "<target>",
"path": "<path>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Readable local file path on the host running teams mcp. | |
| inline | No | When true, embeds a supported image directly as Teams hostedContents instead of a OneDrive/SharePoint file attachment. | |
| target | Yes | Conversation conv_key (chat:... or chan:team:channel), "Team/Channel", or unique conversation title substring. | |
| caption | No | Optional Markdown caption posted alongside the file or inline image. | |
| compact | No | Return a compact receipt (default true); set false for full conversation and message objects. | |
| thread_root_id | No | Optional channel thread root post ID when attaching to an existing channel thread. |