get-lineage
Trace the provenance chain of a document to identify its source documents and any derived documents, showing upstream sources and downstream derivatives.
Instructions
Trace the provenance chain of a document. Returns a tree { sources: [{filePath, ...}], derivatives: [{filePath, ...}] } showing which read documents informed this document (sources, traced upstream) and which created documents derived from it (derivatives, traced downstream). Lineage is recorded automatically when read-doc and create-doc are called within the same session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Traversal depth in either direction (default: 3). | |
| filePath | Yes | Document path to trace lineage for. |