get_file
Retrieve complete or partial file contents from your codebase to view implementations, examine configurations, or read specific line ranges within files.
Instructions
Retrieve complete or partial contents of a file from the codebase.
Use this tool when you need to:
View the full implementation of a specific file
Examine files found via semantic_search
Read configuration, documentation, or data files
View specific line ranges within large files
For searching across multiple files, use semantic_search or get_context_for_prompt instead.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to workspace root (e.g., "src/index.ts", "package.json") | |
| start_line | No | Optional: First line to include (1-based). Omit for start of file. | |
| end_line | No | Optional: Last line to include (1-based). Omit for end of file. |