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
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | 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")