read_file
Read file content with line numbers by providing a file path, and optionally specify start and end lines to read a section of the file.
Instructions
Read content from a file with line numbers, validating the file path first.
Args:
file_path: Path to the file to read
start_line: Line number to start reading from (0-indexed, default: 0)
end_line: Line number to end reading at (0-indexed, inclusive, default: None for all lines)
Returns:
A string with numbered lines from the file
Raises:
FileNotFoundError: If the file does not exist
ValueError: If the line parameters are invalid
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| start_line | No | ||
| end_line | No |