Start build (spends credits)
create_buildTrigger an Android build. Credits deducted immediately: debug=10, starter=50, professional=100. Call get_account first to verify sufficient credits. Response includes estimatedWaitSeconds — use wait_for_build to wait for completion. On 402 insufficient_credits: surface the purchaseUrl from the error to the user. Never auto-retry.
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": {
"siteId": "<siteId>",
"buildTier": "<buildTier>"
},
"name": "create_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | The siteId of the app to build | |
| buildTier | Yes | debug = 10 credits (APK, test only) | starter = 50 (signed AAB) | professional = 100 (all features) |