docgraph_graph
Traverse document reference graphs to find citing documents, outgoing links, transitive dependencies, or shortest paths between two documents.
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"
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "docgraph_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target document name or path for trace | |
| from | No | Starting document name or path for trace | |
| depth | No | Impact depth (default 2, max 5) | |
| limit | No | Max incoming/outgoing results (default 10) | |
| 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. | |
| operation | Yes | Graph operation: incoming, outgoing, impact, or trace |