create_build
Create a new build from a recipe.
The recipe defines the base OS, features, packages, and configuration for the Linux image. The build is queued and its worktree prepared; by default YOU drive it from there with your own model -- OpenFactory runs no LLM for it. Call build_image(build_id), then drive its verification session: get_verification_session(build_id=...) names the VM and the claims a platform judge grades. Pass platform_agent=True to hand the build to OpenFactory's goal agent instead (metered platform AI).
By default the build also gets a chat, seeded with prompt (if given) and a
recipe card, and linked so it shows up in the sidebar and opens the build panel.
Pass create_chat=False to suppress that.
Interactive build-terminal agents that need the worktree path use prepare_harness_build instead.
The response includes a session_token — pass it to all subsequent tool calls (list_builds, get_build_status, etc.) to maintain session continuity.
Example recipe: { "name": "My Custom Server", "base_image": "debian-bookworm", "description": "A minimal web server", "os": { "features": ["ssh", "nginx"], "packages": ["htop", "vim"], "services": [ {"name": "ssh", "config": {"port": 22}} ] } }
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": {
"recipe": "<recipe>"
},
"name": "create_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | An Omarchy theme id (GET /api/catalog/themes lists them, e.g. tokyo-night). It is recorded as the owner's choice and verified on the finished image; the recipe must apply it (GET /api/catalog/themes/{id} has its palette and bundle). Refused for firmware built by its own tooling (OpenWrt, Zephyr, GrapheneOS). | |
| prompt | No | The natural-language request this recipe came from, if there was one. Seeded as the opening user message of the build's chat, so the chat shows what was actually asked for rather than just the generated recipe. | |
| recipe | Yes | The build recipe as a JSON object (or a JSON string). Required fields: - name: Name for the build - base_image: Base OS (e.g., "ubuntu-26.04", "debian-trixie", "fedora-39" through "fedora-44", "elster-os") Optional fields: - use_case: Primary use case (e.g., "Development", "Research", "Production server") - description: Description of the build purpose - hardware: Hardware requirements (min_memory_gb, min_storage_gb) - os: OS settings. Put features, packages, services, networking, security, and users here. - scenarios: Post-build test scenarios | |
| api_key | No | Your OpenFactory MCP API key (optional) | |
| create_chat | No | Create a chat for this build, seeded with the prompt and a recipe card, and link it so the build is reachable from the sidebar and opens the build panel. Leave on unless you're generating bulk/QA builds that would spam the chat list. | |
| 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. | |
| platform_agent | No | Have OpenFactory's own goal agent drive this build. It spends your plan's platform AI allowance and is metered against it. Omit it and YOU drive the build with your own model (build_image, then its verification session through get_verification_session). | |
| installer_choice | No | When the installer combo is not yet supported: native, openfactory-installer, calamares, or live_only. If omitted and the combo is uncovered, this tool returns needs_input with a question. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||