Read file on webspace
webspace_read_fileRead a file inside a webspace as its site user, jailed to the home directory. Text over 256 KB is shortened, keeping the start and the end; base64 reads over that size fail. Use base64 for binary files. Config files can hold database passwords: do not repeat them unless the user asks. For a VPS use vps_read_file.
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": {
"id": "<id>",
"path": "<path>"
},
"name": "webspace_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The webspace ID | |
| path | Yes | Path relative to the webspace's home directory, or absolute under /home/<user>/. The web root is public_html. | |
| encoding | No | utf8 (default) for text, base64 for binary files |