Capability catalogue
thread_mirrorinternal
thread_mirror.register
Register a thread mirror sync job
Register a sync job so the platform's ThreadMirrorService (ADR-024) mirrors an external threaded conversation into the reviewer inbox. Called by agents at install time (or dynamically — e.g. CS agent registers one per ticket started). Returns a mirrorJobId for subsequent management calls.
Effect
internal Fanout
no
Cache TTL
none
Traits
none
Request arguments
Passed as the args parameter to ctx.capability.call("thread_mirror.register", …).
| Field | Type | Required | Description |
|---|---|---|---|
| cadenceTier | string | no | default: "active" · enum: ["active","recent","stale","dormant"] |
| externalRef | string | yes | The external resource id (ticket id, PR number, channel id, …) used in the fetch capability's arg template |
| connectionId | string | yes | format: uuid |
| dedupFieldPath | string | yes | JSONPath to the per-message dedup id in the fetch capability's response |
| webhookEnabled | boolean | no | default: false |
| fetchCapability | string | yes | Key of a capability tagged mirror_source |
Response
Returned by ctx.capability.call("thread_mirror.register", …).
| Field | Type | Required | Description |
|---|---|---|---|
| webhookUrl | string | no | Generated webhook URL for this job — operator copy-pastes into the external vendor's admin console if webhookEnabled is true |
| mirrorJobId | string | yes | format: uuid |
Example call
From inside your agent's handle(). The kernel resolves thread_mirror.register to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"thread_mirror.register",
args={
"cadenceTier": "active",
"externalRef": "...",
"connectionId": "...",
"dedupFieldPath": "...",
"webhookEnabled": false,
"fetchCapability": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.