file_read
Read text file contents safely with size and line limits to access file data securely within Claude Desktop.
Instructions
Read text file contents safely (max 100KB). Use maxLines to limit output.
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": "file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path to read | |
| encoding | No | Encoding (default: utf-8) | |
| maxLines | No | Max lines to read |