Get Repository Context
engram_get_contextAudit repository knowledge by category: conventions, gotchas, patterns, solutions and architecture. Unlike engram_recall or engram_smarter, this searches each category separately and returns five sample arrays for coverage review, rather than one task-ranked list. Returns JSON with repo/file/total and up to 21 entries; this is a bounded search, not a full repository-memory export.
repo is required; file/task refine search without reading files. Only when all five categories have no repo matches does the search broaden to workspace/public memory. Empty results are valid. Does not edit knowledge. Consumes workspace daily call quota. OAuth: memory:read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File path/name used only as a search hint, e.g. src/auth.ts. Engram does not read or modify local files. | |
| repo | Yes | Repository slug to inspect, e.g. billing-api. If no repo-specific memories match, the server broadens to workspace/public knowledge. | |
| task | No | Concrete current goal or decision, e.g. diagnose checkout retries; used to focus context and session recovery. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The same bounded payload as content[0].text; interpret it using format. JSON text contains the endpoint-specific fields described by this tool. | |
| format | Yes | Payload encoding: Markdown context/checkpoint, serialized JSON data, or plain confirmation text. | |
| truncated | Yes | True when the payload exceeded 120,000 characters and was cut with a notice. Narrow the request; truncated JSON is not parseable. |