Read remote file
read_fileReads UTF-8 text files from a configured domain root via SFTP, enabling secure retrieval of file contents for Xserver-hosted sites.
Instructions
Read a UTF-8 text file 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>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File 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. |