Await human decision
await_decisionCreate a human-in-the-loop review on the live artifact. Default options: Approve / Request changes / Reject. Reviewers see a Review required chip → modal. Request changes is non-terminal: webhook or poll returns changes_requested, then call continue_decision after regenerating. Optional timeoutSeconds and maxIterations (default 5). If the page has interactive controls (sliders/forms), the hatch HTML MUST expose window.VR_HITL_GET_SETTINGS so the review can attach those assumptions as JSON. When the user integrates n8n, Temporal, CI, or any external workflow, pass webhookUrl (MCP opens the review; the platform POSTs each transition to that URL — prefer webhook over poll_decision for automation). See PARTNER-WEBHOOKS.md for event payloads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Modal heading (default: Finish your review). | |
| options | No | Radio choices (default Approve, Request changes, Reject). Labels are classified into approve / reject / changes_requested. | |
| tenantId | Yes | ||
| contextUrl | No | ||
| webhookUrl | No | HTTPS URL that receives a POST on every HITL transition (decision.resolved, decision.changes_requested, timeout, etc.). Prefer this over poll_decision when wiring n8n, Temporal, or other automation — MCP creates the review; the webhook delivers the outcome. Full payload: PARTNER-WEBHOOKS.md. | |
| agentOutput | No | Optional seed of the agent’s current output into the conversation transcript. | |
| sessionToken | No | ||
| maxIterations | No | Max review rounds (default 5). Requesting changes at the last iteration fails with max_iterations_exceeded. | |
| timeoutSeconds | No | Wall-clock timeout for this review round; omit for no timeout. |