read_file_content
Read file content with line-range slicing and automatic secret redaction. Inspect, debug, or verify exact implementation logic safely without network calls.
Instructions
Reads raw source code from a single file, with optional line-range slicing and automatic security redaction for secrets and sensitive keys.
Behavior: Read-only operation. Zero file modifications and zero network calls. Automatically masks detected credentials. Returns formatted Markdown code block with line indicators.
When to use: Use this when you must inspect, debug, or verify exact line-by-line implementation logic of a specific file identified through previous outline or mapping steps.
When NOT to use: Do NOT use this for blind exploration of unfamiliar files (use read_file_outline or get_codebase_map first to conserve token budget).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | No | 1-indexed ending line number, inclusive (optional, default: end of file). | |
| rootDir | No | Base directory used to resolve relative filePath. Defaults to current working directory ("."). | |
| filePath | Yes | Relative or absolute path to the file to inspect. | |
| startLine | No | 1-indexed starting line number (optional, default: 1). Useful for viewing specific functions or ranges in large files. |