| Don't know what's wrong | tauri-agent-tools diagnose -o ./diag | Everything-bundle; graceful on dead apps |
| App crashed at startup | tauri-agent-tools forensics --config ./src-tauri -o ./forensics | Reads app log + DiagnosticReports without needing a live process |
| App is running but bridge isn't responding | tauri-agent-tools probe | Detects whether the bridge process is up and shows token-file state |
| App is running, bridge is up, but webview looks wrong | tauri-agent-tools health --json | Returns webview_ready + sidecar liveness (richer on bridge v0.7+; degrades to a liveness ping otherwise) |
| Evidence is scattered across webview/Rust/sidecar logs | tauri-agent-tools logs --config ./src-tauri --pretty | Merges on-disk log files + the bridge ring buffer into one timestamp-ordered timeline |
| Need to watch logs live while reproducing | tauri-agent-tools logs --follow --pretty | Needs bridge; multi-consumer-safe on bridge v0.8+, drain-polling fallback otherwise |
| What did the sidecar actually spawn (MCP servers, workers)? | tauri-agent-tools process-tree --deep --json | Walks the real OS descendant tree, including unregistered grandchildren — no bridge needed |
| Need one shareable archive of everything for a bug report | tauri-agent-tools bundle --config ./src-tauri -o ./triage | Logs + deep process tree + app-paths + forensics → redacted dir + .tar.gz |
| A sidecar process is the suspect | tauri-agent-tools sidecar tap --schema ./schema.json -- <cmd> | Wrap-and-run the sidecar standalone; frame NDJSON; validate envelopes |
| Need to know exactly which files the app touches | tauri-agent-tools app-paths --config ./src-tauri --exists | Resolves Tauri 2's per-platform app_data_dir/app_log_dir/etc. + checks existence |
| Need to audit Tauri capabilities for over-broad permissions | tauri-agent-tools config inspect --config ./src-tauri (static) or tauri-agent-tools capabilities audit (live, needs bridge v0.7+) | Flags *, fs:allow-all, shell:allow-spawn, etc. |
| OS-level error visible in Console.app or journalctl | tauri-agent-tools os-logs --identifier com.example.app --level error --duration 30000 | Filters platform log stream to the Tauri bundle id |
| Inspector / webview attach | tauri-agent-tools webview attach (needs bridge v0.7+) | Returns inspector URL or platform-specific hint |
| What sidecars did this app spawn? | tauri-agent-tools process-tree --json (or --deep) | Bridge /process lists registered sidecars (v0.7+); --deep walks the OS tree with no bridge |