|
Download tools/scene_builder_3d_run_python.md from StarpowerTechnology/HiggsfieldMCP: direct link, hf CLI and curl.
- Browser
- Download file 6.28 kB
-
https://huggingface.co/datasets/StarpowerTechnology/HiggsfieldMCP/resolve/main/tools/scene_builder_3d_run_python.md
- Command line
-
hf download hf://datasets/StarpowerTechnology/HiggsfieldMCP/tools/scene_builder_3d_run_python.md
-
curl -L -o scene_builder_3d_run_python.md https://huggingface.co/datasets/StarpowerTechnology/HiggsfieldMCP/resolve/main/tools/scene_builder_3d_run_python.md
6.28 kB
| 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, | |
| }>; | |
| ``` |