task_take
Takes a task or bug into work or returns to it (shared team data). The server picks the transition: a draft is published, a task in deployment goes back to work, an "any" stage is assigned to the token owner. A closed task is reopened on the token owner: they become the work assignee, the plan with its AI estimate and the closing resolution are cleared, a bug leaves its version; the approver, reviewer and tester stay. When the user decides that the previous assignee continues the work, their workAssignee is noted before the take; after it come finishing with wait and then a task update setting them as workAssignee. Another employee's stage is refused. Returns the job for the task, the available outcomes, where the task goes on done and on return, the task context and, once per session, the conventions for the work on a task and the memory for the job, unless the product context with the same runKey already delivered it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ID | No | Task ID; preferred over key. | |
| key | No | Task number without #, if the ID is unknown. | |
| run | Yes | Session counters accumulated since its start: runKey (the client session ID), model, usage (input, cacheRead, cacheWrite, output, including subagents), mcps (server to tool to calls), subagents and ms (active time); the snapshot at the start of the work on the task. | |
| localRepositories | No | IDs of the product repositories the task changes (the product's repositories), as in the product context. |