List OneDrive files
list_onedrive_filesBrowse and search OneDrive files and folders. List root, folder contents, or find items by name, with optional folder-only filtering and pagination.
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.
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_onedrive_files"
}
}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 |