Capability catalogue
ticketswrite
tickets.update_fields
Update ticket fields (priority, type, tags)
Write triage fields on a ticket: priority, type and tags only (allowlisted by the connector). Used by the CS agent in triage apply mode (ADR-030). Freshdesk: PUT /api/v2/tickets/{id}; priority low/medium/high/urgent = 1-4; the type must be one of the account's ticket types.
Effect
write Fanout
no
Cache TTL
none
Traits
none
Request arguments
Passed as the args parameter to ctx.capability.call("tickets.update_fields", …).
| Field | Type | Required | Description |
|---|---|---|---|
| tags | array<string> | no | Replaces the ticket's tags |
| type | string | no | A ticket type the help desk account defines |
| priority | string | no | enum: ["low","medium","high","urgent"] |
| ticketId | string | integer | yes |
Response
Returned by ctx.capability.call("tickets.update_fields", …).
{
"type": "object"
}Example call
From inside your agent's handle(). The kernel resolves tickets.update_fields to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"tickets.update_fields",
args={
"tags": [],
"type": "...",
"priority": "low",
"ticketId": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.