list-drive-root-items
list-drive-root-itemsList files and folders in the root of a document library by drive ID. Supports filters, property selection, sorting, and pagination for efficient browsing.
Instructions
List files/folders in the root of a drive (document library).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"driveId": "<driveId>"
},
"name": "list-drive-root-items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Continuation token (nextCursor of a previous truncated response). Continues that listing; other query inputs are ignored. | |
| filter | No | OData $filter expression, e.g. "importance eq 'high'" or "hasAttachments eq true" | |
| select | No | Comma separated list of properties to return (OData $select) | |
| driveId | Yes | Value for driveId | |
| orderby | No | OData $orderby, e.g. "receivedDateTime desc" | |
| maxItems | No | Maximum items to return across pages (default 50, max 500). Pagination via @odata.nextLink is handled automatically; when the result is truncated, pass its nextCursor as cursor to continue. |