repo.read_file
Read repository files safely with enforced size limits and binary detection, giving AI agents controlled access to code.
Instructions
Read a file from the repository with size and binary guards
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to repo root | |
| max_bytes | No | Max bytes to read (default 1MB, cap 10MB) |