get_done_items
Retrieve tasks completed on a given date, including those scheduled earlier but finished that day. Fetches recent days to catch all completions, caches results, and flags incomplete coverage.
Instructions
Tasks completed on a given date (doneAt within that day, configured
timezone) — regardless of priority and deadline. Built on the
UNDOCUMENTED endpoint GET /doneItems?date= (missing from the OpenAPI
spec and the wiki; live-tested 2026-08-30, may disappear): it filters
on the task's day, not on doneAt. A past day is kept on completion
both in the app and via the API (the app sets day = today only on
unscheduled and future-dated tasks) — hence the date plus lookback_days
earlier are fetched and everything is filtered on doneAt.
The response always states its coverage: covers_from (= date − lookback)
and days_fetched. On a 429/error the fetch stops: incomplete=true,
days_missing lists the days not fetched and warning explains; the
date's own completions are always included because it is fetched
first. Complete results are cached for 30 minutes (cached=true) —
repeated calls then cost no API calls; mark_done inserts its task into
the cache, delete_task and unmark_done remove theirs. Completions or
deletions made in the app show up only once the cache expires. Not covered: a task with a FUTURE day completed via the API
(it sits under its day). Tasks only — completed projects are not
listed. Items without doneAt (older data) are excluded and counted in
skipped_without_done_at. Sorted by doneAt. Cost: one read call per day
(~3.1 s each in the queue).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date YYYY-MM-DD on which tasks were completed (configured timezone); omit for today | |
| lookback_days | No | Days before the date for which /doneItems is also fetched, to catch tasks scheduled earlier but completed on the date. Each day = one read call (~3.1 s in the queue). Default 7 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||