Inspect Stack Frame
openl_inspect_trace_frameRead the full state of a suspended stack frame: inputs, runtime context, result, sub-steps, and decision rule with condition evaluations. Filter neutral steps or request highlights to surface the anomaly.
Instructions
Freeze and read the full state of one suspended stack frame: input parameters, runtime context, result (for a completed frame), sub-steps with computed values, and for a decision table the killer feature — 'decision' (which rule fired and how each condition evaluated per rule) plus 'ruleNames' (all rules, for per-rule breakpoints). Values may come lazy (lazy: true + parameterId) — expand with openl_get_trace_value. By default the response is trimmed (no value JSON schemas); full: true lifts the trim. To surface an anomaly among many neutral factors, filter the steps: onlyExecutedSteps drops not-yet-computed ones, and excludeStepValues drops steps whose value is a neutral constant (e.g. [1] in rating) — lazy step values are resolved before the comparison, so a neutral factor that came lazy is dropped too. withHighlights: true additionally returns the A1-keyed cell highlight overlay and the raw table grid to merge it with. Valid only while suspended (a terminal session answers 409 — read its final state from the last returned stack).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Return the complete untrimmed response, including value JSON schemas (default false — trimmed via ?fields to save tokens). | |
| projectId | Yes | Project ID returned by backend. Use the exact 'projectId' value from openl_list_projects() response without modification or reformatting. | |
| frameIndex | Yes | Stack frame index from the frames[] of the last stack response (0 = root, highest = current). | |
| withHighlights | No | Also return the frame's cell-highlight overlay (A1-keyed) plus the raw table grid to merge it with (default false). | |
| response_format | No | Response format: 'json' for structured, round-trippable data (default), 'markdown' for human-readable output, 'markdown_concise' for a brief summary (1-2 paragraphs), or 'markdown_detailed' for full details with context | json |
| excludeStepValues | No | Drop executed steps whose scalar value equals one of these — to hide neutral factors and surface the outlier (e.g. [1] in rating, where a factor of 1.0 means 'no effect'). Lazy step values are resolved before the comparison, so a neutral factor that came lazy is dropped too. Do not use for tables where those values are meaningful. | |
| onlyExecutedSteps | No | Keep only executed steps (drop pending/current-without-value) so the response is just the computed factors (default false). |