tailFile
Retrieve the last N lines of a file to monitor logs or extract recent data efficiently. Specify the file path and number of lines for quick file analysis and debugging.
Instructions
Read the last N lines from a file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | The path to the file to tail | |
lines | Yes | Number of lines to read from the end of the file |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"filePath": {
"description": "The path to the file to tail",
"type": "string"
},
"lines": {
"description": "Number of lines to read from the end of the file",
"exclusiveMinimum": 0,
"type": "integer"
}
},
"required": [
"filePath",
"lines"
],
"type": "object"
}