Get a Wiro agent's usage or activity log
get_agent_activityRead a deployed agent's credit usage and activity logs, including daily events and dates with logs, to monitor spending and diagnose behavior.
Instructions
Read what a deployed agent has done and spent. kind usage returns the credit balance, usage per model for the current period and the credit ledger (charges, renewals, packs and token usage per turn; 100 credits = 1 USD). kind logs returns the activity log for one day, newest first (tool calls, turns, scheduled runs, errors). kind log_dates lists the days that have a log. Logs can be read while the agent is running or in error; for a stopped agent the call says so (start it only if the user agrees). Names and emails of the people who acted are never returned. On a team agent, logs and usage need a team admin or the person who deployed it, and the organization's owner can also read usage; other team members are refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | logs only: the UTC day as YYYY-MM-DD (default today). | |
| kind | No | usage for credits and spending, logs for one day of activity, log_dates for the days that have a log. | usage |
| limit | No | usage only: ledger rows to return (default 50, max 200). | |
| lines | No | logs only: how many of the newest events to return (default 100, max 300). | |
| start | No | usage only: offset into the ledger, newest first (default 0). | |
| agent_guid | Yes | The deployed agent's guid, from list_my_agents or deploy_agent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| logs | No | ||
| usage | No | ||
| logDates | No | ||
| agentGuid | Yes | ||
| nextAction | No |