Read a file
herdr_file_readRead lines from a text file on a local or remote machine, starting at a chosen offset and capped by a limit, and return the content plus total line count.
Instructions
Read a text file here or on another machine: lines from offset, at most limit. Returns the text and how many lines the file has.
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": "herdr_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Another machine (see herdr_machines); default: this one. | |
| cwd | No | Working directory. Default: the core's; on another machine, its home. | |
| path | Yes | Absolute, or from cwd. | |
| limit | No | At most this many lines. | |
| offset | No | The first line to give, from 1. |