List Directory
list-directoryList the contents of an FTP directory to see available files and subfolders. Use it to inspect remote paths 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 |