List the editable source tree for a site
list_source_filesList path, SHA-256 and size of every file in the site's editable source tree (the stored pre-build code, not the served files). Read-only. A site without a source tree returns SOURCE_NOT_STORED: write the source with write_source_files, or copy plain static served files with promote_dist_to_source.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_source_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Site name as shown by list_sites, e.g. my-portfolio. Provide name or siteId. | |
| siteId | No | Site id from list_sites or get_site. Use instead of name. | |
| autoPromote | No | Deprecated and ignored. Use promote_dist_to_source with mode 'auto'. | |
| forcePromote | No | Deprecated and ignored. Use promote_dist_to_source with mode 'force'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | Set when the deprecated autoPromote or forcePromote flag was passed. | |
| name | Yes | ||
| files | Yes | ||
| siteId | Yes | ||
| totalBytes | Yes | ||
| totalFiles | Yes |