Toolkdeps asset
kdeps-tools-tail_file
v1.0.0Read the last N lines of a file (default 20) -- for checking the end of a log or output file without knowing its total length upfront. Use as evidence that a command's output or a log ends the way a task claims it does.
Install
A kdeps asset: kdeps installs it on first run and updates it without a new release.
kdeps update tools/tail_file
Pin a version with kdeps update tools/tail_file@<version>.
Contents
Read the last N lines of a file (default 20) -- for checking the end of a log or output file without knowing its total length upfront. Use as evidence that a command's output or a log ends the way a task claims it does.
- category
- file
- seeAlso
- read_file, md5_file, list_files
| Parameter | Type | Description |
|---|---|---|
| file_path | string | Absolute (or cwd-relative) path to the file. Omit to tail the file most recently accessed this session. |
| lines | number | Number of lines from the end to return (default 20) |
version: 1.0.0
category: file
description: Read the last N lines of a file (default 20) -- for checking the end of a log or output file without knowing its total length upfront. Use as evidence that a command's output or a log ends the way a task claims it does.
seeAlso: read_file, md5_file, list_files
parameters:
file_path:
type: string
description: Absolute (or cwd-relative) path to the file. Omit to tail the file most recently accessed this session.
lines:
type: number
description: Number of lines from the end to return (default 20)
Versions
| Version | Published | Status |
|---|---|---|
| 1.0.0 | 10/11/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 10/11/2026
Tags
kdepstool