cozi_mark_item_incomplete
Mark items as incomplete in Cozi lists to track pending tasks and shopping items. Unchecks completed items to maintain accurate task status across your family's shared lists.
Instructions
Mark an item as incomplete/not done in a Cozi list. This unchecks the item.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | The ID of the item to mark incomplete | |
| listId | Yes | The ID of the list containing the item |
Implementation Reference
- src/tools.ts:95-112 (registration)Registration of the 'cozi_mark_item_incomplete' tool including its input schema definition in the COZI_TOOLS array.{ name: 'cozi_mark_item_incomplete', description: 'Mark a Cozi list item as incomplete', inputSchema: { type: 'object', properties: { list_id: { type: 'string', description: 'The ID of the list containing the item', }, item_id: { type: 'string', description: 'The ID of the item to mark incomplete', }, }, required: ['list_id', 'item_id'], }, },
- src/tools.ts:188-194 (handler)Handler logic in executeTool function that marks the item incomplete by calling CoziClient.markItem and returns a success response.case 'cozi_mark_item_incomplete': { await client.markItem(args.list_id, args.item_id, false); return { success: true, message: 'Item marked as incomplete', }; }
- src/cozi-client.ts:57-63 (helper)CoziClient helper method that performs the API PUT request to update item status to incomplete (when completed=false).async markItem(listId: string, itemId: string, completed: boolean): Promise<void> { await this.request(`/${this.accountId}/list/${listId}/item/${itemId}`, { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ status: completed ? 'complete' : 'incomplete' }), }); }