Trace dependencies
layerz_dependenciesTrace an item's dependency graph: precedents (items its formula references) and dependents (items that reference it). Like Excel trace precedents/dependents. Use depth for transitive walks and direction to scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Item UID to trace (role-prefixed forms accepted) | |
| depth | No | Transitive depth to walk (1 = direct only). Default: 1. | |
| model_id | No | Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys. | |
| direction | No | 'precedents' = what feeds the item, 'dependents' = what references it, 'both' (default). |