get_spans
Retrieve recent agent spans, filterable by session ID or run ID, with a configurable result limit.
Instructions
Fetch recent agent spans, optionally filtered by session or run.
Args:
session_id: Filter to this session. Optional.
run_id: Filter to this agent_runs.run_id. Optional.
limit: Max rows to return. Default: 50.
Returns a JSON array of span objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | ||
| run_id | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |