Compact graph digest (token-cheap)
compact_graph_digestCompress a TouchDesigner subtree into a structured digest with header, node count, connection count, primary output, families, errors, warnings, and token estimate. Uses existing network topology and errors for cost-effective planning.
Instructions
Read-only: compress a TD subtree into a structured digest under max_tokens (default 500). Returns {header, nodeCount, connectionCount, primaryOutput, families{count,topTypes}, outputChain, errors{total,topGroups}, warnings, approxTokens}. Uses getNetworkTopology + getNetworkErrors — no new bridge work. Cheaper than get_td_topology / snapshot_td_graph for planning turns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | TD container/subtree path to digest. Defaults to /project1. | /project1 |
| max_tokens | No | Hard ceiling on approximate output tokens (chars/4 heuristic). Default 500. | |
| include_errors | No | Include top-3 grouped error keys. Off for purely structural turns. | |
| include_output_chain | No | Walk the primary output TOP upstream up to output_chain_depth. | |
| output_chain_depth | No | How far upstream to walk from the output TOP. 6 fits typical tails. | |
| family_top_types | No | Per family, list up to N most-frequent operator types. 0 = counts only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| header | Yes | ||
| nodeCount | Yes | ||
| connectionCount | Yes | ||
| primaryOutput | Yes | ||
| families | Yes | ||
| outputChain | Yes | ||
| errors | Yes | ||
| warnings | Yes | ||
| approxTokens | Yes | ||
| cachedAt | Yes | ||
| overBudget | No |