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.
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": {
"filePath": "<filePath>"
},
"name": "get-lineage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Traversal depth in either direction (default: 3). | |
| filePath | Yes | Document path to trace lineage for. |