List remote files
list_filesRetrieve a directory listing of files under a configured XServer domain root via SFTP, specifying a domain, optional path, and server profile.
Instructions
List files under a configured domain root over SFTP.
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": {
"domain": "<domain>"
},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path relative to the configured domain root. | . |
| domain | Yes | Configured domain root to operate under. | |
| server_id | No | Server profile id. Defaults to config.defaultServer. |