Update a task
Change a task's title, notes, difficulty, due days or tags.
MCP tool habitica_write → update_task
write
Changes only the fields you send and returns the task as it is now. It reaches no one and a second call puts the old values back, so it does not ask for OK by default.
Parameters
| Name | Type | Description |
|---|---|---|
| task_id string required | string | Task ID from list_tasks. |
| text string | string | New title. |
| notes string | string | New notes. |
| difficulty string | string | One of: trivial, easy, medium, hard. |
| repeat_days string[] | string[] | For a daily: the days it is due. One or more of: mo, tu, we, th, fr, sa, su. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "habitica_write",
"arguments": {
"operation": "update_task",
"arguments": {
"task_id": "task_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"task_id": "b7c1f6a0-3d52-4e1a-9a7e-5d1c0f2e8a11",
"title": "Stretch 15 minutes",
"difficulty": "easy"
},
"isError": false
}