Capability catalogue
customersread
customers.recent_tickets
Recent tickets for a customer
Last N tickets for a customer (closed or open), newest first. Powers the "previous tickets" rail in the customer context panel.
Effect
read Fanout
no
Cache TTL
600s
Traits
none
Request arguments
Passed as the args parameter to ctx.capability.call("customers.recent_tickets", …).
| Field | Type | Required | Description |
|---|---|---|---|
| string | no | Fallback lookup key when customerId is not the ticket-system's native requester id format: email | |
| limit | integer | no | default: 5 · min: 1 · max: 20 |
| customerId | string | no |
Response
Returned by ctx.capability.call("customers.recent_tickets", …).
Array; each element is an object with the following fields.
| Field | Type | Required | Description |
|---|---|---|---|
| status | string | yes | |
| subject | string | yes | |
| closedAt | string | no | format: date-time |
| ticketId | string | yes | |
| createdAt | string | yes | format: date-time |
| resolutionSummary | string | no | One-line summary — connector may synthesise from the last agent reply if not provided natively |
Example call
From inside your agent's handle(). The kernel resolves customers.recent_tickets to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"customers.recent_tickets",
args={
"email": "...",
"limit": 5,
"customerId": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.