src/mcp/tools/ inside the dotbot install, and no registration is required. Tasks flow through a defined lifecycle: todo → in-progress → done. Side states needs-input, needs-review, failed, skipped, and cancelled handle paused work, human review gates, errors, unnecessary tasks, and permanent stops.
Creation
task_create
Creates a single new task in the todo queue. The runtime owns schema validation, ID generation, atomic write, and activity-log emission. Required: name.
Task type. One of
prompt, prompt_template, script, mcp, task_gen. Non-prompt types are non-LLM and still run inside the workflow worktree.When
true, the agent must call task_mark_needs_review instead of setting status to done when finishing the task. The work then waits for human approval via task_submit_review.task_create_bulk
Creates multiple tasks at once from a roadmap or specification. Accepts the same per-task fields as task_create, plus planning-specific extension fields. When called from inside a workflow task, new tasks inherit the current WorkflowRun provenance unless explicit provenance is supplied. Required: tasks (array of task objects, each requiring name).
Array of task objects. Each object supports all the same fields as
task_create, plus the following planning-specific fields stored under extensions.workflow:steps(array of strings) - Implementation or test steps.group_id(string) - Source task group ID (e.g.grp-1) linking the task back to its planning group.applicable_decisions(array of strings) - Decision IDs that constrain this task.human_hours(number) - Estimated hours without AI assistance. Used in cost reporting.ai_hours(number) - Estimated hours with AI assistance. Used in cost reporting.
Retrieval
task_get
Reads a single task by its canonical ID. Required: task_id.
task_get_next
Returns the next runnable task. The runtime selects the highest-priority task matching the requested status, optionally scoped to a WorkflowRun.
task_get_context
Returns the runtime context bundle for a task: the task record, parent WorkflowRun, single-session task standard, and same-task handoff resume context. Called at the start of execution to load everything the agent needs for a task in a single call. Required: task_id.
task_list
Lists tasks with optional filtering by status, WorkflowRun, or workflow name.
Filter by status. One of
todo, in-progress, needs-input, needs-review, done, failed, skipped, cancelled.Metadata updates
task_update
Updates a task’s non-status metadata. Only the fields you supply are changed; all other fields retain their current values. Use task_set_status for all status changes - the runtime rejects status, id, schema_version, created_at, and completed_at here. Required: task_id.
Namespaced task metadata. The
runner namespace holds structured pending questions for human input. Each question requires question and options (2-5 items with key and label), and optionally context, multi_select, and recommendation.State transitions
All status changes go throughtask_set_status. The runtime enforces the closed transition table below and returns 422 invalid transition if the requested move is not permitted.
Task statuses
Allowed transitions
task_set_status
Transitions a task to a new status. The runtime performs all side effects for the target status: done runs verification hooks (gitleaks, framework integrity, commit info) and closes the provider session; failed archives diagnostic state and emits a notification; needs-input writes a task-scoped handoff for the next same-task session attempt. Required: task_id, status.
New status. Must be one of the values in the table above. The runtime enforces the transition table and returns
422 invalid transition when the move is not allowed.Review
task_mark_needs_review
Parks a completed task pending human review. Call this instead of task_set_status(needs-review) when the task’s extensions.review.required flag is true - it captures the pending commit SHA atomically alongside the status transition. Required: task_id.
task_submit_review
Submits a human review decision for a task in needs-review status. Approving merges the task worktree and transitions to done after verification gates. Rejecting discards the worktree, appends reviewer feedback to extensions.review.feedback, and returns the task to todo for rework. Required: task_id, approved.