docgraph_context
Build relevant documentation context for a task or topic by combining governance-aware search, node details, cross-references, and source content in a single call.
Instructions
PRIMARY TOOL. Build relevant documentation context for a task or topic. Composes governance-aware search + node details + cross-references + bounded source content in one call. For a single known document, use docgraph_node instead. For broad queries, set includeContent=false or reduce maxContentBytes (default 2000, hard cap 6000) to avoid large responses; a 10-node query with default settings can produce 20–50 KB of output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allowed_audience | No | Filter to documents available to an audience label. Public documents are included. | |
| analyst_status | No | Filter by research analyst_status. | |
| as_of_date | No | Evaluate effective_date and valid_until against YYYY-MM-DD. | |
| canonical_source | No | Filter by canonical source marker or value. | |
| claim_id | No | Filter by research claim_id. | |
| confidence | No | Filter by research confidence. | |
| format | No | Output format: summary (default), context_pack for a reviewable evidence pack, or drift_audit for a drift audit report (finding codes: policy.stale_review, policy.superseded_referenced, policy.duplicate, policy.non_canonical, policy.conflicting, research.stale_assessment, research.unverified_evidence, research.competing_interpretations, research.superseded_claim, research.impacted_deliverable; doc.stale_by_git when git history is present; when code_doc is enabled: code.missing_symbol, code.undocumented_export, code.unanchored_feature). | |
| impactDepth | No | Context pack impact depth for incoming references (default 1, max 3). | |
| includeContent | No | Include bounded source content for each result (default true) | |
| maxContentBytes | No | Max source bytes per result (default 2000, hard cap 6000) | |
| maxNodes | No | Max documents to return (default 10) | |
| project | No | Workspace mode only: scope results to a single project by name (the directory name shown in docgraph_status). Omit to query all projects. No-op in single-store mode. | |
| referenceLimit | No | Context pack max incoming/outgoing references per item (default 5, max 20). | |
| sensitivity | No | Filter by sensitivity. | |
| source_type | No | Filter by research source_type. | |
| status | No | Filter by governance status. | |
| task | Yes | Description of the task/topic to find context for |