score_checklist_item
Toggle a checklist item between complete and incomplete by specifying the task ID and item ID. Use this to mark progress on subtasks within a Habitica task.
Instructions
Toggle a checklist item complete/incomplete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ||
| itemId | Yes |
Implementation Reference
- index.js:202-213 (registration)Registration of the 'score_checklist_item' tool with its name, description, and inputSchema (taskId, itemId).
{ name: "score_checklist_item", description: "Toggle a checklist item complete/incomplete.", inputSchema: { type: "object", properties: { taskId: { type: "string" }, itemId: { type: "string" }, }, required: ["taskId", "itemId"], }, }, - index.js:417-420 (handler)Handler function for score_checklist_item. Calls the Habitica API POST endpoint to toggle a checklist item's completion status.
score_checklist_item: async ({ taskId, itemId }) => { await api("POST", `/tasks/${taskId}/checklist/${itemId}/score`); return ok(`Toggled checklist item ${itemId}.`); },