Task counts
get_task_countsCount OmniFocus tasks by status—total, available, completed, overdue, due soon, flagged, deferred—with optional filters for project, tag, flag, and due dates.
Instructions
Get aggregate task counts with optional filters (project, tag, flagged, date range). Returns total, available, completed, overdue, due soon, flagged, deferred.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter to tasks with this tag (name match) | |
| flagged | No | Filter to flagged (true) or unflagged (false) tasks | |
| project | No | Filter to tasks in this project (name match) | |
| dateMode | No | Date predicates use dates set directly on tasks, or effective dates inherited from parents/projects. Default: direct. | |
| dueAfter | No | Only count tasks due after this date. Bare YYYY-MM-DD is safe: it means local midnight that day | |
| dueBefore | No | Only count tasks due before this date. Bare YYYY-MM-DD is safe: it means local midnight that day | |
| includeProjectRoots | No | Include project root tasks (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | No | ||
| tool | Yes | ||
| success | Yes |