Read File
read_fileReads files by line range for text or as base64 for binary content, enabling inspection of remote files within a sandboxed filesystem.
Instructions
Read a file. Text is returned by line range; binary files can be returned as base64.
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, relative to the server root (or absolute inside it). | |
| limit | No | Max lines to return. | |
| offset | No | 1-based line to start from. | |
| as_base64 | No | Return raw bytes as base64 (for binary files: images, zips, pdf...). | |
| line_numbers | No | Prefix each line with its number (handy before edit_file). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||