List folder
nextcloud_list_filesList files and subfolders in a specified Nextcloud folder to inspect names, types, sizes, modification dates, and favorite or shared status; sort, filter, and page results.
Instructions
List the files and subfolders of one folder (not recursive).
Returns name, type, size, last modified and flags (favorite, shared). Start at '/' to see the top level. To find something whose location you do not know, use nextcloud_search_files instead of walking folders.
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": "nextcloud_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder path, e.g. '/' or '/Documents/2026'. Default: the root. | / |
| sort | No | Sort order; 'name' lists folders first. | name |
| type | No | Only files, only folders, or both. | all |
| limit | No | Maximum entries to return (default 100). | |
| offset | No | Skip this many entries, for paging. | |
| response_format | No | 'markdown' for readable output, 'json' for structured data | markdown |