create_build_from_prompt
Start an OpenFactory build from a one-sentence description.
The prompt is delivered to a new conversation's goal session -- the same agent that serves the Build UI. It reads the request, writes the recipe, builds the image, verifies it, and repairs failures on its own. Nothing is authored by the caller.
This spends platform AI: the goal session runs on OpenFactory's model and
is metered against your plan's AI allowance. Use create_build instead
when you already hold a complete recipe and want to drive it with your own
model.
The goal owns the build, so there is no build id yet when this returns:
poll list_builds for the returned conversation_id and follow the
build with get_build_status(build_id). If the agent needs a decision
from you, it asks in the conversation, which you can open in the Build UI.
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": {
"prompt": "<prompt>"
},
"name": "create_build_from_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | An Omarchy theme id (GET /api/catalog/themes lists them, e.g. tokyo-night). The build agent applies it and the finished image is verified against it. Firmware built by its own tooling (OpenWrt, Zephyr, GrapheneOS) takes no theme. | |
| prompt | Yes | One sentence describing the image you want, exactly as you would type it into the OpenFactory chat. Example: 'a Fedora 42 workstation ISO with an NVIDIA boot splash and docker preinstalled'. | |
| api_key | No | Your OpenFactory MCP API key (optional) | |
| 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. | |
| installer_choice | No | How the image should install to disk when that matters: native, openfactory-installer, calamares, or live_only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||