Answer an agent's approval card
answer_agent_approvalAnswer a deployed agent's approval card to allow one call, always permit an action, or decline it; confirm only after the user responds.
Instructions
Answer a deployed agent's approval card. When the agent calls a Connector action whose permission is Ask (by default every Create and send and Change and delete action in chat), the action does not run: Wiro shows a card with the exact request, and the agent waits for a person's answer. send_agent_message, get_agent_message and get_agent_conversation list these cards under approvals, with messageguid and cardid, and get_agent_connector_permissions lists the ones a scheduled task or the agent's own work asked for. answer allow runs this one call once; always runs it and also lets the action run without asking from now on, in the columns that ask for it now (a column set to Block stays blocked, and an action the connector has not listed yet is allowed only this once), and needs an agent admin: the person who deployed the agent or a team admin of its team; decline turns down this one call, and the next call asks again. Without confirm it shows the card, its request and what the answer does, and changes nothing: show it to the user and ask. With confirm: true, only after the user answered, it answers. After an approval the agent goes on in a new turn of the chat the card is in, and get_agent_message with the returned message id reads its answer. A yes or no the user types in the agent's chat answers a card too. A card waits 24 hours, and an approval is used within an hour. Studio and the Workflow Agent never ask.
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": {
"agent": "<agent>",
"messageguid": "<messageguid>",
"cardid": "<cardid>",
"answer": "<answer>"
},
"name": "answer_agent_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | The deployed agent's guid, from list_my_agents. | |
| answer | Yes | allow (this call once), always (this call, and the action runs without asking from now on; an action the connector has not listed yet is allowed only this once; agent admins only) or decline (turn down this call). | |
| cardid | Yes | The card's id: cardid of the approval. | |
| confirm | No | false (default) shows the card and what the answer does, and changes nothing. true answers it: set it only after the user answered. | |
| messageguid | Yes | The message the card is on: messageguid of the approval, from send_agent_message, get_agent_message, get_agent_conversation or get_agent_connector_permissions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| answer | Yes | ||
| cardid | Yes | ||
| resume | No | ||
| message | Yes | ||
| outcome | Yes | preview: the card is shown and nothing changed. answered: Wiro took the answer. not_waiting: the card was already answered or expired. refused: Wiro did not take the answer, for the reason in message. | |
| summary | No | Wiro's summary of the answer, such as "Allowed once." | |
| approval | No | The card, as it is now. | |
| nextAction | No | ||
| messageguid | Yes | ||
| permissions | No | After always: the action's permissions in Chat and Autopilot now. |