mcp_engram_context_for_edit
Retrieve pre-edit geometric memory context for a file, including spatial items, traces, scars, and post-edit palette, to inform edits.
Instructions
Code atlas v2 — pre-edit situated memory. Returns JSON: spatial_items (tree-sitter AABB + edit_arc per locus), traces_at_locus, scars_at_locus, harness_injection.post_edit_palette. Requires wake queue ack when ENGRAM_WAKE_QUEUE_GATE=hard. Prefer mcp_engram_safe_edit_and_verify for substantive edits. FEW-SHOT EXAMPLES: (1) Standard pre-edit: {"path":"/home/user/Engram/crates/engram-server/src/store.rs","auto_ingest":true} (2) Line-bounded locus: {"path":"/home/user/Engram/crates/engram-server/src/mcp.rs","line_start":6200,"line_end":6350}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative file path to edit | |
| line_end | No | Optional end line for spatial AABB filter (1-based) | |
| line_start | No | Optional start line for spatial AABB filter (1-based) | |
| auto_ingest | No | If true (default), force-ingest this single file when no spatial items exist |