Capability catalogue
ticketsread
tickets.get_by_id
Get a ticket including thread history
Fetch full ticket including the message thread. Each thread entry carries its externalMessageId (dedup key) and isPrivate (internal note flag).
Effect
read Fanout
no
Cache TTL
120s
Traits
mirror_source
Request arguments
Passed as the args parameter to ctx.capability.call("tickets.get_by_id", …).
| Field | Type | Required | Description |
|---|---|---|---|
| ticketId | string | yes |
Response
Returned by ctx.capability.call("tickets.get_by_id", …).
| Field | Type | Required | Description |
|---|---|---|---|
| to | string | no | |
| from | string | no | |
| status | string | yes | |
| thread | array<object> | no | |
| subject | string | yes | |
| threadId | string | yes | Stable id used for workflow dedup — same thread always same id |
| ticketId | string | yes |
Example call
From inside your agent's handle(). The kernel resolves tickets.get_by_id to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"tickets.get_by_id",
args={
"ticketId": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.