Service Mode
serve speaks newline-delimited JSON over stdin/stdout. It does not listen on a
network port. It is designed to be spawned as a child process by a trusted
upper-layer service, batch tool, or automation pipeline.
Start a Worker
--threads: default thread count for requests that omitthreads; capped at 256--cache: number of parsed scenes/meshes to keep--force-limits: raise resource caps; trusted input only--ignore-block-entity-nbt: skip container NBT
hello line after materials are ready, then accepts jobs.
Request Example
input.pathandoutputDirmust be absolute- The input must be a regular file
input.hashis optional and verifies SHA-256- An empty
viewsarray defaults to[45] - Output files are
{id}.pngor{id}-{yaw}.png - Full fields, results, and error codes are in Engine protocol v1
Supervisor
supervise manages a worker pool, queue, timeouts, and memory ceilings:
Security Boundary
Useserve and supervise only with trusted callers. Input paths, output
directories, and resource-pack paths are controlled by the caller. Do not expose
the stdio service directly to untrusted network clients.