read_file
Read file contents from Windows paths with optional encoding and line-range selection. Provide start and end lines to target a specific section.
Instructions
Read the contents of a file with specified encoding. Supports reading specific line ranges via startLine/endLine (1-based). If not provided, reads the entire file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the file. Supports all drives. Example: D:\docs\file.txt | |
| endLine | No | Optional: End line number (1-based, inclusive). If omitted, reads to the end. | |
| encoding | No | File encoding (default: utf8). Options: utf8, utf16le, latin1, etc. | |
| startLine | No | Optional: Start line number (1-based, inclusive). If omitted, reads from the beginning. |