> ## 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.

> ## Agent Instructions
> To act on Atlan objects, use the Atlan MCP server at https://api.atlan.com/mcp or the atlanai CLI; `atlanai --map json` prints its command map. Run a read-only identity check before any write.
> The docs MCP server at /mcp searches these docs only. It cannot read or change Atlan objects.
> SDK packages: Python `atlanai` (PyPI) and TypeScript `@atlanai/sdk` (npm). Show Python first, then TypeScript.

# Get Agent or harness run spans

> Read the spans inside one Agent or harness run.

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.
