Audit: what an entity is connected to
audit_refsTrace everything tied to one entity across all projects: observations, incoming and outgoing links, and supersede chains. Follow a single hop or full lineage, and verify linked file paths against the working tree.
Instructions
Show what one entity is connected to across ALL trees of ALL projects in this workspace: the observations about it, the links into and out of it, the decision that superseded it. Use it after search to pull on a thread: "what else is tied to this?". By default it is the NEIGHBOURHOOD (one hop, either direction); set direction to "out" (what it points at) or "in" (what points at it) with a larger depth to follow a lineage, such as a decision’s supersede chain. direction: "in" is how you answer "have I already applied this in my other projects?": the things that point at it are in THEIR records, and every edge says which project asserts it. A far end no visible tree holds comes back marked unresolved (that is legitimate, not an error), and the answer says when the depth cut it. Give it a PATH a link ends in and the answer also carries file: whether that file exists in the working tree today and the SHA-256 of its bytes. Read-only.
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": {
"id": "<id>"
},
"name": "audit_refs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The entity id to walk from (from `search`). | |
| depth | No | How many hops (default 1, max 10). | |
| direction | No | Which way to follow edges; omitted, both. |