read_log_slice
Read a specified line range from a log file to inspect output of a previously run command. Pass logPath, startLine, and lineCount; works with temp-directory logs.
Instructions
Reads a slice of a log file by the given line range. Use this tool instead of re-running the same command with a higher maxLines when you already have the log path saved from a previous run_safe_command / run_destructive_command response. NOTE: the file is read directly via Node.js (not through the shell), so it also works for logs in os.tmpdir().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logPath | Yes | Path to the log file | |
| lineCount | No | Number of lines to read (default: 100) | |
| startLine | No | Starting line (0-based, default: 0) |