graph_list_files
List files and folders in OneDrive or SharePoint document libraries, with paging options to navigate large collections.
Instructions
List files and folders in OneDrive or a SharePoint document library.
Args: folder_id: Folder ID to list contents of. Empty for root folder. top: Maximum number of items to return (default 25). compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). drive_id: Drive ID to act on. Empty targets your own OneDrive.
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": "graph_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| skip | No | ||
| compact | No | ||
| drive_id | No | ||
| folder_id | No | ||
| next_link | No | ||
| include_next_link | No |