set_thread_attributes
Replace a thread's task attributes in full to define work type, routing engine, threat-model flag, repo, acceptance criteria, and related metadata so tasks are routed and reviewed correctly.
Instructions
Replace a thread's task attributes in full. The kind says what sort of work it is (change, plan or review), the engine says who or what it is routed to (unattended, session or human), and threat_model marks work that needs a threat model. A claim_next that names an engine takes only work routed to that engine, so an unattended worker is never handed session or human work. A thread nobody described reads as a change with no engine and no threat model.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"thread_id": "<thread_id>",
"kind": "<kind>"
},
"name": "set_thread_attributes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| lane | No | the service lane it may run in: batch (async, cheapest) or flex; omitted runs at standard rates | |
| repo | No | the repository the task changes, as owner/name (a GitHub URL is read as its owner/name); with linear_issue it says which half of a ticket the thread owns, where a workspace keeps [linear_issue, repo] unique | |
| size | No | ||
| tier | No | the change's review tier; omitted reads as B in the metrics | |
| engine | No | omit to leave the work unrouted | |
| thread_id | Yes | ||
| acceptance | No | how a reviewer verifies the task; the worker must satisfy it | |
| linear_issue | No | the Linear issue the task is for, such as ENG-123; where the workspace turned claim comments on, the claim and release are said on it | |
| threat_model | No | ||
| author_family | No | for a review: the provider family that wrote the change under review; claim_next never hands the thread to a claimer of that family. Once set it is kept: a later set neither clears nor changes it |