graph_get_channel_files_folder
Retrieves the SharePoint folder that stores a Teams channel's files and returns the folder ID and drive ID needed by OneDrive file tools.
Instructions
Get the SharePoint folder that stores a channel's files.
This is the bridge from a channel to its SharePoint folder. Pass the returned folder ID together with its 'parentReference.driveId' as drive_id to the OneDrive file tools, which need both to reach a drive other than your own. Needs the Files.Read.All permission.
Args: team_id: The team ID (from graph_list_teams). channel_id: The channel ID (from graph_list_channels). include_children: Whether to also list the folder contents (default false). When true the result is {"folder": ..., "children": [...]}. top: Maximum number of children to return (default 50, maximum 50).
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": {
"team_id": "<team_id>",
"channel_id": "<channel_id>"
},
"name": "graph_get_channel_files_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| team_id | Yes | ||
| channel_id | Yes | ||
| include_children | No |