log_info
Retrieve a log file's size, line count, and last-modified timestamp to check if it changed recently or to plan how many lines to read.
Instructions
Return metadata for a single log file: size, line count, and last-modified timestamp.
When to use
Use to check whether a log file has changed recently, or to determine its total size and line count before deciding how many lines to read with read_log.
Parameters
path
Absolute path to the log file. Obtain valid paths from list_logs.
Response
path— file pathsize_bytes— file size in bytesline_count— total number of lines in the filelast_modified— last-modified timestamp (RFC3339)readable— whether the file is accessible by the server process
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the log file. Obtain valid paths from `list_logs`. |