Build a version
build_effectBuild a version of the effect from a patch and see it checked and drawn. The user's project does not change.
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_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | With patch: the build of this session whose spec the patch applies to (0 = the latest get_project's spec) — to start again from one that built after a failed or a probing build. Full build replies list the bases. | |
| mute | No | Lint warnings to stop seeing for this session, where the rule cannot know a layer's intent (decorative stars are no sparks): each a few words of the warning as the build printed it, its layer in brackets — "[Star Fountain] round blobs". Replaces the session's list; [] clears it. Errors are never muted. | |
| spec | No | Instead of patch: a whole effect spec (its format: describe_kit topic "spec"). Call get_project for the current project first, including after a project switch or a new session. | |
| view | No | Draw the sheets on a fixed world rectangle instead of a framing of everything that shows (one oversized layer shrinks the rest): "framing" — the open project's Framing — or { minX, maxX, minY, maxY } in world px, y up (a 1080×1920 screen centred on the effect: -540…540, -960…960). Kept for the session's next builds, patches too; "auto" goes back to framing everything. | |
| brief | No | For this call, return a text-only build with lint, picture warnings, bones, atlas estimate and changed patch paths. Use look with its build number for images. Defaults to false. | |
| patch | No | Changes to the last spec sent to build_effect in this session (before any, to get_project's spec; with base, to that build's). The usual way to build; [] builds it again as it is (to see it on a new view). At most 150 operations — more, set a whole layer in one, or send the whole spec. A layer by its id, wherever it sits: "#sparks" (the layer as listed), "#sparks.sizeMode" (a particle's setting — it holds), "#g.settings.emitterScaleY", "#g.layers[-]" (a Group's) — inserts before it shift nothing. A drawOrder lists layers top first; the layers it leaves out go below the listed ones in their own order, so add a new layer's id to it. Send neither patch nor spec to check the open project as it is. |