read(filePath: string, offset: number, limit: number): Promise<string>| Name | Type | Description |
|---|---|---|
filePath* | string | Absolute file path |
offset | number | Line offset to start reading from (0-indexed) |
limit | number | Maximum number of lines to read |
Read file content with line numbers.
Uses pure POSIX shell (awk) via execute() — only the requested slice is returned over the wire, making this efficient for large files. Works on any Linux including Alpine (no Python or Node.js needed).