Build a Flux app specification from a simple description
flux_build_specTurns images, ports, resources and a term into a complete, correctly formatted v8 specification, with public ports auto-picked and data replication enabled. Returns the spec plus local validation errors and warnings.
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": {
"name": "<name>",
"components": "<components>"
},
"name": "flux_build_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique app name: letters, digits, inner hyphens. Not starting with "flux" or "zel". | |
| nodes | No | ||
| owner | No | Flux ID that will own the app. Defaults to the configured or passed key. | |
| months | No | Term in network months (88000 blocks each). Default 1. | |
| contacts | No | ||
| staticip | No | ||
| instances | No | Copies on distinct nodes. Default 3. | |
| components | Yes | ||
| description | No | ||
| geolocation | No | ||
| expireBlocks | No | Exact term in blocks; overrides months. | |
| fluxIdPrivateKey | No | WIF private key of the Flux ID that owns the app. Use a dedicated key from flux_generate_keys, never a main wallet key. | |
| paymentPrivateKey | No | WIF private key of the Flux address that pays. Fund it with only what you intend to spend. |