Skip to content

Command Reference

tauri-agent-tools provides 11 read-only commands for inspecting Tauri applications.

Command Summary

Command Bridge Required Description
screenshot Optional Capture a screenshot of a window or DOM element
dom Yes Query DOM structure or accessibility tree
eval Yes Evaluate a JavaScript expression
wait Optional Wait for a condition to be met
info No Show window geometry and display server info
list-windows No List all visible windows, marking Tauri apps
ipc-monitor Yes Monitor Tauri IPC calls in real-time
console-monitor Yes Monitor console output in real-time
storage Yes Inspect localStorage, sessionStorage, and cookies
page-state Yes Query webview page state

Categories

Visual Capture

  • screenshot — capture full windows or specific DOM elements with real screen pixels

DOM Inspection

  • dom — explore DOM tree structure, accessibility tree, computed styles
  • eval — run arbitrary JS expressions in the webview

Monitoring

State Inspection

  • storage — read localStorage, sessionStorage, and cookies
  • page-state — URL, title, viewport, scroll position, Tauri detection

Window Management

  • info — window geometry, position, display server
  • list-windows — enumerate windows with Tauri detection
  • wait — poll for windows, DOM elements, or JS conditions

Common Patterns

JSON output

All commands that produce structured output support --json:

tauri-agent-tools info --title "My App" --json
tauri-agent-tools dom --json
tauri-agent-tools storage --json

Bridge auto-discovery

Commands that need the bridge automatically discover it via token files in /tmp/. You can override with explicit flags:

tauri-agent-tools dom --port 9876 --token abc123

Duration-based monitoring

Monitor commands accept --duration to auto-stop:

tauri-agent-tools ipc-monitor --duration 5000
tauri-agent-tools console-monitor --duration 10000 --level error