get-anytime
Retrieve tasks from the Anytime list in Things 3. Use this tool to access pending tasks that can be completed at any time, with options to control detail level and limit results.
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:1306-1324 (handler)Registration and handler implementation for the 'get-anytime' tool.
"get-anytime", { 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(getAnytimeTodos(getAllTasks(db)), limit).map((task) => toTaskView(task, requestedDetail) ) ); return buildTextResponse(`Found ${todos.length} anytime todos`, { todos, detail: requestedDetail, limit: limit ?? null, }); } );