|
Download tools/scene_builder_3d_query_python.md from StarpowerTechnology/HiggsfieldMCP: direct link, hf CLI and curl.
- Browser
- Download file 4.71 kB
-
https://huggingface.co/datasets/StarpowerTechnology/HiggsfieldMCP/resolve/main/tools/scene_builder_3d_query_python.md
- Command line
-
hf download hf://datasets/StarpowerTechnology/HiggsfieldMCP/tools/scene_builder_3d_query_python.md
-
curl -L -o scene_builder_3d_query_python.md https://huggingface.co/datasets/StarpowerTechnology/HiggsfieldMCP/resolve/main/tools/scene_builder_3d_query_python.md
4.71 kB
| Inspect the latest settled Blender scene without committing changes. `bpy` and the `artifacts` | |
| registry are available; assign concise JSON-serializable findings to `result`. Query exact | |
| names, metre-scale dimensions, transforms, parents, collections, materials, cameras, lights, | |
| visibility, and animation settings as needed. Inspect Blender RNA when an API or enum is | |
| uncertain. Temporary scene changes are discarded, including camera changes used for inspection. | |
| A query can render and publish images for visual inspection: allocate a target with | |
| `artifacts.file(name="preview.png", media_type="image/png")`, write the image to `target.path`, | |
| and call `target.publish()`. Resolve published IDs with `scene_builder_3d_get_artifact`. | |
| Use the successful query's `revisionBefore` and `sceneSequenceAfter` as the guards for the next | |
| `scene_builder_3d_run_python` call. If still active, poll `scene_builder_3d_get_operation`. | |
| Reuse an operation ID only to retry the identical request. Imported model bytes must enter | |
| through `scene_builder_3d_import_asset`; do not fetch URLs or embed file bytes in Python. | |
| ```ts | |
| mcp__Higgsfield__scene_builder_3d_query_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 | |
| // 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" | |
| // 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, | |
| }>; | |
| ``` |