Read a file from the editable source tree
read_source_fileReturn the bytes of one source file (the platform's editable copy of the pre-build code), letting an AI in any future chat fetch and edit content without needing the original local files. Use list_source_files first to discover paths. For the served dist, use read_file instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| path | Yes | Site-relative path inside the source tree, e.g. 'src/App.tsx'. | |
| siteId | No | ||
| maxBytes | No | Per-file size cap. Default 1048576, hard max 5242880. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| size | Yes | ||
| siteId | Yes | ||
| content | Yes | ||
| encoding | Yes | ||
| request_id | No | Server-assigned request correlation id. Quote it when contacting support. |