get_agent_runs
Retrieve recent agent run history with details on what ran, when, status, and token usage. Filter by date range or specific agent to review activity.
Instructions
Retrieve recent agent run history from the database.
Returns the log of past agent work — what ran, when, its status, and token
usage — for the dashboard or for reviewing recent activity. These rows are
written by log_agent_run. Results come back newest first.
Args:
limit: Maximum number of runs to return, newest first (default 10).
since: ISO date or datetime string; only runs at or after this time are
returned. Empty string (default) returns runs from all dates.
agent_slug: Filter to a single agent by slug, e.g. "librarian" or
"metis". Empty string (default) returns all agents.
Returns:
A text block listing the matching runs (run_id, agent, task summary,
status, timestamp, token counts, model).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| since | No | ||
| agent_slug | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |