log_habit
Record a habit completion in Lilt for today or backfill a past date. Identify the habit by id or name, and optionally set the day's total count.
Instructions
Log a habit completion in Lilt — today by default, or a past date to backfill. Identify the habit by id or name. Omit count to add one completion; pass count to set that day's total exactly (0 clears it).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "log_habit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Habit id or unique prefix (see list_habits). | |
| date | No | Day to log. Default today. | |
| name | No | Habit name — exact or unique partial match. | |
| count | No | Set the day's count to exactly this. |