build_publish
Packages and uploads an authored bundle and records a new version under the project. Runs build_validate first; force=true overrides soft errors only. Inputs: project_uuid and the files as {relative_path: content} (files), files_b64gz or files_ref. Returns version_uuid, file_id and download_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": {
"project_uuid": "<project_uuid>"
},
"name": "build_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Map of {relative_path: file_content}. | |
| force | No | Publish despite SOFT validation errors (default false). Validation still runs; a wrong/absent schema namespace, a JavaScript syntax error or schemas the platform refuses always block. | |
| patch | No | Change only some files of base_version instead of re-sending the whole bundle. {path: new_content} replaces or adds a file, {path: null} deletes it, and {path: {"edits": [{"old": "exact text", "new": "replacement"}]}} replaces text inside it (each old must occur exactly once). Paths are app-root relative ('ui/app.js', no app folder). Everything else is taken from base_version, so the patch must hold every change since base_version, not only the latest fix. The merged bundle goes through the same checks as a full one. Use it for every change after the first publish. Do not combine with files/files_b64gz/files_ref. | |
| app_type | No | Default 'web'. | |
| validate | No | Validate before publish (default true). | |
| 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. | |
| base_version | No | With patch: the version_uuid of a version THIS project already published (build_publish and build_get_bundle return it; normally the latest). Its files are the starting point. | |
| project_uuid | Yes | Project UUID (from build_list_projects or build_create_project). |