get_spans
Fetch recent agent spans with optional filtering by session ID or run ID, returning a JSON array of span objects.
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 |