Read the files of a website builder draft
read_website_filesUse this when someone wants their website builder draft changed, to see its files before editing them. Returns the list of files, or the complete contents of up to 10 files, at the newest checkpoint or one named. Not for the settings of the public site.
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>"
},
"name": "read_website_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Files to read, such as src/copy.js; leave out to list every file | |
| websiteId | Yes | Website id, from get_website_settings | |
| checkpoint | No | Read the files as an earlier checkpoint left them; leave out for the newest |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| paths | Yes | Every file of the website, when no paths were asked for | |
| status | Yes | ||
| websiteId | Yes | ||
| builderUrl | Yes | ||
| checkpoint | Yes | The checkpoint these files were read at; write_website_files takes it as parentCheckpoint | |
| missingPaths | Yes | ||
| skippedPaths | Yes | Files too large for this answer; read each in a call of its own | |
| newestCheckpoint | Yes |