List OneDrive folder contents
files_list_childrenList the immediate children of any OneDrive folder using its item ID or path. Returns file details like name, size, type, and modified time, with pagination for large folders.
Instructions
Lists the direct children of a folder in the signed-in user's OneDrive, returning id, name, kind (file or folder), size, mime type, child count, last-modified time and webUrl per entry, plus count and nextLink when more pages exist. Address the folder by itemId or by path; omit both for the drive root. Page size defaults to 50. This is not recursive: use files_search to look through the whole drive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of children to return in this page. Defaults to 50. | |
| path | No | Path of the folder to list, e.g. "Documents/Reports". Path from the OneDrive root, e.g. "Documents/Reports/q3.docx". Leading slashes are ignored. Mutually exclusive with itemId. Omit both to list the drive root. | |
| itemId | No | Id of the folder to list. Drive item id, as returned by any files_* listing tool. Mutually exclusive with path. Omit both to list the drive root. | |
| orderby | No | Sort order for the children. Graph defaults to name ascending. OneDrive for Business (SharePoint-backed) drives silently ignore some sorts, notably by size. |