Recall User Context
recall_user_contextAssemble a task-aware user-context bundle from project memories, sessions, and current-state keys, with a poisoning gate that quarantines unsafe summaries and returns compact JSON.
Instructions
Assemble task-aware user context from safe claims, profile summary, repo memories, requested current-state keys, workstreams, and recent sessions. Its poisoning gate may quarantine an unsafe legacy or session summary. Requires a non-blank query and an explicit project or cwd scope. Returns a compact source-attributed JSON object with included items, dropped items, reason codes, and budget metadata. Use search for exhaustive memory matches and current_state for one exact stable key; this tool selects a bounded context bundle instead. Invalid or missing scope input and database failures return a tool error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory used to derive the project key. Required when project is omitted. | |
| host | No | Host profile, e.g. codex-cli or claude-code. | |
| limit | No | Maximum included recall items. | |
| query | Yes | Task or topic query for user-context recall. | |
| project | No | Project key/path filter. Required when cwd is omitted. | |
| owner_key | No | Explicit user-context owner key. | |
| state_keys | No | Stable current-state keys to resolve exactly. | |
| owner_scope | No | Explicit user-context owner scope. | |
| task_intent | No | Optional task intent, e.g. review, implement, debug, plan. | |
| budget_chars | No | Maximum compact context characters. | |
| current_files | No | Current file paths relevant to the task. | |
| include_sensitive | No | Include personal/sensitive/restricted claims for explicit audit. | |
| include_suppressed | No | Include policy-suppressed claims and memories for explicit audit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| empty | Yes | ||
| query | Yes | ||
| context | Yes | ||
| dropped | Yes | ||
| project | Yes | ||
| included | Yes | ||
| diagnostics | Yes | ||
| task_intent | No | ||
| usage_policy | No |