tail_file
Extract the last N lines from a text file on the MCP Filesystem Server, specifying path, line count, and encoding. Ideal for quickly reviewing file endings without full file access.
Instructions
Read the last N lines of a text file.
Args:
path: Path to the file
lines: Number of lines to read (default: 10)
encoding: Text encoding (default: utf-8)
ctx: MCP context
Returns:
Last N lines of the file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
encoding | No | utf-8 | |
lines | No | ||
path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"encoding": {
"default": "utf-8",
"title": "Encoding",
"type": "string"
},
"lines": {
"default": 10,
"title": "Lines",
"type": "integer"
},
"path": {
"title": "Path",
"type": "string"
}
},
"required": [
"path"
],
"title": "tail_fileArguments",
"type": "object"
}