Read a code file
read_code_fileRead project code files as UTF-8 text, returning content and line count. Flags binary files and enforces a size limit for safe access.
Instructions
Read a file under the project's codeLocation as UTF-8 text (size-capped; binary files are flagged, not dumped). Returns content + line count. Sandboxed to codeLocation (no path escape).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to codeLocation, e.g. server/index.js. | |
| project | Yes | ||
| maxBytes | No |