> ## Documentation Index
> Fetch the complete documentation index at: https://platform.atlan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Agent or harness run spans

> Read the spans inside one Agent or harness run.

# Get Agent or harness run spans

Use `agent__get_trace_spans` for the model calls, tool calls, nesting, and
timing inside one run.

* Required inputs: `subject_id` and `trace_id`.
* Optional inputs: `limit`, `cursor`, `session_id`, and Gateway's `rationale`.
* Effect: read only.

Use `agent__get_trace` first to decide whether the run needs span-level detail.
Pass `cursor` back unchanged.
