get_waiting_tasks
Retrieve all waiting tasks from Todoist using a specific filter to access task details like content, due dates, priority, and completion status in structured JSON format.
Instructions
Get all waiting tasks from Todoist using the filter "#Waiting | #Brian waiting | #Ansonia Waiting". Returns structured JSON data with task details including id, content, description, completion status, labels, priority, due date, and comment count.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/task-queries.ts:141-153 (handler)The handler function for the 'get_waiting_tasks' tool. It executes getWaitingTasks() from the service layer, formats the result as JSON string in a content block, and returns it.handler: async () => { console.error('Executing get_waiting_tasks...'); const result = await getWaitingTasks(); console.error('get_waiting_tasks completed successfully'); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; },
- src/tools/task-queries.ts:131-140 (schema)The schema definition for the 'get_waiting_tasks' tool, including name, description, and empty input schema (no parameters required).schema: { name: 'get_waiting_tasks', description: 'Get all waiting tasks from Todoist using the filter "#Waiting | #Brian waiting | #Ansonia Waiting". Returns structured JSON data with task details including id, content, description, completion status, labels, priority, due date, and comment count.', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/handlers/tool-request-handler.ts:66-87 (registration)Registration of the 'get_waiting_tasks' tool handler in the toolsWithoutArgs registry, which maps tool names to their handler functions for dispatch.const toolsWithoutArgs: Record<string, () => Promise<ToolResponse>> = { list_personal_inbox_tasks: listPersonalInboxTasksTool.handler, list_brian_inbox_per_becky_tasks: listBrianInboxPerBeckyTasksTool.handler, list_becky_inbox_per_brian_tasks: listBeckyInboxPerBrianTasksTool.handler, list_next_actions: listNextActionsTool.handler, get_brian_only_projects: getBrianOnlyProjectsTool.handler, get_brian_shared_projects: getBrianSharedProjectsTool.handler, get_becky_shared_projects: getBeckySharedProjectsTool.handler, get_inbox_projects: getInboxProjectsTool.handler, get_context_labels: getContextLabelsTool.handler, get_chores_due_today: getChoresDueTodayTool.handler, get_tasks_due_tomorrow: getTasksDueTomorrowTool.handler, get_tasks_due_this_week: getTasksDueThisWeekTool.handler, get_tickler_tasks: getTicklerTasksTool.handler, list_gtd_projects: listGtdProjectsTool.handler, get_waiting_tasks: getWaitingTasksTool.handler, get_recent_media: getRecentMediaTool.handler, get_areas_of_focus: getAreasOfFocusTool.handler, get_shopping_list: getShoppingListTool.handler, list_brian_time_sensitive_tasks: listBrianTimeSensitiveTasksTool.handler, list_becky_time_sensitive_tasks: listBeckyTimeSensitiveTasksTool.handler, };
- Core helper function getWaitingTasks() that fetches waiting tasks using the predefined WAITING_FILTER via the generic fetchTasksByFilter, transforming and caching results.export async function getWaitingTasks(): Promise<TasksResponse> { return await fetchTasksByFilter(WAITING_FILTER, 'get waiting tasks'); }