Stream and filter macOS/iOS unified logs. Workflow: (1) discover targets with `slog_list_processes` / `slog_list_simulators`; (2) for past events use `slog_show` with a time range, for live debugging use `slog_stream` with a bounded `count`. Start broad (process only), then narrow with subsystem/level/grep. Custom-subsystem debug events do not persist by default — `slog_show` cannot replay them, so reach for `slog_stream` when chasing debug-level output from your own app.
slog demonstrates solid tool design with comprehensive parameter schemas, clear descriptions, and thoughtful output structures. All 6 tools have explicit JSON schemas with typed parameters and descriptions. Tool names follow verb_noun convention (slog_show, slog_stream, slog_list_*). Descriptions are detailed (150-250 chars) and explain WHAT, WHEN, and output behavior. However, descriptions occasionally include example values (e.g., '["Finder", "Dock"]') which LLMs may reuse literally. Error handling is present but could be more prescriptive about recovery paths. No tool annotations (readOnlyHint, destructiveHint) despite all tools being read-only. Output schemas are well-documented with truncation contracts and field naming conventions (snake_case with CodingKeys). Composition is clean, each tool has one responsibility, and chaining is supported via returned IDs.
Check system requirements and diagnose issues with slog. Verifies availability of required tools (log CLI), permissions, and system configuration.
List running processes on macOS with optional filtering. Returns process names and PIDs for use with other slog tools. Results are truncated with head/tail sampling for large process lists.
List iOS Simulators available on the system with optional filtering. Returns simulator names, UDIDs, and runtime information for use with slog_stream --simulator.
Query historical logs from macOS log archive. Returns log entries from a specified time range with optional filtering by process, subsystem, category, level, and regex patterns. Results are truncated with head/tail sampling and full payload spilled to output_file as NDJSON for large result sets.
Query os_signpost interval durations (aggregated by name with per-name duration stats). Distinguishes persisted `show` queries from live `stream` captures. Returns interval occurrences, in-flight counts, and orphan end counts.
Example values in parameter descriptions may be reused literally by LLMs. E.g., slog_show 'process' param shows '["Finder", "Dock"]', LLMs often pass these exact values in real calls instead of adapting to context.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite all 6 tools being read-only. Annotations help LLMs reason about safety and retry logic.
Error responses use generic 'error' field without structured recovery guidance. E.g., errorJSON() returns {"error": "<message>", "try_doctor"?: true} but lacks actionable next steps or error classification (retryable vs user-fixable).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 65 | 2026-07-28+ | v2 |
Stream live logs from macOS or iOS Simulator with bounded capture (timeout, duration, or count). Returns entries as they arrive with stream-specific diagnostics: `stoppedBy` indicates whether result is empty due to timeout, exhaustion, or error.
slog_doctor has empty input schema (no parameters) but description is brief (58 chars). Lacks detail on what diagnostics it performs and when to call it.
Truncation behavior (head/tail sampling) is documented in response shapes but not in tool descriptions. LLMs may not understand that large result sets are truncated to output_file as NDJSON.