read_file
Read the complete contents of a file or specific lines (first N or last N) as text using the Filesystem MCP Server.
Instructions
Read the complete contents of a file as text. DEPRECATED: Use read_text_file instead.
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 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"head": {
"description": "If provided, returns only the first N lines of the file",
"type": "number"
},
"path": {
"type": "string"
},
"tail": {
"description": "If provided, returns only the last N lines of the file",
"type": "number"
}
},
"required": [
"path"
],
"type": "object"
}