Get resource graph
get_resource_graphBrowse how resources connect, in either direction. direction 'depends_on' (default) shows what this resource NEEDS, following 'depth' hops (default 3). direction 'depended_on_by' shows what would BREAK if you changed or deleted it — transitive and not depth-limited, since the chain (api template → the workflows calling it → the endpoints running those) is the answer; use it before a delete or a breaking edit. Each edge carries the reference text as authored, whether it names @published or @latest, and what that resolves to right now, so version drift is visible and not just connectivity. Check unscanned_kinds on a reverse result: a schema's referrers include every datafile and are too expensive to enumerate, so an empty answer there does NOT mean nothing depends on it. To find out whether something is broken rather than what it connects to, use analyze_resource.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | the kind of resource to start from: workflow, dynamic_endpoint, api_template, datafile, schema, schedule, secret, custom_domain | |
| depth | No | how many hops to follow (default 3). This is a browsing control for looking around; analyze_resource always follows chains to the end rather than stopping at a depth | |
| resource | Yes | slug of the resource, optionally with a version suffix (e.g. 'blog/render' or 'blog/render@latest'); a bare slug means @published. For a custom_domain this is the hostname | |
| direction | No | which way to walk: 'depends_on' (default — what this resource needs) or 'depended_on_by' (what would break if you changed or deleted it). depended_on_by is transitive: deleting an api template surfaces the workflows that call it AND the endpoints that run those workflows |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| edges | Yes | ||
| nodes | Yes | ||
| truncated | No | ||
| depth_exceeded | No | ||
| scan_truncated | No | ||
| unscanned_kinds | No | ||
| aggregate_referrers | No |