Batch Execution
Execute multiple commands in a single process invocation.
Pipe a JSON array of commands to agent-cu batch to avoid per-command startup overhead.
Usage
echo '[ ["snapshot", "Calculator", "-i"], ["click", "@e5"], ["click", "@e8"], ["click", "@e11"], ["click", "@e20"] ]' | agent-cu batch
Stop on Error
Use --bail to stop at the first failure:
echo '[["click","@e1"],["click","@e99"]]' | agent-cu batch --bail
Interactive Explorer
Explore the accessibility tree in a TUI:
agent-cu observe Calculator # TUI tree viewer agent-cu observe Maps -d 5 # Custom depth agent-cu observe Safari --refresh 1.0
Keys: j/k navigate, Enter expand, / search, y copy selector, q quit