Read File Contents
read_filesRead existing file contents so you can edit them SAFELY instead of rewriting blind (which risks breaking shared components/homepages). Loop: list_app_files → read_files → edit_files (change just the lines that must change) → publish_app; use write_files instead only when you are writing a whole new file. Use it to fix headers/footers, wrong phone numbers, broken links, dead forms. Works with a Read-only key. Returns { files: [{ path, content, type, bytes, truncated?, returned_bytes? }], missing }. Text is capped at 256 KiB per file and 1 MiB per call; truncated files are explicitly marked, and files beyond the call budget must be read separately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Project-relative paths to read, from list_app_files (e.g. ['src/components/Header.astro','src/components/Footer.astro']) | |
| app_id | Yes | The app ID | |
| context | Yes | Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| app_id | No | ||
| missing | No |