Metis — Get Spans
get_spansFetch recent agent execution spans, optionally filtered by session or run, to inspect activity traces and debug agent runs. Returns a JSON array with a configurable row 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 |
|---|---|---|---|
| limit | No | ||
| run_id | No | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |