Reply to a Pending Worker Permission or Input Request
zcode_replyAnswer a waiting_input task's pending interaction, such as allowing or denying a permission, approving a plan, or supplying requested user input, so the ZCode worker resumes and continues its coding task.
Instructions
Answer a waiting_input task's pending interaction (permission allow/deny, plan approval, or user input answers) so ZCode resumes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>"
},
"name": "zcode_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional explanation when denying a permission or declining a request. | |
| answers | No | Question-to-answer map for user-input prompts. | |
| task_id | Yes | Task ID currently in waiting_input state. | |
| decision | No | Decision for permission prompts ('allow' or 'deny'). | |
| request_id | No | Optional when the task has exactly one pending interaction. | |
| approve_plan | No | Set true/false for plan approval interactions. |