walk_app
Autonomously walk a web dashboard and record what's there + what breaks.
Opens app_url in the tester VM's browser, then BFS-walks every
interactive control it finds (clicks each in turn), deduping UI states by
fingerprint (route_template + dom_signature). For each visited state it
captures a screenshot, the DOM-truth interactive-element list, and any
console / network errors that fire during the post-action settle window.
Findings are persisted with severity (blocker/major/minor/info) and
deduped by message — repeat errors collapse to one record.
Returns IMMEDIATELY with the walk_id; the actual walk runs in a background
asyncio task. Poll get_app_walk(walk_id) to watch progress, or
stop_app_walk(walk_id) to cancel.
M2 scope: mechanical BFS only — no AI mode, no auth flow, no checkpoints, no scenario emission (those come in M3/M4/M4.5/M2.D). The tester VM browser MUST be Chromium-class (Brave/Chromium/Chrome/Edge) — Firefox does not expose CDP at :9222 and the walker hard-fails on snapshot.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_name": "<app_name>",
"app_url": "<app_url>",
"vm_name": "<vm_name>"
},
"name": "walk_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | When provided, walker signs in before BFS so it walks the AUTHED landing page instead of the sign-in form. Shape: {login_url:str, username_var:str, password_var:str, totp_var?:str, email_otp?:{target?:str, sender?:str, subject_contains?:str}, post_login_url?:str, assert_text?:str, on_behalf_of?:str}. PASS KMS VAR NAMES, NEVER LITERAL SECRETS — the walker only knows the names; the libvirt scenario runner resolves them from the keystore per (user, app_name, var). Missing secrets fail the walk with a blocker 'auth_failed' finding so the operator can store them and retry. | |
| mode | No | Exploration policy: 'mechanical' (default) = DOM-order BFS, 'ai' = LLM ranks unvisited candidates every state, 'hybrid' = AI for the first ai_seed_states state-seeds then mechanical, 'cot' = task-directed best-first search that stops at the first evidence-backed answer. AI modes require either an authenticated Claude Code CLI or ANTHROPIC_API_KEY in the MCP server's env; missing both → silent fallback to mechanical for ai/hybrid only. CoT mode errors if no model backend is available. | mechanical |
| task | No | Required when mode='cot'. The task the walker should answer, max 4000 characters. | |
| ai_goal | No | Goal sentence the LLM ranker sees when choosing what to click. Defaults to 'Find bugs and explore new flows in this app'. Examples: 'Test the new-project creation flow end-to-end', 'Audit the settings/billing path for permissions bugs'. | |
| api_key | No | MCP API key | |
| app_url | Yes | Seed URL to crawl. The VM's browser opens this and the walker explores from there. | |
| vm_name | Yes | Tester or desktop VM (of-tester-* or of-desktop-*) with a Chromium-class browser (DevTools at :9222). | |
| app_name | Yes | Stable app key, e.g. 'walker-canary' — groups history. | |
| max_depth | No | Max BFS depth from the seed state. Default 6. | |
| max_states | No | Max distinct UI states to visit before stopping. Default 80. | |
| project_id | No | Optional project_id to file the walk under. | |
| browser_auth | No | Browser-session auth for an encrypted app/account scoped profile. Shape: {provider:'composio', connection_id:str}. Mutually exclusive with legacy auth. | |
| fuzz_profile | No | Safe form policy: 'canned' fills non-sensitive text/select fields, 'boundary' uses valid boundary values where available, and 'skip' does not prepare forms. Transactional submits remain blocked. | canned |
| session_token | No | Session token | |
| ai_seed_states | No | Hybrid mode only: AI ranks the first N state-seeds, then mechanical BFS takes over. Default 3. | |
| allowed_origins | No | CoT only: up to 10 HTTP(S) origins the task walk may navigate to. The starting origin is always included. | |
| ai_max_decisions | No | Hard cap on LLM calls per walk. Past this, walker falls back to mechanical for the rest of the walk. Default 12. | |
| cot_branch_width | No | CoT only: number of alternative branches to queue per model decision. Default/max 3. | |
| max_wall_seconds | No | Hard wall-clock cap on the whole walk. Default 600. | |
| cot_max_decisions | No | CoT only: hard cap on model decisions. Default 20. | |
| task_output_schema | No | Optional Draft 2020-12 JSON Schema for CoT structured_output. Remote references and schemas over 32 KB are rejected. | |
| destructive_allowed | No | When False (default) skips elements whose label/selector matches the destructive deny-list (delete/remove/sign out/etc.). When True, the walker clicks 'guarded' (regex-matched) elements AND runs a confirm-dialog probe — but high-stakes ALWAYS_GUARDED elements (delete account / revoke key / drop table / etc.) are STILL skipped unless explicitly named in destructive_label_allowlist. | |
| mining_verification | No | M4.5 harness-verification mode for emitted scenarios. 'off' (default) skips harness verification (M3 behavior — every blocker/major finding becomes a scenario with confidence='low'). 'polling' creates a mining checkpoint per proposed scenario and waits up to 60s for the harness to call submit_scenario_checkpoint(checkpoint_id, verdict=…); 'pass' → confidence='high', 'fail'/'skip' → drop, 'investigate' → confidence='medium' + flaky=True, 'timeout' → confidence='low' + notes='harness timeout'. The harness reads pending checkpoints via get_pending_checkpoint(walk_id=…, wait_seconds=25). 'auto' is an alias for 'polling' in M4.5 (FastMCP Context.sample() integration is a follow-up). | off |
| max_actions_per_state | No | Max interactive elements explored per state. Default 50. | |
| destructive_label_allowlist | No | Per-walk allowlist of element labels to treat as 'safe' even when the destructive deny-list (or ALWAYS_GUARDED) regex matches. Entries are case-insensitive literal substrings by default; prefix 're:' for a regex. Examples: ['remove from cart', 're:^clear ', 're:^reset filter']. Useful when an app uses destroy-verbs in benign contexts (e-commerce 'Remove' / search 'Reset filters' / etc.) — explicitly opt them in by exact label. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||