build_validate
Validates an authored bundle against the live platform without running it (static AST checks): manifest, syntax, import safety, config exports, schema validity and namespace equal to the project's schema_namespace. Inputs: project_uuid and the files as files, files_b64gz or files_ref. Returns errors and warnings by file and schema. Free; useful before every publish.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Map of {relative_path: file_content} for the bundle. | |
| 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. | |
| 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 | No | Target project (for namespace/schema checks). |