Read site file
read_site_fileReturns the text of one file in a customer's SHARED hosting site's web root (HTML, CSS, JS, JSON, text…), up to 512 KB. ALWAYS read a file before changing it with write_site_files, and change only what the customer asked for. Binary files (images, fonts) are described, not returned. Read-only.
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_site_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the web root, e.g. "index.html" or "about/index.html". | |
| domain | Yes | The hosted site's domain. |