respond_approval_request
Approve or reject one exact pending action request with owner validation and stale, duplicate, or expired answer protection.
Instructions
Reserve approve/reject for one exact action, with stale/duplicate answer protection.
Only the authoritative root interaction owner can answer; workers/orchestrators cannot self-approve. interaction_owner="monitor" is refused on this MCP caller channel: the Monitor answers through harflow-ctl, and every MCP decision is recorded as a caller decision. Approval preserves exact original input and never installs permission suggestions or reusable grants. Reservation, local pipe delivery and observed tool outcome are separate states. No ambiguous decision is automatically resent. A request unanswered after 1800 seconds, or at an earlier workflow attempt deadline, is rejected by Harflow (approval_expired) and never approved; a stale or expired answer fails. There is no approve-later path after a denial or expiry. Recovery is always a new resume_task or continue_task execution of the finished task, and what to change follows the denied entry's denial_remedy: allowed_commands covers only Bash approval_required and chained_command parts; a denied or expired Read, Write or Edit needs a resumed run (caller_approvals and caller_write_approvals are inherited) so the agent can raise a fresh request; path_safety and outside_working_directory go through caller approvals, not grants; a deny_rule cannot be lifted by grants. Messages and resume are never decisions.
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>",
"request_id": "<request_id>",
"action_digest": "<action_digest>",
"owner_revision": "<owner_revision>",
"decision": "<decision>"
},
"name": "respond_approval_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| decision | Yes | ||
| request_id | Yes | ||
| action_digest | Yes | ||
| owner_revision | Yes | ||
| interaction_owner | No | caller |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||