ipc-monitor
Monitor Tauri IPC calls in real-time (read-only).
Bridge Required
This command requires an active bridge connection. The target app must use Tauri's window.__TAURI__.core.invoke API.
Usage
Options
| Option | Description | Default |
|---|---|---|
--filter <command> |
Only show specific IPC commands (supports * wildcards) |
— |
--interval <ms> |
Poll interval in milliseconds | 500 |
--duration <ms> |
Auto-stop after N milliseconds | — |
--json |
Output one JSON object per line | — |
--port <number> |
Bridge port (auto-discover if omitted) | — |
--token <string> |
Bridge token (auto-discover if omitted) | — |
Examples
Monitor all IPC calls
Monitoring IPC calls... (Ctrl+C to stop)
[12:34:56.789] 3ms get_config OK
[12:34:57.123] 15ms save_document OK
[12:34:57.456] 2ms check_updates OK
Filter by command name
Auto-stop after 10 seconds
JSON output (one object per line)
{"command":"get_config","args":{},"timestamp":1710000000000,"duration":3,"result":{"theme":"dark"}}
{"command":"save_document","args":{"id":1},"timestamp":1710000001000,"duration":15,"result":"ok"}
Fast polling
How It Works
- Monkey-patches
window.__TAURI__.core.invoketo capture calls - Logs command name, arguments, timing, and result/error
- Polls the captured log at the specified interval
- Restores the original
invokefunction on exit (Ctrl+C or--duration)
Notes
- The monkey-patch is read-only — it wraps the original function and passes through all calls and results
- If
window.__TAURI__.core.invokeis not found, the command reports an error - Cleanup happens automatically on SIGINT/SIGTERM or when
--durationexpires