chat.reply
Reply in a chat thread
Answer a chat message in its thread where the connector can, otherwise as a new message quoting the original (threaded=false).
writeSlack (threaded, marks the message handled), Microsoft Teams (webhook, not threaded)
The tenant picks one of these when they bind this capability at install time. New implementations land as connectors ship — browse the connector catalogue.
Request arguments
Passed as the args parameter to ctx.capability.call("chat.reply", …).
| Field | Type | Required | Description |
|---|---|---|---|
| body | string | yes | |
| threadId | string | yes | threadId from chat.list_new |
Response
Returned by ctx.capability.call("chat.reply", …).
| Field | Type | Required | Description |
|---|---|---|---|
| ok | boolean | yes | |
| sentAt | string | no | format: date-time |
| threadId | string | no | |
| threaded | boolean | no | false when the connector could only post a new message quoting the original |
| messageId | string | no | |
| markedProcessed | boolean | no | The original message is marked handled so chat.list_new skips it |
Example call
From inside your agent's handle(). The kernel resolves chat.reply to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"chat.reply",
args={
"body": "...",
"threadId": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.