Finish an approved action
confirm_spendOnly after an Ania tool returned an approval link (approvalId) and the user says they clicked "Approve spend" on avatar.diatech.solutions: checks the approval with Ania and runs the action (avatar creation, adjustment, wake-word training, marketplace purchase…). If it is not approved yet, nothing happens.
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": {
"approvalId": "<approvalId>"
},
"name": "confirm_spend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | The user's language as a BCP-47 tag (e.g. 'en', 'en-US', 'pt-BR', 'es'). Replies and prices follow it. | |
| approvalId | Yes | The approvalId returned with the link. |