read_file
Need file content from a project? Read it with line ranges and size caps; binary files and paths outside the approved project are rejected.
Instructions
Read a file inside a project root, size-capped and line-ranged. Free local I/O — prefer over deep_explore for any file-content question. Refuses binary files and paths outside the approved project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to a project root, or absolute inside a root. | |
| limit | No | Max lines to return (default 2000). | |
| offset | No | 1-indexed first line to return (default 1). | |
| project | No | Project path the user named in chat (armed via init). Pass it explicitly on every call. If no project has been named, ask the user; never guess. | |
| max_chars | No | Hard cap on returned characters (default 20000). | |
| session_token | No | Session token returned by init (or create_project). Required for every project tool call in this chat. A new chat must be re-armed. | |
| redact_secrets | No | Redact known secret patterns (default true). |