Read File
read_fileRead a UTF-8 text file from a remote host with character-based offset/limit, returning content, size, and has_more for paging.
Instructions
Read a text file as UTF-8 (invalid bytes replaced): size, offset, content, has_more. offset/limit count characters, not bytes. Default limit 200000; files over 64 MiB are rejected.
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": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path; "~" expands to home. | |
| limit | No | Max characters (default 200000). | |
| offset | No | Start character (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | No | ||
| size | No | ||
| error | No | ||
| offset | No | ||
| content | No | ||
| has_more | No |