cozi_remove_item
Delete items from Cozi shopping and todo lists using list and item IDs. This action permanently removes selected items from your family organizer lists.
Instructions
Remove/delete an item from a Cozi list. This permanently deletes the item.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | The ID of the item to remove | |
| listId | Yes | The ID of the list containing the item |
Implementation Reference
- src/tools.ts:172-178 (handler)The handler for the 'cozi_remove_item' tool inside the executeTool function. It calls CoziClient.removeItem with list_id and item_id, then returns a success message.case 'cozi_remove_item': { await client.removeItem(args.list_id, args.item_id); return { success: true, message: 'Item removed from list', }; }
- src/tools.ts:62-75 (schema)Input schema definition for the cozi_remove_item tool, specifying list_id and item_id as required string parameters.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 remove', }, }, required: ['list_id', 'item_id'], },
- src/tools.ts:59-76 (registration)Registration of the cozi_remove_item tool in the COZI_TOOLS array, including name, description, and input schema.{ name: 'cozi_remove_item', description: 'Remove an item from a Cozi list', 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 remove', }, }, required: ['list_id', 'item_id'], }, },
- src/cozi-client.ts:51-55 (helper)The CoziClient.removeItem method, which performs the actual API DELETE request to remove the specified item from the list.async removeItem(listId: string, itemId: string): Promise<void> { await this.request(`/${this.accountId}/list/${listId}/item/${itemId}`, { method: 'DELETE', }); }