docgraph_graph
Traverse document relationships: find incoming citations, outgoing links, transitive references, or shortest path between documents in a knowledge graph.
Instructions
Document graph traversal facade. Operations: incoming — documents that cite/reference this document outgoing — documents this document links to impact — transitive incoming references (who depends on this) trace — shortest forward path from document A to document B over reference edges (markdown links, wikilinks, embeds); one-directional, ignores similarity/tag edges; "no path" ≠ "unrelated"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Impact depth (default 2, max 5) | |
| document | No | Document name or path for incoming, outgoing, and impact. When copying a path from docgraph_search results, strip the trailing '#heading:line' suffix (and any '[project/]' prefix in workspace mode) to the bare file path before passing it here. | |
| from | No | Starting document name or path for trace | |
| limit | No | Max incoming/outgoing results (default 10) | |
| operation | Yes | Graph operation: incoming, outgoing, impact, or trace | |
| to | No | Target document name or path for trace |