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.
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. |