Read File (Deprecated)
read_fileReads a file's full text content, with optional head or tail parameters to view only the first or last N lines.
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 | ||
| tail | No | If provided, returns only the last N lines of the file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |