Read a live file of a site
read_site_fileReturns the current content of one file on a RunLite site's live version, checked against the sha256 it was deployed with. Text files (pages, CSS, JavaScript, JSON, SVG and the like) come back as text, up to 30,000 characters a call; a longer file is read in parts by passing the returned nextOffset as offset. Images, fonts, PDFs and media return only their size and sha256. Changes nothing.
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": {
"siteId": "<siteId>",
"path": "<path>"
},
"name": "read_site_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A live file's path, e.g. "index.html" or "css/site.css". | |
| offset | No | Character to start from, for a file read in parts. Default 0. | |
| siteId | Yes |