Detect Environment
vdd_detect_environmentCompares availableTools against per-phase required and optional MCP tools to report which VDD phases have missing capabilities. Run before vdd_strategize to plan subagent dispatch or on phase failure.
Instructions
VDD Environment Detection: Report which tools/MCPs each VDD phase requires vs treats as optional — across the 8-phase pipeline (init through validate) plus the cross-phase helpers (amend, clone, trace, analyze, get-next-task) — and which of the host agent availableTools are present vs missing. Read-only; returns a capability report without modifying files. Run before vdd_strategize to plan research-subagent dispatch, or when a phase fails for lack of a tool; to inspect artifacts instead of capabilities use vdd_trace. Pass availableTools (or its alias capabilities); omitting both returns the per-phase requirements without the present/missing comparison.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectRoot | No | Project root: directory that constitution.md and the vdd/ folder are written to and resolved against (default ".") | . |
| capabilities | No | Alias for availableTools | |
| availableTools | No | MCP/tool names available to the host agent (e.g., ["brave-search","perplexity","context7","gh_grep","playwright","filesystem"]) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _sdt | Yes | Strategy-and-Tactic instructions for the next step | |
| error | No | Error message when the phase fails | |
| _phase | Yes | VDD phase that produced this result | |
| output | No | Additional structured phase output | |
| success | Yes | Whether the phase completed successfully | |
| artifact | No | Primary artifact produced or returned | |
| gateResult | No | Quality-gate result, when the phase runs a gate |