Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/cesarandreslopez/tauri-agent-tools/waitgit clone --depth 1 https://github.com/cesarandreslopez/tauri-agent-toolsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/cesarandreslopez/tauri-agent-tools/wait)<a href="https://agentmods.dev/commands/cesarandreslopez/tauri-agent-tools/wait"><img src="https://agentmods.dev/badge/commands/cesarandreslopez/tauri-agent-tools/wait.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00472 |
| Opus 5 | $0.00000 | $0.00236 |
| Sonnet 5 | $0.00000 | $0.00094 |
| Haiku 4.5 | $0.00000 | $0.00047 |
Grade A, and why
wait scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
wait
Wait for a condition to be met.
!!! info "Bridge"
Bridge required for --selector and --eval. The --title mode works without a bridge.
Usage
tauri-agent-tools wait [options]
Options
| Option | Description | Default |
|---|---|---|
-s, --selector <css> |
Wait for CSS selector to match an element | — |
-e, --eval <js> |
Wait for JS expression to be truthy | — |
-t, --title <regex> |
Wait for window with title (no bridge needed) | — |
--timeout <ms> |
Maximum wait time in milliseconds | 10000 |
--interval <ms> |
Polling interval in milliseconds | 500 |
--port <number> |
Bridge port (auto-discover if omitted) | — |
--token <string> |
Bridge token (auto-discover if omitted) | — |
One of --selector, --eval, or --title is required.
Examples
Wait for a DOM element
tauri-agent-tools wait --selector ".toast-message" --timeout 5000
found
Wait for a window to appear
tauri-agent-tools wait --title "My App" --timeout 10000
Outputs the window ID when found.
Wait for a JS condition
tauri-agent-tools wait --eval "document.readyState === 'complete'" --timeout 5000
Custom polling interval
tauri-agent-tools wait --selector ".loading-done" --interval 200 --timeout 30000
Behavior
--selector: pollsdocument.querySelector()until a matching element exists--eval: polls the JS expression until it returns a truthy value--title: polls the platform adapter'sfindWindow()until a matching window appears- Throws an error if the condition is not met within
--timeout - Exits with code 0 on success, non-zero on timeout
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 67 lines · 0 tokens per session scan A d88c0685fd21
wait is a command published in the GitHub repository cesarandreslopez/tauri-agent-tools (22 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 472 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
interactive-dev
Start a persistent interactive development session with natural language browser control, auto-error monitoring, and full dev tool access.
record-workflow
Record browser interactions and generate a Playwright test with assertions and best-practice selectors.
scaffold
Scaffold a new project from a Starter Series template (Discord/Telegram bot, MCP server, browser/VS Code extension, Electron, React Native, Cloudflare Pages, npm package, Docker deploy).
review-extension
Browser-extension + bridge review with extension-reviewer (Primary Owner).
review-scraping
Scraping review with scraping-applier-expert (Primary Owner).
e2e
使用 Playwright 对 Web UI 进行端到端测试(支持视频录制、Trace 录制、控制台/网络日志捕获).