compile_gene
Compile a local Gene to WASM using Rotifer CLI. Validates or produces compilation artifacts for genes in the genes/ directory.
Instructions
Compile a local Gene to WASM via the Rotifer CLI (rotifer compile). The Gene must exist in the local genes/ directory. Returns compilation output.
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": {
"gene_name": "<gene_name>"
},
"name": "compile_gene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Force compilation mode (auto-detected by default) | |
| check | No | Validate only, don't produce artifacts (default: false) | |
| gene_name | Yes | Gene name (directory name under genes/) | |
| wasm_path | No | Path to a pre-compiled .wasm file to wrap as IR | |
| project_root | No | Project root path |