HiggsfieldMCP / tools /generate_3d.md
StarpowerTechnology's picture
Upload 333 files
7f635f8 verified
|
Raw History Blame Contribute Delete
9.6 kB

Generate a 3D GLB mesh or rig an existing model. Use models_search(type:'3d', query:'Tripo') and models_get(model_id:...) to inspect the requested model's media roles and parameters before submitting. For a Tripo-to-Meshy workflow, generate the mesh with the discovered Tripo model, wait for its completed GLB, then call this tool with model:'3d_rigging' (Meshy; alias meshy_rigging) and model_url set to that GLB's public HTTPS URL; for a GLB made in the sandbox, pass the url media_upload returned after the PUT and media_confirm, never its upload_url. For animation, choose an animation_action_id from animation_actions and pass enable_animation:true. Put all generation arguments inside params; params.model is required. References may be uploaded media UUIDs, completed job UUIDs, or authorized HTTPS image URLs. ChatGPT attachments use media_upload_and_confirm; local/sandbox files use media_upload, PUT and media_confirm. Apply returned adjustments and recovery instructions. get_cost:true estimates credits without submitting a job; actual generation sends inputs to external 3D providers and can consume credits. This tool already displays its submitted jobs in an auto-updating generation widget, including while pending or in progress. Do not follow it with job_display, show_generations, or show_generation_by_ids merely to show or refresh the same results, before or after completion. To await completion, use jobs_wait with timeout_seconds <= 15; it does not open another widget. Use a separate display only when the user explicitly requests one or the workflow requires a distinct preview or approval. Headless generate_*_batch and execute_preset workflows follow their own display instructions. On a transport timeout the submission outcome may be unknown: do not automatically resubmit. Reuse returned job IDs and retry only after the original outcome is known.

mcp__Higgsfield__generate_3d(args: {
params: {
// Clip ID returned by animation_actions.
animation_action_id?: integer, // minimum: 0, maximum: 696
// Number of results (1-4). Ignored with use_unlim: an unlim request is always one generation — count is capped to 1 and the cap comes back in adjustments. Send separate calls for more.
count?: integer, // default: 1, minimum: 1, maximum: 4
// Apply the selected Meshy animation during rigging.
enable_animation?: boolean,
// Destination folder for this conversation. Use default_folder_id from create_project, or folder_id from create_folder when requested. Reuse on every generation and batch item in this conversation; never invent an ID or share a destination across chats. Omit by default for generation without a project. Before the first generation without a destination, call get_preferences: create a project only when auto_create_project is true or explicitly requested. Explicit existing destinations and requests to work without a project take priority; never change the saved preference for a one-off request.
folder_id?: 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"
// If true, return the cost in credits for this generation without submitting any job. Use to preflight cost before generating.
get_cost?: boolean,
// Reference media inputs.
medias?: Array<
{
// Canonical reference role. Allowed: 'image' — Generic reference image (style, composition, subject). | 'start_image' — First frame of the output video. | 'end_image' — Last frame of the output video. | 'video' — Reference video clip. | 'audio' — Reference audio clip. | 'ref_element' — Named element to preserve across frames (product, character). The selected model may support only a subset; use models_get to inspect it. The server maps canonical roles to model-specific backend media keys when needed.
role: "image" | "start_image" | "end_image" | "video" | "audio" | "ref_element",
// Uploaded media UUID from media_upload_and_confirm, completed generation job UUID, or authorized HTTPS image URL. HTTPS image URLs are imported and confirmed automatically.
value: string,
}
>,
// 3D model ID from models_search / models_get. Use 3d_rigging for Meshy rigging.
model: string,
// For rigging: a public HTTPS GLB URL, not an image, local path or job UUID.
model_url?: string,
// Session returned by start_katana_preset_session for every Katana preset run, paid or free. Forward this ID on every generation and batch item in that run, including cost estimates. Add use_free_gens: true only when the user explicitly requests free generations; otherwise omit it.
preset_session_id?: string, // minLength: 1, maxLength: 64, pattern: /^[A-Za-z0-9_-]+$/
// Text prompt or guidance when supported by the selected model. Text-to-3D models may require it; inspect the current model schema for prompt requirements. sam_3_3d uses it to disambiguate the object to lift.
prompt?: string,
// Request free generation only when the user explicitly asks. For a Katana run, also pass preset_session_id from start_katana_preset_session; the backend validates eligibility. Do not combine with use_unlim or retry a rejected free request on credits without explicit approval. true caps count to 1.
use_free_gens?: boolean,
[key: string]: any,
},
}): Promise<{
// Additional JSON Schema constraints: propertyNames={"type": "string"}
adjustments?: { [key: string]: { reason: string, requested: string | number | boolean, used: string | number | boolean } },
// Set when the server auto-picked an avatar because product_ids were passed without avatars/avatar_ids (Marketing Studio video).
avatar_auto_picked?: { id: string, name?: string, type: "preset" | "custom" },
// Live brand kit status when a generation was rejected because the kit is not ready yet.
brand_kit_status?: string,
// Populated only when the tool was called with get_cost: true. No job was submitted.
cost?: {
// Whole-credit cost (max(1, exact // 1) when exact > 0).
credits: number,
// Exact credit cost as a float.
credits_exact: number,
},
error?: string,
// Genjutsu required-media presence only. A successful price quote does not validate media existence, duration or generation readiness.
input_check?: {
generation_validated: false,
image_count: integer, // minimum: 0, maximum: 9007199254740991
missing_roles: Array<"image" | "video">,
required_media_present: boolean,
video_count: integer, // minimum: 0, maximum: 9007199254740991
},
// Suggested follow-up tool call attached to a recoverable request error.
next_step?: {
// Additional JSON Schema constraints: propertyNames={"type": "string"}
params: { [key: string]: any },
tool: string,
},
notice?: { data?: any, message: string, type: string },
// Genjutsu request params with resolved media UUIDs and applied adjustments. May be incomplete; inspect input_check. Reuse instead of importing the same references again. No generation has been submitted or validated.
// Additional JSON Schema constraints: propertyNames={"type": "string"}
prepared_params?: { [key: string]: any },
results?: Array<
{
author?: {
avatarUrl?: string,
userId: string, // minLength: 1
username?: string,
},
batch_id?: string,
createdAt?: number,
folder_id?: 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"
id: string, // minLength: 1
liked?: boolean,
model: string,
params: {
aspect_ratio?: string | null,
custom_reference_id?: (string | { [key: string]: any }) | null,
duration?: number | null,
image?: string | null,
input_images?: { id?: string, type?: string, url?: string, [key: string]: any }[] | null,
medias?: { data?: { id?: string, type?: string, url?: string, [key: string]: any }, role?: string, [key: string]: any }[] | null,
presetMeta?: { id?: string, name?: string, url?: string } | null,
prompt: string, // default: ""
reference_images?: Array<string | { [key: string]: any }> | null,
soul_id?: (string | { [key: string]: any }) | null,
soul_reference?: { name?: string, preview_url?: string, soul_id: string, thumbnail_url?: string, url?: string } | null,
voice?: (string | { id?: string, name?: string, type?: string, [key: string]: any }) | null,
[key: string]: any,
},
results?: {
autosprite?: { atlasUrl?: string, audioUrl?: string, columns?: number, frameCount?: number, frameHeight?: number, frameWidth?: number, spritesheetId?: string },
durationSec?: number,
// Original EXR ZIP; when present, rawUrl is the unprocessed input video used for playback.
exrUrl?: string,
height?: number,
minUrl?: string,
previewSource?: "input" | "result",
rawUrl: string,
text?: string,
thumbnailUrl?: string,
vtt?: string,
waveformUrl?: string,
width?: number,
},
status: "pending" | "waiting" | "queued" | "dna" | "script" | "visuals" | "vision" | "flow" | "in_progress" | "ip_detect" | "completed" | "canceled" | "failed" | "nsfw" | "ip_detected",
type: "image" | "video" | "audio" | "3d",
}
>,
// NO JOB WAS SUBMITTED. The caller has free unlimited generations that cover this model, and nobody has said whether to spend them. Ask the user, then call the same tool again with use_unlim: true (free) or use_unlim: false (credits). Do not pick for them.
unlim_choice?: {
// ISO timestamp when the allowance lapses.
expires_at?: string | null,
// The question to put to the user, verbatim.
message: string,
// Model the choice applies to.
model: string,
// Unlimited generations left; null means unmetered.
remaining?: number | null,
},
warning?: string,
}>;