Read a file by bytes
fs_readRead up to 2 MB of file content from a specified byte offset in text, hex, or auto mode, with length and encoding controls and a short whole-file hash.
Instructions
Read from a byte offset. mode is text, hex, or auto. At most 2 MB per call. A failed decode does not fail the call. hash is the short hash of the whole file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fs_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | mode | |
| path | No | path | |
| length | No | length | |
| offset | No | offset | |
| encoding | No | encoding | |
| max_bytes | No | max_bytes | |
| include_bom | No | include_bom |