A2H: ask a human

v0.3.0
io.github.AndreaAcanfora/a2h-gateway Checked 3 days ago Published 26 days ago

Ask 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.

ParameterTypeDescription
fields *null | arraythe answers you need, at least one
question *stringwhat you need and why
timeout_minutesintegerminutes the human has to answer (default 30, max 1440)
titlestring
wait_secondsnull | integerhow 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.

ParameterTypeDescription
interaction_id *string
wait_secondsnull | integercheck_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.

ParameterTypeDescription
interaction_id *string
wait_secondsnull | integercheck_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.

ParameterTypeDescription
message *string
titlestring
topicstringreceipt, 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.

ParameterTypeDescription
question *stringwhat 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_passkeybooleanrequire the human to confirm with a passkey; use for payments and other high-stakes actions
timeout_minutesintegerminutes the human has to answer (default 30, max 1440)
titlestringshort title for the notification
wait_secondsnull | integerhow long this call waits for the answer (default and maximum set by the server); 0 returns at once
whystringwhy you need this and what happens if approved; mention anything irreversible