A2H: ask a human
v0.3.0Ask a human before acting: approvals by email, Telegram or push, signed answers, passkeys.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ask_human Ask the human for information
Ask the human to fill in a short form (text, numbers, dates, choices). Blocks until they answer or wait_seconds pass.
| Parameter | Type | Description |
|---|---|---|
fields * | null | array | the answers you need, at least one |
question * | string | what you need and why |
timeout_minutes | integer | minutes the human has to answer (default 30, max 1440) |
title | string | |
wait_seconds | null | integer | how long this call waits for the answer; 0 returns at once |
cancel_request Cancel a request
Withdraw a request that the human has not answered yet, so that it can no longer be approved.
| Parameter | Type | Description |
|---|---|---|
interaction_id * | string | |
wait_seconds | null | integer | check_request only: how long to wait for an answer; 0 (default) returns at once |
check_request Check a request
Get the state of an earlier request_approval or ask_human, optionally waiting for the answer.
| Parameter | Type | Description |
|---|---|---|
interaction_id * | string | |
wait_seconds | null | integer | check_request only: how long to wait for an answer; 0 (default) returns at once |
notify_human Notify the human
Send the human a short message (progress, result, alert). Does not wait for an answer.
| Parameter | Type | Description |
|---|---|---|
message * | string | |
title | string | |
topic | string | receipt, progress, alert, result or exception |
request_approval Request approval from the human
Ask the human to approve or decline an action before you take it. Blocks until they answer or wait_seconds pass. Returns decision APPROVE or DECLINE with a verified, signed record of who decided. Proceed only on APPROVE.
| Parameter | Type | Description |
|---|---|---|
question * | string | what you want to do, as a yes/no question the human can decide on its own, e.g. Delete the 3 unused S3 buckets listed below? |
require_passkey | boolean | require the human to confirm with a passkey; use for payments and other high-stakes actions |
timeout_minutes | integer | minutes the human has to answer (default 30, max 1440) |
title | string | short title for the notification |
wait_seconds | null | integer | how long this call waits for the answer (default and maximum set by the server); 0 returns at once |
why | string | why you need this and what happens if approved; mention anything irreversible |