list_files
List files and folders at a specified path on a Synology NAS with optional filtering, sorting, and pagination.
Instructions
List files and folders at a given path.
Args: path: Full path e.g. /home or /docker/app limit: Max items to return (default 100) offset: Pagination offset sort_by: name | size | user | group | mtime | atime | crtime | posix sort_direction: asc | desc pattern: Optional filename filter (supports wildcards, e.g. *.pdf)
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": {
"path": "<path>"
},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| offset | No | ||
| pattern | No | ||
| sort_by | No | name | |
| sort_direction | No | asc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |