Read a code file
read_code_fileRead a file from a project's code directory, returning its UTF-8 text content and line count. Access is restricted to the specified location.
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 |