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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | utf-8 | |
| lines | No | ||
| path | Yes |