sandbox_build
Run a build step and reuse its output: the same inputs (dir contents, cmd, env, toolchain versions) restore the previous result instead of compiling again. Suited to npm ci, go build or next build, e.g. {dir: "app", cmd: "npm ci", out: ["node_modules"]}; reused=true means nothing compiled, cached=true means this run's output was saved for later boxes. For an install step alone (npm ci, pnpm install, yarn) whose out is only node_modules, the version field of the package.json and package-lock.json at the top of dir is left out of the fingerprint, so a version bump still reuses it.
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": {
"id": "<id>",
"dir": "<dir>",
"cmd": "<cmd>",
"out": "<out>",
"note": "<note>"
},
"name": "sandbox_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| cmd | Yes | Run with bash inside dir | |
| dir | Yes | Directory to build in, relative to /work: app for /work/app (an absolute /work/app works too) | |
| env | No | Part of the fingerprint | |
| out | Yes | Paths the build produces, relative to dir: ["dist"], ["node_modules"] or ["bin/app"] (an absolute path inside dir, /work/app/dist, works too); restored on a hit | |
| note | Yes | One short sentence, in the language requested by the person (English by default), saying what this build is for; the person watching sees it in their app instead of the raw command. It stays on the box's timeline for 7 days, shown to everyone who opens the box: if you will hand it to someone who reads another language, write it in theirs | |
| exclude | No | Paths relative to dir left out of the fingerprint, e.g. ["src"] for an install step that does not read your sources, so editing them does not force a reinstall | |
| noCache | No | Build anyway, replace the stored output | |
| timeoutSec | No |