Complete or reopen tasks
complete_tasksMark tasks or subtasks done, or reopen them, in one call. task_ids takes 1 to 100 ids and may mix top-level tasks and subtasks, but every id must be in the list given by list_id; duplicate ids are ignored. completed defaults to true; pass false to reopen. Completing a parent task also completes all of its subtasks, but completing a subtask does not complete its parent, and reopening a parent does not reopen its subtasks. A task that is already in the requested state is left as it is, so repeating the call is harmless. All-or-nothing: if any id is not in that list, the call returns an error naming the missing ids and nothing is changed. Returns the affected tasks as they are now, in the order given. To change anything else about a task use update_task, and to remove tasks use delete_tasks.
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": {
"list_id": "<list_id>",
"task_ids": "<task_ids>"
},
"name": "complete_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | Id of the list that holds all of the tasks, from list_lists | |
| task_ids | Yes | Ids of the tasks or subtasks to change, from get_list. 1 to 100, all in list_id; duplicates are ignored | |
| completed | No | true marks them done (the default); false reopens them. Reopening a parent does not reopen its subtasks |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | The affected tasks as they are now, in the order the ids were given |