List folder contents
list_filesBrowse files and folders in a Synology NAS directory with paging, sorting, glob pattern matching, and file-type filters to find or inspect stored content.
Instructions
List files and folders inside a NAS folder. Supports paging, sorting, glob filtering and file type filtering.
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": {
"folder_path": "<folder_path>"
},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items to return (default 200, 0 = all) | |
| offset | No | ||
| pattern | No | Glob filter on names, e.g. *.pdf. Without * or ? it matches partially. Comma separates patterns. | |
| sort_by | No | ||
| filetype | No | Only files, only folders, or both (default all) | |
| folder_path | Yes | Folder to list, starting with a shared folder, e.g. /photo/2024 | |
| sort_direction | No |