Read a website file
read_website_fileReturns one saved file from a website with its path, encoding and content: pages, stylesheets and scripts as utf8 text, and fonts as base64. A picture (such as a photo the person added) comes back as encoding picture with its contentType, bytes, width and height and no content; a smaller copy is attached as an image for you to look at, so you can see what it shows. It changes nothing. A path that is not saved fails with no_such_file; list_website_files shows which paths exist.
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": {
"websiteId": "<websiteId>",
"path": "<path>"
},
"name": "read_website_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file's path from the website's root, exactly as it was saved, such as index.html, about.html or images/shop.jpg. list_website_files shows every path. | |
| editKey | No | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. | |
| websiteId | Yes | The websiteId start_website returned, or one list_sites shows. |