Build Nix Installables
buildCompiles Nix packages, NixOS systems, checks, or store paths, returning output paths and a durable run ID for diagnostics.
Instructions
Build one or more packages, NixOS systems, checks, or store paths. Returns output paths and a durable run ID for diagnostics.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory under an MCP workspace root. | |
| json | No | ||
| cores | No | ||
| dryRun | No | ||
| impure | No | ||
| noLink | No | ||
| system | No | ||
| maxJobs | No | ||
| offline | No | ||
| outLink | No | ||
| rebuild | No | ||
| refresh | No | ||
| builders | No | ||
| showTrace | No | ||
| installables | No | ||
| printOutPaths | No | ||
| overrideInputs | No | ||
| printBuildLogs | No | ||
| timeoutSeconds | No | ||
| acceptFlakeConfig | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| status | Yes | ||
| outputs | Yes | ||
| summary | Yes | ||
| diagnostics | Yes |