Skip to main content
onedrive_list_items Lists files and sub-folders in a OneDrive folder. Pass folder_id="root" to start at the top of the drive, then drill into sub-folders by passing their id as folder_id. Use onedrive_get_file_content to download the content of a listed file.

Parameters

Returns

An object with an items array, folder_id, total_count, count, offset, has_more, and next_offset. Each item includes id, name, webUrl, size, createdDateTime, lastModifiedDateTime, file.mimeType (for files), folder.childCount (for folders), and parentReference.path.

Example use

“Show me what’s in the root of my OneDrive.”
“List the contents of folder ID 01ABC123.”