get_site_files
Read the files of a site you already published, so you can make a targeted edit instead of rebuilding the whole site from memory. Returns a complete manifest (every file's path, size, content-type, sha256) plus the contents of the text files (HTML/CSS/JS/etc). Also returns the site's current version — pass it back to update_site_file so you don't overwrite a newer change. Pass paths to fetch only specific files; omit it to get all text files. Requires site_id + edit_token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Optional. Specific file paths to return contents for (e.g. ['index.html','style.css']). Omit to get all text files. The manifest always lists every file regardless. | |
| site_id | Yes | The site id returned at publish time. | |
| edit_token | Yes | The edit token returned at publish time. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The live URL of the site. | |
| files | Yes | Inlined contents of the requested text files (default: all text files, capped for size). | |
| site_id | Yes | The site's slug / id. | |
| version | Yes | The site's current version — pass as expected_version to update_site_file to avoid clobbering. | |
| manifest | Yes | Every file on the site (always complete, regardless of which contents were inlined). | |
| truncated | Yes | true if some requested file contents were omitted for size — request specific paths to read them. |