start_build_with_ai
Start an AI build (Coach Pro, spends AI credits, charged only if something is built): WORKOUT_TEMPLATE, DIET_TEMPLATE, CLIENT_WORKOUT_PLAN / CLIENT_DIET_PLAN (need clientId; loaded into an unsaved builder, not assigned), HABITS, CHECKIN_QUESTIONS, PROGRAM (no client is enrolled) or ONBOARDING_FORM (returned as data; the live form is unchanged). Check get_build_with_ai_status for the price first, then poll get_ai_build_job. (confirm-gated: previews until confirm: true)
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": {
"input": "<input>"
},
"name": "start_build_with_ai"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| confirm | No | Must be true to actually execute. If false/omitted, returns a preview only. |