Capability catalogue
ordersreadfanout
orders.list_recent
List recent orders
List recent orders, optionally scoped to a single customer and/or a time window.
Effect
read Fanout
yes
Cache TTL
none
Traits
none
Request arguments
Passed as the args parameter to ctx.capability.call("orders.list_recent", …).
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | no | default: 20 · min: 1 · max: 100 |
| sinceIso | string | no | format: date-time |
| customerId | string | no |
Response
Returned by ctx.capability.call("orders.list_recent", …).
Array; each element is an object with the following fields.
| Field | Type | Required | Description |
|---|---|---|---|
| items | array<object> | no | |
| total | number | null | no | |
| status | string | null | no | |
| orderId | string | yes | Customer-facing order number |
| currency | string | null | no | |
| placedAt | string | null | no | format: date-time |
| tracking | array<object> | no | |
| shippedAt | string | null | no | format: date-time |
| customerEmail | string | null | no | For ownership checks only — never shown to a customer |
| fulfilmentStatus | string | null | no |
Example call
From inside your agent's handle(). The kernel resolves orders.list_recent to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"orders.list_recent",
args={
"limit": 20,
"sinceIso": "2026-01-01T00:00:00Z",
"customerId": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.