get_next_task
Fetch and activate the next pending task from a project's work queue, returning its details, acceptance criteria, and PRD context to resume work. Use at session start to pick up where you left off.
Instructions
Get the next pending task for a project and mark it active.
Fetches the lowest-sequence pending task from the project_tasks queue, sets its status to 'active', and returns the task details plus a brief from the linked PRD memory.
NOTE: project_tasks is a structured work queue — separate from recall_memories todos. Tasks are created explicitly via the task management workflow, not auto-populated from saved conversations. If this returns "no pending tasks", the project queue is empty — use recall_memories to find work items in saved conversations instead.
Call this at the start of a work session to pick up where you left off. When done, call complete_task({ task_id, verification_summary }) to close the loop.
RETURNS:
task.id — use this in complete_task
task.sequence — task order number
task.title — what to do
task.description — how to do it
task.acceptance_criteria — how to know it's done
task.context_brief — first 500 chars of the PRD for context
task.total_remaining — pending tasks left (including this one)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | The project name to fetch the next task for (e.g. "purmemo") |