agent_activity_query
Retrieve and inspect recent agent activity logs for a team, including tool names, durations, and I/O summaries. Filter by agent or team to audit performance and troubleshoot workflows from a compact, timestamped record view.
Instructions
Query Agent activity records for a team.
Returns recent activity log entries sorted by timestamp descending, including tool name, duration_ms, and an I/O summary.
Default response is a COMPACT projection (view="compact" + hint - trimmed, NOT missing fields): input/output summaries are excerpted because the raw output_summary often holds a whole command transcript (a 60-row window measured 43.9k chars, right at the MCP result ceiling). Full records via fields="all". The compact window is capped at 50 rows - narrow with agent_id rather than widening limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of records to return, default 20 (compact view caps it at 50) | |
| fields | No | "compact" (default, excerpted I/O) / "all" (full records) | compact |
| team_id | No | Team ID or name (optional, auto-uses active team if empty) | |
| agent_id | No | Filter by a specific Agent ID (optional, returns all agents if empty) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||