get_file_content
Read file contents with language detection, line numbers, and metadata. Supports specifying line ranges for precise extraction.
Instructions
Read a file's contents with language detection, line numbers, and metadata. Supports reading specific line ranges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file to read | |
| startLine | No | First line to return (1-based, default: 1) | |
| endLine | No | Last line to return (inclusive, default: end of file) | |
| projectRoot | No | Project root for computing relative path |