Get supply chain
get_supply_chainWalk the supplier/customer graph from one focal company, up to 2 tiers up (suppliers), down (customers), or both. Mirrors the chain view on wafergraph.com's Explorer. Returns companies grouped by tier plus the edges between them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Focal company id or name. | |
| depth | No | Number of tiers to walk, capped at 2. | |
| direction | No | up = walk suppliers only, down = walk customers only, both = walk both directions. | both |