Read File (Deprecated)
read_fileReads a file's complete text contents, optionally returning only the first or last N lines; deprecated, use read_text_file instead.
Instructions
Read the complete contents of a file as text. DEPRECATED: Use read_text_file instead.
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 |
|---|---|---|---|
| head | No | If provided, returns only the first N lines of the file | |
| path | Yes | The file to read as text. Absolute, or relative to an allowed directory; it must resolve inside the allowed directories. | |
| tail | No | If provided, returns only the last N lines of the file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |