get_tasks
Retrieve tasks for a specific goal with flexible options for subtask inclusion, task filtering, and detail level control.
Instructions
Get tasks for a goal. Task IDs use a dot-notation (e.g., "1", "1.1", "1.1.1"). When includeSubtasks is specified, responses will return hierarchical task objects. Otherwise, simplified task objects without createdAt, updatedAt, or parentId will be returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goalId | Yes | ID of the goal to get tasks for (number) | |
| taskIds | No | Optional: IDs of tasks to fetch (array of strings). If null or empty, all tasks for the goal will be fetched. | |
| includeSubtasks | No | Level of subtasks to include: "none" (only top-level tasks), "first-level" (top-level tasks and their direct children), or "recursive" (all nested subtasks). Defaults to "none". | none |
| includeDeletedTasks | No | Whether to include soft-deleted tasks in the results (boolean). Defaults to false. |