read_file
Read file contents from the filesystem, handling large files through chunked reading with line-based pagination for efficient processing.
Instructions
Read file contents. For large files (>500 lines), use start_line to read in chunks (e.g., 0, 500, 1000). Each call returns up to 500 lines. Binary files return metadata only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path to read | |
| start_line | No | Line number to start reading from (0-indexed). For large files, read in chunks: start_line=0 (first 500), start_line=500 (next 500), etc. |
Input Schema (JSON Schema)
{
"properties": {
"path": {
"description": "File path to read",
"type": "string"
},
"start_line": {
"default": 0,
"description": "Line number to start reading from (0-indexed). For large files, read in chunks: start_line=0 (first 500), start_line=500 (next 500), etc.",
"type": "number"
}
},
"required": [
"path"
],
"type": "object"
}