Render ad (spends credits, requires confirmation)
render_adFirst call with adId to get the real credit quote without spending. Show the user the cost and ask for approval. Only then call again with confirm: true and expectedCredits equal to totalCredits from the quote. A changed quote requires approval again. Uses the studio's paid render service; check progress and finish/export in the results URL.
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": {
"adId": "<adId>"
},
"name": "render_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adId | Yes | The ad's id, from list_ads or generate_ad_script. | |
| confirm | No | True only after the user approves the quoted credit cost. | |
| expectedCredits | No | The exact totalCredits the user approved. |