cos_graph_trace
Trace forward execution from a starting function to terminal events to map call graphs and debug control flow.
Instructions
Forward execution walk from entry_uid until terminals.
Args:
entry_uid: Function/method uid to start from, e.g.
code:function:core/foo.py::bar. Raw paths or names are
auto-resolved (file → code:file: then entry-point heuristic).
Run cos_graph_query first if unsure.
terminals: Comma-separated edge labels that stop the walk.
max_steps: Hard cap on emitted steps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry_uid | Yes | ||
| max_steps | No | ||
| terminals | No | return,exception | |
| include_external | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |