update_build_recipe
Replace a build's canonical recipe and graph.
Validates and canonicalizes the complete recipe. The resulting immutable recipe revision is also the console graph's source, so graph changes are visible immediately without a second write.
Topology and test edits do NOT rebuild the image; changes to os.features /
packages / services take effect on the next build_image attempt.
The response reports recipe_hash_before/recipe_hash_after and
changed. changed: false means this call stored the same document
that was already there — it is not a repair, and rebuilding from it
produces the same image.
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": {
"build_id": "<build_id>",
"recipe": "<recipe>"
},
"name": "update_build_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipe | Yes | The COMPLETE updated recipe JSON (or a JSON string). Fetch the current recipe from describe_openfactory_workspace first, modify it, and pass the whole document back — partial recipes will drop the omitted sections. | |
| api_key | No | Your OpenFactory MCP API key (optional) | |
| build_id | Yes | The build/variant whose recipe to replace | |
| version_note | No | Short note describing the change (shown in version history) | |
| session_token | No | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||