List the editable source tree for a site
list_source_filesReturn SHA-256 + size for every file in the site's editable source tree (the platform's copy of the pre-build code, not the served dist). Use BEFORE editing so you know which paths exist and which haven't changed since the last build. autoPromote:true will mirror the served dist into source for static-only sites whose source tree is empty (does nothing if the dist looks built).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| siteId | No | ||
| autoPromote | No | If true and the site has no source tree yet but its dist looks static, copy dist → source on the fly. Default: false. | |
| forcePromote | No | If true, mirror dist → source EVEN when dist looks built (e.g. minified Vite output). Use when the original source isn't recoverable and you're willing to edit the build artefact directly. Sets manifest.noBuild=true automatically when no package.json is in the dist, so subsequent build_and_deploy short-circuits to a direct source→dist copy. forcePromote implies autoPromote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| files | Yes | ||
| siteId | Yes | ||
| request_id | No | Server-assigned request correlation id. Quote it when contacting support. | |
| totalBytes | Yes | ||
| totalFiles | Yes | ||
| autoPromoted | No | Set to true when this call ran the auto-promote (dist → source) before listing. Lets the caller learn the source tree was just synthesised from the served dist. |