File size: 6,284 Bytes
7f635f8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | Commit one coherent Blender scene edit against the exact revision and scene sequence you
inspected with `scene_builder_3d_get_project` or `scene_builder_3d_query_python`. `bpy` and
`artifacts` are available; assign JSON-serializable findings to `result`. Keep one mutation
active per project, including imports. If this operation remains active, poll
`scene_builder_3d_get_operation` before editing again. Reuse `operationId` only for the identical
code and preconditions. On a stale-state conflict, inspect the scene again and regenerate the
edit with fresh guards and a new operation ID. REVISION_CONFLICT rejects the submission: do not poll that operation ID. A successful mutation advances `revisionAfter`.
This worker pins Blender 5.2: use `BLENDER_EEVEE`, `BLENDER_WORKBENCH`, or `CYCLES`, not
`BLENDER_EEVEE_NEXT`. Code is capped at 256 KiB, and execution and checkpoint/export must fit
the configured worker deadline; keep renders small and split expensive work into coherent edits.
Do not invent texture paths or fetch external files from Blender; use
`scene_builder_3d_import_asset` for models.
Successful execution does not establish visual correctness. Render from the delivery camera,
publish the image through `artifacts`, retrieve it with `scene_builder_3d_get_artifact`, and
inspect it before claiming completion. If visual inspection is unavailable, state what remains
unverified. Use `scene_builder_3d_get_glb` or `scene_builder_3d_get_blend` when the user needs
the committed files.
Before building or editing a scene, load get_preset_instructions with { preset: "/3d-jutsu" } once for the full workflow, runtime limits and scene-building references.
Finish each completed scene creation, edit, or import task by calling `scene_builder_3d_show_scene` once as the final scene inspection/edit call of that review phase, after mutations have settled and verification is complete. Pass the same `projectId` and the exact committed `revision` of the final result: `revisionAfter` from the final successful mutation, or the settled `project.revision` after an import. Do not guess the revision. Show an unchanged revision only once. Authorized generation and status calls may follow; later feedback or a verified mismatch can reopen scene editing. Verify and show the corrected revision at its next review boundary. This shows the result to the user; a text summary or download link alone does not finish scene delivery.
```ts
mcp__Higgsfield__scene_builder_3d_run_python(args: {
// Use bpy and artifacts; assign JSON-serializable findings to result. Files persist only via artifacts.file(name=..., media_type=...), writing to target.path, then target.publish(). At most eight PNG/JPEG/MP4 files, 512 MiB each and 1 GiB total; images at most 16384 pixels per side and 64 MP. Invalid published files fail the operation. Set image_settings.media_type='IMAGE' before PNG/JPEG, or 'VIDEO' before FFMPEG with MPEG4/H264. No network fetches or embedded model bytes; use scene_builder_3d_import_asset.
code: string, // minLength: 1
// Exact settled scene sequence inspected by your query.
expectedSceneSequence: integer, // minimum: 0, maximum: 9007199254740991
// Stable ID for this logical operation. Reuse only for an identical request, including code and guards.
operationId: string, // pattern: /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/
// Project ID from scene_builder_3d_list_projects, scene_builder_3d_create_project, or the user's explicit selection. Required on every project-scoped tool.
projectId: string, // pattern: /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, format: "uuid"
// Exact committed revision inspected; do not guess.
revision: integer, // minimum: 0, maximum: 9007199254740991
// Seconds to wait, capped at 8; poll scene_builder_3d_get_operation if still active.
waitSeconds?: integer, // default: 8, minimum: 0, maximum: 9007199254740991
}): Promise<{
error?: { code: string, message: string, retryAdvice?: string, retryable: boolean },
nextArguments?: { operationId: string, projectId: string },
nextTool?: "scene_builder_3d_get_operation",
ok: boolean,
operation: {
access: "query" | "mutation",
artifacts:
| {
blend: {
etag: string,
size: integer, // minimum: 0, maximum: 9007199254740991
},
generated: Array<
{
etag: string,
height:
| integer // minimum: 0, maximum: 9007199254740991
| null
,
id: string,
mediaType: "image/png" | "image/jpeg" | "video/mp4",
name: string,
size: integer, // minimum: 0, maximum: 9007199254740991
width:
| integer // minimum: 0, maximum: 9007199254740991
| null
,
}
>,
glb: {
etag: string,
size: integer, // minimum: 0, maximum: 9007199254740991
},
projectId: string,
revision: integer, // minimum: 0, maximum: 9007199254740991
}
| null
,
baseRevision: integer, // minimum: 0, maximum: 9007199254740991
createdAt: string,
error: { code: string, message: string, retryAdvice?: string, retryable: boolean } | null,
finishedAt: string | null,
generatedArtifacts: Array<
{
etag: string,
height:
| integer // minimum: 0, maximum: 9007199254740991
| null
,
id: string,
mediaType: "image/png" | "image/jpeg" | "video/mp4",
name: string,
size: integer, // minimum: 0, maximum: 9007199254740991
width:
| integer // minimum: 0, maximum: 9007199254740991
| null
,
}
>,
headRevision: integer, // minimum: 0, maximum: 9007199254740991
headSceneSequence: integer, // minimum: 0, maximum: 9007199254740991
id: string,
output: { stderrTail: string, stdoutTail: string, truncated: boolean },
projectId: string,
result: any,
revisionAfter:
| integer // minimum: 0, maximum: 9007199254740991
| null
,
revisionBefore:
| integer // minimum: 0, maximum: 9007199254740991
| null
,
sceneSequenceAfter:
| integer // minimum: 0, maximum: 9007199254740991
| null
,
sceneSequenceBefore:
| integer // minimum: 0, maximum: 9007199254740991
| null
,
stale: boolean,
startedAt: string | null,
status: "queued" | "hydrating" | "starting" | "running" | "checkpointing" | "succeeded" | "failed" | "timed_out" | "expired",
},
// Open this project in 3D Jutsu.
projectUrl: string, // format: "uri"
// False while the operation still needs polling; true includes success and failure.
terminal: boolean,
}>;
``` |