List SharePoint Files
list_site_itemsList files and folders in a SharePoint site's document library to browse content by site, drive, folder path, or folder ID.
Instructions
List files and folders in a SharePoint site's document library
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": {
"site_id": "<site_id>"
},
"name": "list_site_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | Site ID | |
| drive_id | No | Drive ID (omit for default document library) | |
| folder_id | No | Folder ID (omit for root) | |
| folder_path | No | Folder path (e.g., 'General/Reports') |