Collect Adaptive Runtime Evidence
debug_adaptive_evidenceCollects runtime debugging evidence in bounded phases, starting with stack and small locals and expanding only when needed, to control token and DAP cost when required evidence is unknown.
Instructions
Collect runtime evidence in progressively richer bounded phases instead of immediately requesting a maximal snapshot. Use it when token/DAP cost matters or the amount of evidence needed is unknown: it starts with stack and small locals, expands only when symbols, exception state, or variables are insufficient, and finishes with a full runtime report when needed. Do not use it to replace deliberate deep inspection when the required evidence is already known.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| forceFull | No | Force the full evidence phase even if the cheap snapshot already looks sufficient. | |
| sessionId | No | Optional DAP session ID. Omit to use the backward-compatible default session. | |
| maxVariables | No | Maximum locals/registers per scope in the richest phase. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| report | No | ||
| snapshot | No | ||
| selectedPhase | Yes | ||
| evidenceBudget | Yes | ||
| expansionReasons | Yes |