Complete Manual Task
complete_manual_taskCompletes a single manual task after explicit human approval, letting the waiting workflow job or agent proceed; preview first because completion is irreversible.
Instructions
DESTRUCTIVE: complete a single manual task (work item).
IMPORTANT: completing a manual task is IRREVERSIBLE and cannot be retried. It lets the waiting job or agent session proceed. The platform records the completion against the MCP service account or OAuth client, NOT against the person who asked; there is no per-user authorization, so the human's own entitlements are not checked. ASK THE HUMAN before calling this tool with confirm=True, showing them the preview (task, finish state and warnings) first. Never complete a task the human has not explicitly approved, and never complete tasks in bulk: this tool acts on exactly one work_item_id. Use describe_manual_task to present the task (header, message, body and the button labels) to the human before asking them to decide.
Call it first with confirm=False (the default) to get a preview; no change is made. Call it again with confirm=True only after the human approves.
Valid finish states are the literal strings "success" and "failure" (they are not button labels like "Continue" or "Approve"). "success" is always valid. "failure" is only valid when the task has a failure button (a non-empty btn_failure in describe_manual_task); the platform does not check this itself, and a failure on a success-only task sends the job to an error state. Only ViewData, ViewHTML and InteractiveHTML tasks are supported; form tasks (RenderJsonSchema, viewTemplateResults) must be completed in the Itential UI.
"success" is the task's main button, not necessarily "approve": it is whatever the workflow author labeled it ("Continue", "Approve", "Validate", ...), and on ViewData and ViewHTML tasks it only means "continue", as there is no decision. "failure" is the second button ("Deny", "Reject", "Cancel") and what it does is defined by the workflow or agent author (a job follows its failure transition; an agent may report the task cancelled). Read the human's answer against the button labels from describe_manual_task and map it to success or failure. Never assume success is the default and never decide on the human's behalf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be True to actually complete the task. When False (default) nothing changes and a preview is returned. Only set True after the human has explicitly approved the preview. | |
| variables | No | Optional variables to submit with the completion. Normally empty for ViewData, ViewHTML and InteractiveHTML tasks. | |
| finish_state | Yes | How to finish the task: the literal string 'success' or 'failure'. These are not button labels. 'success' is the task's main button (not necessarily 'approve'); 'failure' is the second button and is only valid when describe_manual_task shows a non-empty btn_failure. | |
| work_item_id | Yes | The work item ID of the manual task to complete (the work_item_id from describe_manual_task). Exactly one task. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |