shadowgraph_expand
Expands a record handle and revision digest from context into the full current record and rival records, so you can verify revisions and inspect structural alternatives.
Instructions
Expand a recordId and revision digest handle from shadowgraph_context into the full current record and rival records. shadowgraph_context supplies the handle; shadowgraph_search or shadowgraph_retrieve. Own-scope read saves nothing; audit. Copy expansion fields into this tool's input at top level: recordId, digest and scope; stale digest yields revision_changed; purged yields purged; missing or out-of-scope yields unavailable.
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": {
"recordId": "<recordId>",
"digest": "<digest>"
},
"name": "shadowgraph_expand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | The line's expansion.asOf, when it has one. | |
| digest | Yes | The line's expansion.digest: the revision the line was derived from. | |
| grantId | No | Alias for accessId; conflicting identifiers are refused. | |
| project | No | Project or confirmed workspace binding; otherwise origin-only. No identity returns an empty scoped view. | |
| accessId | No | Grant ID, rechecked at use. Widens reads only, never write authority. Presenting it commits a revision and bounded audit (at most one aggregate per grant, surface, outcome and UTC day). Conflicts with grantId are refused. | |
| originId | No | Capture-origin ID for unattributed records when project is omitted. | |
| recordId | Yes | The line's expansion.recordId. | |
| derivedAt | No | The line's expansion.derivedAt. A logical purge of the read's own project recorded after it answers purged. | |
| maxExpansions | No | How many structural counterparts to fetch in full, 0-50. Defaults to 5; the rest are marked uninvestigated, with their lines. | |
| derivationVersion | No | The line's expansion.derivationVersion. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | The current full record, or null. Never a summary and never the old revision. | |
| status | Yes | current: the line came from this revision. revision_changed: the record changed since, and this is the current record. purged: the first purge of the read's own project after the line was logical. unavailable: no record with this id is served in the scope. | |
| recordId | Yes | The record the line named. | |
| completeness | Yes | Request coverage and any withheld detail. | |
| boundRevision | Yes | The revision the line was derived from. | |
| investigation | Yes | Counterparts investigated within the budget; null when no record is served. | |
| readProvenance | No | Original read bounds; reuse intersects these with currently valid authority. | |
| currentRevision | Yes | The live revision; null when no record is served. | |
| revisionChanged | Yes | Whether the record changed after the line was derived; null when no record is served. |