cos_graph_trace
Trace code execution forward from a given function UID, following call edges until terminal labels like return or exception, to reveal runtime flow and exit paths.
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 |