tenki_build_template
Trigger a template build to produce a bootable image. Poll the returned build until READY, then use its image reference to create a sandbox.
Instructions
Trigger a build for a template, producing a bootable image. Returns the created build — poll it with tenki_get_template_build until READY; the ready build's imageDigestRef is what tenki_create_sandbox's image arg takes.
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": {
"template_id": "<template_id>"
},
"name": "tenki_build_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build_env | No | Per-build environment overrides frozen into this build only. | |
| image_name | No | Name for the resulting image. Requires a TYPED template (created with builder_spec) — the API rejects it for legacy setup-script templates. | |
| template_id | Yes | The template ID to build. | |
| build_secrets | No | Build-time secrets as a key→value object (not persisted into the image). | |
| publish_raw_image | No | Publish the raw rootfs image alongside the build snapshot. |