build_doctor
Pre-publish checks for problems build_validate does not catch: the #supero-preloader not removed (app stuck on a spinner), heavy startup seed (Cloud Run port-bind timeout), reserved field names such as status/state (dropped), namespace collisions, and services that need elevated import permission. Inputs: project_uuid and the files (files, files_b64gz or files_ref). Returns findings with fixes. Useful between build_validate and build_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_doctor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Map of {relative_path: file_content}. | |
| 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})). | |
| 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 (enables namespace + collision checks). |