download_file
Download a Teams conversation file to a local path by passing its SharePoint or OneDrive file reference from list_messages.
Instructions
Download a file from a conversation to a local path
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": {
"fileReference": "<fileReference>",
"outPath": "<outPath>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outPath | Yes | Local output path | |
| fileReference | Yes | fileReference (SharePoint/OneDrive URL) from list_messages files[] |