taskUncomplete
Revert a completed task to an incomplete status using Routine's task management system by specifying the task ID.
Instructions
Uncomplete a task.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/tools.ts:835-861 (registration)Registration of the 'taskUncomplete' MCP tool, including inline Zod schema for input (task ID) and the handler function that proxies to the backend RPC 'task.uncomplete'."taskUncomplete", "Uncomplete a task.", { /* {"$id":"#task-id","$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ id: z.string(), }, async ({ id }) => { try { const data = await sendRpcRequest("task.uncomplete", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.uncomplete: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );
- src/tools.ts:842-860 (handler)The handler function executes the tool logic by sending an RPC request to 'task.uncomplete' with the task ID and returns the JSON response or an error message.async ({ id }) => { try { const data = await sendRpcRequest("task.uncomplete", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.uncomplete: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
- src/tools.ts:838-841 (schema)Zod schema for the input parameter 'id' which is a string representing the task ID./* {"$id":"#task-id","$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ id: z.string(), },