List an agent's tool runs
list_tool_runsList an agent's tool runs
Every time the agent's AI used a tool, across every tool, newest first: a custom API
tool, a Google Sheets or Calendar operation, a Shopify lookup, the built-in lead capture.
Each run names the tool as it was then (tool.provider, tool.operation),
how it went (status, error, duration_ms), the conversation it ran in and the ad that
conversation came from (ad_id, the same ad as the conversation's latest_ad_id at that
moment). Filter by tool_id, provider, operation, status,
conversation_id, ad_id, or a window on ran_at with since and before. A list
filtered by provider, operation, status or conversation_id covers the last 90 days
of runs before before or now; send since for an older window (tool_id and ad_id
have no such limit). The list leaves out what was sent and received; getToolRun has both. A run of a tool that has
since been deleted keeps its provider and operation but has no tool.name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | No | Only runs in conversations whose latest touch was on this ad when the run happened. | |
| limit | No | Page size, 1 to 100 (values outside are clamped). Default 20. | |
| since | No | Only runs at or after this instant. | |
| before | No | Only runs before this instant. | |
| cursor | No | Opaque cursor from the previous page's `next_cursor`. Omit for the first page. A cursor the API didn't return is `422 invalid_request`. | |
| status | No | Only runs in this state: `pending`, `success` or `failed`. | |
| tool_id | No | Only runs of this tool (a custom API tool's id, or any tool's id as the dashboard shows it). | |
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. | |
| provider | No | Only this provider: `google_sheets`, `google_calendar`, `shopify`, `custom_api` (a custom API tool), `custom` (an older API call or webhook) or `mojeeb` (the built-in lead capture). | |
| operation | No | Only this operation, such as `add_row`, `create_event` or `lead_capture`. | |
| conversation_id | No | Only runs in this conversation. |