list_files
Browse files and folders in Nextcloud by path, with sorting and pagination, to inspect directory contents before downloading, moving, or managing items.
Instructions
List files and folders at a path. Paths are relative to the user's files root, e.g. '/' or '/Projects'. A Files app link (…/apps/files/files/123?dir=/folder) works too.
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_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder path or Files app URL | / |
| sort | No | Sort field; '-' prefix = descending. Folders always come first | name |
| limit | No | Max items to return (default 50) | |
| offset | No | Offset for pagination |