List OneDrive files
list_onedrive_filesList OneDrive files and folders by root, folder ID, or name search. Filter to folders only and paginate results with a page token.
Instructions
List files & folders in the user’s OneDrive — the root by default, a folder’s contents (folderId), or a name search (query). onlyFolders:true lists folders only. Paginate with pageToken (the cursor from a previous call). Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | search — only items whose name matches this | |
| folderId | No | list the contents of this folder id | |
| pageSize | No | rows per page (1–200, default 50) | |
| pageToken | No | cursor from a previous call | |
| onlyFolders | No | list folders only |