Search Tasks
search_tasksSearch tasks within a date range using filters for user, contact, and completion status. Returns complete task details, or use count_only for quick totals.
Instructions
Search for tasks within a date range. Use this tool to find tasks by date, user, contact, or completion status.
RETURNS FULL DATA: Each result includes all task fields (name, due date, description, completion status, linked contact, etc.) - no need to call get_task afterward.
Required: start_date, end_date. Supports filtering by completion status (Both, Incomplete, Complete). Supports name-based user filter: use user_name_filter instead of user_filter. Use count_only=true for accurate counts on large datasets without returning the full result set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination | |
| end_date | Yes | End of date range (YYYY-MM-DD) | |
| contact_id | No | Filter by contact ID | |
| count_only | No | When true, auto-paginates and returns only total count and breakdowns (no results array). Use for accurate counts on large datasets. | |
| start_date | Yes | Start of date range (YYYY-MM-DD) | |
| max_results | No | Max results (default 500, max 10000) | |
| user_filter | No | Filter by user IDs. Mutually exclusive with user_name_filter. | |
| sort_direction | No | ||
| user_name_filter | No | Filter by user names (case-insensitive, auto-resolved to IDs). Mutually exclusive with user_filter. | |
| completion_status | No | Filter by completion (default: Both) |