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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "file_read"
}
}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. |