get-today
Retrieve today's tasks from Things 3 with customizable detail levels and quantity limits for efficient daily planning.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Response detail level. Defaults to compact. | |
| limit | No | Maximum number of todos to return |
Implementation Reference
- src/index.ts:1264-1282 (handler)The 'get-today' tool registration and handler implementation. It uses 'getTodayTodos' and 'getAllTasks' helpers to retrieve and process tasks, then returns them as a structured response.
"get-today", { detail: z.enum(["compact", "full"]).optional().describe("Response detail level. Defaults to compact."), limit: z.number().int().positive().optional().describe("Maximum number of todos to return"), }, async ({ detail, limit }) => { const requestedDetail = detail ?? "compact"; const todos = await withDatabase((db) => applyLimit(getTodayTodos(getAllTasks(db)), limit).map((task) => toTaskView(task, requestedDetail) ) ); return buildTextResponse(`Found ${todos.length} today todos`, { todos, detail: requestedDetail, limit: limit ?? null, }); } );