Approve spending credits
approve_spendingRecords that the USER approved spending credits: valid until that total is spent, for up to 6 hours (a whole batch of tracks fits in one yes); generate_sounds, generate_voice, generate_music and sounds_for_folder refuse without it. Call it ONLY after you showed the user the whole plan with the total cost ("Posso gerar por créditos? Você tem .") and the user explicitly said yes to THAT cost in their last message. Never call it on your own, never because the user asked for a game or said 'do everything' before seeing the cost. credits = the total the user approved (it replaces any earlier approval).
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": {
"credits": "<credits>",
"plan": "<plan>",
"user_reply": "<user_reply>"
},
"name": "approve_spending"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | What you asked the user to approve (the events, variations and durations). | |
| credits | Yes | The total the user approved. | |
| user_reply | Yes | The user's own words saying yes, copied exactly. |