reopen_task
Reopen a completed Todoist task by providing its ID to restore it to an active status for continued management.
Instructions
Reopen a completed task.
Args:
task_id: The ID of the task to reopen
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": {
"task_id": "<task_id>"
},
"name": "reopen_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- todoist_mcp/server.py:209-219 (handler)MCP tool handler and registration for 'reopen_task'. Calls the TodoistClient's reopen_task method after checking client availability and returns success message.
@mcp.tool() async def reopen_task(task_id: str) -> str: """Reopen a completed task. Args: task_id: The ID of the task to reopen """ _check_client() await todoist_client.reopen_task(task_id) return f"Task {task_id} reopened successfully!" - todoist_mcp/client.py:146-148 (helper)TodoistClient helper method that makes the Todoist API POST request to /tasks/{task_id}/reopen to reopen the task.
async def reopen_task(self, task_id: str) -> None: """Reopen a completed task.""" await self._request("POST", f"/tasks/{task_id}/reopen")