read_log_slice
Read a specific line range from a saved log file to inspect output without rerunning commands. Works with local and 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) |