resolve_context_bundle
Builds a token-pruned Markdown context bundle by calculating dependency graph distances for an active target file. Use it to orient before editing in multi-module projects.
Instructions
Calculate topological dependency graph distances (D0 full target, D1 interface stubs, D2 nominal symbols) for an active target file and compile a token-pruned Markdown context bundle. Use this as your primary context builder before editing a file in a multi-module project. For inspecting isolated files, use prune_file instead. Read-only operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_file | Yes | Path to the active target file in editing (D0) | |
| project_root | No | Root directory of the project. Defaults to target file's directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Compiled topological Markdown prompt context bundle | |
| isError | Yes | True if dependency resolution or file traversal failed |