List Directory
list-directoryRetrieve files and subdirectories from a specified FTP server path to inspect available remote contents before downloading, uploading, or managing files.
Instructions
List contents of an FTP directory
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": {
"remotePath": "<remotePath>"
},
"name": "list-directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remotePath | Yes | Path of the directory on the FTP server |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| entries | Yes | ||
| fileCount | Yes | ||
| totalCount | Yes | ||
| directoryCount | Yes |