Files
claudetools/mcps/filesystem/tools/read_text_file.json
Winter Williams 7729874549 sync: auto-sync from GURU-BEAST-ROG at 2026-06-10 10:09:59
Author: Mike Swanson
Machine: GURU-BEAST-ROG
Timestamp: 2026-06-10 10:09:59
2026-06-10 10:10:08 -07:00

24 lines
988 B
JSON

{
"name": "read_text_file",
"description": "Read the complete contents of a file from the file system as text. Handles various text encodings and provides detailed error messages if the file cannot be read. Use this tool when you need to examine the contents of a single file. Use the 'head' parameter to read only the first N lines of a file, or the 'tail' parameter to read only the last N lines of a file. Operates on the file as text regardless of extension. Only works within allowed directories.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"path": {
"type": "string"
},
"tail": {
"description": "If provided, returns only the last N lines of the file",
"type": "number"
},
"head": {
"description": "If provided, returns only the first N lines of the file",
"type": "number"
}
},
"required": [
"path"
]
}
}