file_read
Read a file's contents from an OpenWrt router over SSH. Use offset and limit to read large files in chunks; returns total lines and size.
Instructions
Read the contents of a file on the OpenWrt router. For large files, use offset and limit to read in chunks. Returns file metadata (total lines and size) alongside content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file on the router | |
| limit | No | Number of lines to read from offset. Omit to read to end of file. Recommended: 200 for large files. | |
| lines | No | (Legacy) Number of lines to read from the end of file (tail). Use offset/limit instead. | |
| offset | No | 1-indexed starting line number. Omit to start from beginning. |