Inspect behavior & components
Query cookbook for orienting on an unfamiliar app, checking blast radius before edits, inspecting operations, and auditing components, visual scale, hot symbols, and dark files.
View .md~876 tokens
Prefer pitafix mcp tools over reading files speculatively; each query has a --json CLI equivalent. Full parameter tables live in MCP reference and CLI reference.
Behavior, blast radius & coverage
| Goal | MCP tool | CLI equivalent | Key gotchas |
|---|---|---|---|
| Whole-app orientation (areas, totals, platforms, proof, freshness) | get_app_map | pitafix map --project . --json | Always check unreachedRoutes — uncaptured routes are blind spots. |
| Browse screens, journeys, or canonical operations | list_screens, list_journeys, list_operations | pitafix ops --project . --json | Pass compact: true on large maps to stay well under the 2 MiB reply cap. |
| Blast radius before editing shared code | find_screens (file, symbol, lines) | — | Use repo-relative file (no leading /, .., or \); fully-run screens appear first; check unreachedRoutes count. |
| Inspect one screen or ordered journey | get_screen, get_journey | — | Paginate step code with code_tier, code_limit, code_offset. |
| Deep operation dossier (transitions, UI triggers, tiered code, server effects) | get_operation | pitafix op <id> --project . --json | Ranks domain tiers above plumbing; keeps partialLines[] distinct from full hits; includes serverEffects (endpoints, writtenTables, sqlCounts, jobs, mailers, redirects). |
| Spot per-step hot paths / reactive over-execution | list_hot_code | pitafix hot --project . --json | Ranks non-accessor symbols across stride-sampled steps. |
| Find tracked source files never executed in captures | list_dark_files | pitafix dark --project . --json | Skips tests by default (include_tests: true to include); returns unreachedRoutes alongside files. |
| Map recent git changes to impacted journeys & newly dark files | — | pitafix affected --project . --from HEAD~1 --json | Use before targeted re-captures or gap expansion. |
UI components & visual scale
| Goal | MCP tool | CLI equivalent | Key gotchas |
|---|---|---|---|
Inventory UI kinds (button, row, field, card, …) & structural finds | list_components | pitafix components --read --finds --json | Surfaces alike, wrapper, no component, one place. Check unread: if > 0, run pitafix components --read first or pass tree_only: true to get_screen_components. |
| Inspect one component's call sites, visual states & triggers | get_component | pitafix component <NAME> --project . --json | Separates declared vs undrawn calls; stateList[] gives pt sizes, #rrggbb colors, and state-specific code[]. |
Check empirical design-system tokens (gap, corner, text, fill, ink) | get_scale | pitafix scale --project . --json | Kept values have ≥2% usage share; everything else appears under odd departures. |
| Inspect one screen's component tree, nesting & scale departures | get_screen_components | — | Pass tree_only: true when screenshots have not been read yet. |
| Diff extracted components against an earlier commit | — | pitafix components --since <rev> --project . --json | Useful for catching unintended visual drift after UI refactors. |