log_info
Retrieve metadata for a log file: size, line count, and last-modified timestamp. Helps determine if a file has changed or 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`. |