mcp_engram_context_for_file
Before editing a file, retrieve its AST context with line ranges. Get spatially-prioritized code structure to make informed changes.
Instructions
TRIGGER (core of spatial impact ritual): Call before editing any file. Now spatially-prioritized — returns real daemon-extracted AABB AST items (with line ranges + CRS) first, then higher-level context. This is your geometric Pre-Edit impact recon tool. The daemon stores spatial AABB coordinates (line ranges) with each ingested AST node, so results include which exact lines each concept came from. This is faster and more precise than a free-text recall for file-specific context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path (e.g. /home/user/project/backend.rs) |