list_files
List files and folders in a OneDrive or SharePoint drive, with paging via one Graph request per 200 items or cached offline reads.
Instructions
List files and folders inside a OneDrive or SharePoint drive. One Graph request per 200 items; offline: true reads the cache.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| site | No | ||
| drive | No | ||
| limit | No | Maximum items (default 100). has_more reports whether the folder holds more. | |
| compact | No | Return the drive ID and core item fields | |
| offline | No | ||
| parent_id | No |