Skip to Content

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

GoalMCP toolCLI equivalentKey gotchas
Whole-app orientation (areas, totals, platforms, proof, freshness)get_app_mappitafix map --project . --jsonAlways check unreachedRoutes — uncaptured routes are blind spots.
Browse screens, journeys, or canonical operationslist_screens, list_journeys, list_operationspitafix ops --project . --jsonPass compact: true on large maps to stay well under the 2 MiB reply cap.
Blast radius before editing shared codefind_screens (file, symbol, lines)—Use repo-relative file (no leading /, .., or \); fully-run screens appear first; check unreachedRoutes count.
Inspect one screen or ordered journeyget_screen, get_journey—Paginate step code with code_tier, code_limit, code_offset.
Deep operation dossier (transitions, UI triggers, tiered code, server effects)get_operationpitafix op <id> --project . --jsonRanks 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-executionlist_hot_codepitafix hot --project . --jsonRanks non-accessor symbols across stride-sampled steps.
Find tracked source files never executed in captureslist_dark_filespitafix dark --project . --jsonSkips 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 --jsonUse before targeted re-captures or gap expansion.

UI components & visual scale

GoalMCP toolCLI equivalentKey gotchas
Inventory UI kinds (button, row, field, card, …) & structural findslist_componentspitafix components --read --finds --jsonSurfaces 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 & triggersget_componentpitafix component <NAME> --project . --jsonSeparates 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_scalepitafix scale --project . --jsonKept values have ≥2% usage share; everything else appears under odd departures.
Inspect one screen's component tree, nesting & scale departuresget_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 . --jsonUseful for catching unintended visual drift after UI refactors.

On this page