How Your AI Uses the Tools
You don’t call these tools directly — your AI calls them automatically based on your questions. When you ask “why is my app slow?”, the AI might:- Call
limelight_get_session_overviewto get the big picture - Call
limelight_find_issuesto scan for detected anti-patterns - Call
limelight_get_render_profileto check for expensive re-renders - Call
limelight_query_networkto find slow requests - Call
limelight_investigate_erroron anything problematic
Debugging Workflows
”Something is broken”
Best for: errors, crashes, unexpected behavior.”Something is slow”
Best for: performance issues, render jank, slow API calls.”Something is wrong with data”
Best for: stale data, wrong values, state bugs.”What’s happening right now?”
Best for: understanding runtime state, verifying behavior.”Run a health check”
Best for: proactive scanning, code review, before shipping.Tool Reference
Overview Tools
limelight_get_session_overview
The starting point. Returns a high-level snapshot: event counts, error summary, suspicious items, top-rendered components, and session metadata. Your AI almost always calls this first.
Returns: session info, event counts by type, error/warning counts, suspicious items (failed requests, errors, hot components), top 3 most-rendered components.
limelight_find_issues
Proactive scanner. Scans all captured events for performance issues, bugs, and anti-patterns. Runs the correlation engine and Debug IR pipeline on anything that looks problematic.
Detects: failed requests, render loops, N+1 queries, race conditions, unstable props, render cascades, retry storms, stale closures, rapid state updates, request bursts.
Investigation Tools
limelight_investigate_error
The most powerful tool. Runs the full Debug IR pipeline on an error — produces a causal chain, state deltas, violations, excluded causes, and suggested fixes.
Provide
error_id, error_pattern, or neither (investigates the most recent error).
limelight_investigate_component
Component deep-dive. Full analysis of a React component — render history, prop changes driving re-renders, and correlated state/network activity.
Returns: render profile (count, cost, velocity, suspicious flag), prop changes with reference stability analysis, instance count, correlated events, and Debug IR analysis.
limelight_correlate_event
Trace cause and effect. Given any event ID, finds everything related to it using the correlation engine. Returns a timeline (before/concurrent/after) and a correlation graph with typed edges and confidence scores.
Query Tools
limelight_query_network
Network request search. Filter by URL, method, status code, speed, and time range.
limelight_query_logs
Console log search. Filter by level and message content.
limelight_get_timeline
Chronological event view. See everything that happened in a time window — requests, logs, renders, state changes — as timestamped one-line summaries.
limelight_get_event
Single event inspection. Retrieve the complete details of any event by ID — full bodies, headers, stack traces, state diffs, or render details depending on event type. Use this after finding event IDs from other tools.
Profiling Tools
limelight_get_render_profile
Component performance profiling. Shows which components are rendering, how often, how expensively, and why. Sort by render count, total cost, or velocity.
limelight_get_state_snapshot
State store inspection. View current Zustand or Redux store contents and recent change history.
What Your AI Sees vs. What You See
When your AI calls a Limelight tool, it receives structured JSON — not screenshots or formatted HTML. This is intentional. Structured data lets the AI:- Cross-reference events across tools (event IDs are consistent)
- Build up a mental model of your app’s runtime behavior
- Correlate what it sees in the runtime with what it knows from your source code
- Suggest precise fixes rather than generic advice