Read a file
read_fileReturns a file's contents (up to 1 MB). Text is returned as UTF-8; binary files (images, etc.) as base64.
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": {
"site": "<site>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path relative to the website root (public_html), e.g. "index.html" or "css/style.css". Start with "~/" for the private account home folder. | |
| site | Yes | The website's domain, as shown by list_sites (e.g. "example.com" or "name.hostingfor.ai"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| size | Yes | ||
| content | Yes | ||
| encoding | Yes | ||
| modified | No |