Update a task
brain_tasks_updateChange a task's status to running, completed, failed, or cancelled, and optionally record its outcome. Completing dependencies releases blocked tasks; failed or cancelled dependencies mark dependents failed.
Instructions
Change the status of a task and, optionally, record its outcome. Use it to claim a task ("running"), finish it ("completed" or "failed") or withdraw it ("cancelled"). Completing a task releases the tasks that were blocked on it: once all the dependencies of a blocked task are completed it becomes "pending"; if a dependency failed or was cancelled, the dependent task is marked "failed" too. The result text is written to the Final Result section of the task, replacing any earlier result; the prompt and sub-results are kept. Setting the same status again is harmless. Returns { success, id, status, releasedDependents } where releasedDependents counts the blocked tasks that moved. Errors: "Task not found" for an id that is not a task note. Find ids with brain_tasks_list; create tasks with brain_tasks_submit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Task note id: the id field from brain_tasks_list, or the nodeId returned by brain_tasks_submit, e.g. "tasks/Task - Review the migration". | |
| result | No | What was done or why it failed, in markdown. Stored in the Final Result section of the task. Omit to change only the status. | |
| status | Yes | The new state. Use "running" when you start, "completed" or "failed" when you finish. |