ecg_search_context
Return the smallest connected fact neighborhood for a query, letting AI coding sessions recall relevant decisions and constraints without replaying full transcripts.
Instructions
Return the smallest fact neighborhood for query. This is the only body export.
The server ranks facts itself from query and entity_names. It does
not accept a fact-id list, so a caller cannot widen an approval by naming
extra facts. Results are connected clusters labeled by their shared entity
(or the top fact title). When the rendered block would exceed
ECG_AUTO_INJECT_MAX_TOKENS, or ECG_AUTO_INJECT=preview, the block
contains titles only and says why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| session_id | Yes | ||
| entity_names | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |