build_replace_project
Destructive: completely replaces a dev-mode project's app and wipes its data (credentials, API keys, namespace and tenant are kept). Domain-admin credentials only; refused when mode='live'; confirm_project_name has to equal the project's name. When files are passed they are validated first (a bad bundle wipes nothing) and published afterwards; without files it only wipes, and build_publish follows.
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": {
"project_uuid": "<project_uuid>",
"confirm_project_name": "<confirm_project_name>"
},
"name": "build_replace_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional new bundle {path: content} to publish after the wipe. | |
| force | No | Wipe and publish despite SOFT validation errors (default false). Never overrides a wrong/absent schema namespace, a JavaScript syntax error or schemas the platform refuses: those are refused before anything is wiped. | |
| app_type | No | Default 'web'. | |
| files_ref | No | For a LARGE bundle that exceeds the model output-token cap: a file_id from build_stage_bundle (upload the gzip(json {path:content}) blob out-of-band, then pass its file_id here). Preferred over files/files_b64gz when the bundle will not fit inline. | |
| files_b64gz | No | Alt to files: base64(gzip(JSON {path:content})). Use if a CDN/WAF blocks raw code in the body. | |
| project_uuid | Yes | Project UUID (from build_list_projects or build_create_project). | |
| confirm_project_name | Yes | Must equal the project's name — a safety confirmation. |