upsert_thread
Create or update a finishable work thread to track one independently completable outcome, including status, focus, next steps, and resume details.
Instructions
Create a new finishable work thread or explicitly update one.
One thread should represent one independently finishable outcome, not a
whole project. Pass thread_id when updating a known thread. For routine
checkpoints on active work, prefer upsert_progress so progress notes and
PROGRESS.md stay in sync. Without thread_id, a generated ID may match and
update an existing thread. Updates apply the status and energy defaults;
supplied progress fields clear paused_at. Writes update progress/wiki
files and may sync to a configured forge or refresh scan-line AI.
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": {
"summary": "<summary>"
},
"name": "upsert_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | Finishable outcome; null preserves it on update, empty string clears it. | |
| focus | No | Current focus, whitespace collapsed and truncated to 500 characters; null or blank preserves existing focus. | |
| energy | No | Thread energy: low, medium, high or unknown; defaults to unknown, also when updating. | unknown |
| status | No | Thread state: open, blocked, done or dismissed; defaults to open, also when updating. Prefer lifecycle tools for closure. | open |
| summary | Yes | Required short title for one independently finishable outcome; replaces the title on update. | |
| chat_ref | No | Optional chat/session reference, not transcript contents; null preserves the existing reference. | |
| thread_id | No | Exact ID to update (or create if absent); null derives a stable ID from summary and transcript/path/project, which may match existing work. | |
| next_steps | No | Ordered actions; retains the first 3 nonblank entries, each at most 500 characters. Null preserves; [] clears. | |
| resume_step | No | Concrete first action to open, run or check on return; null preserves it, empty string clears it. Coaching is advisory. | |
| source_tool | No | Optional originating client/tool name for attribution; null preserves the existing source. | |
| project_slug | No | Project identifier; takes precedence over workspace_path and may create a registry entry. Null resolves from path or summary. | |
| blocked_reason | No | Current blocker; null preserves it on update, empty string clears it. Does not set status automatically. | |
| transcript_ref | No | Optional transcript reference, not contents; used in generated thread identity and preserved when null. | |
| workspace_path | No | Optional client workspace folder path used for project resolution and thread identity; retained on update when null. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||