read_file
Extract content from a file by specifying a path, optional row range, and JSON parsing. Ideal for retrieving specific data segments or structured content in terminal operations.
Instructions
Read content from a file with optional row selection
Args:
path: Path to the file
start_row: Starting row to read from (0-based, optional)
end_row: Ending row to read to (0-based, inclusive, optional)
as_json: If True, attempt to parse file content as JSON (optional)
Returns:
File content or selected lines, optionally parsed as JSON
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_json | No | ||
| end_row | No | ||
| path | Yes | ||
| start_row | No |