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

Request execution of one published preset from the Viral, Marketing Studio or Genjutsu gallery, including a Genjutsu Style (genjutsu-style: preset_id) that restyles the user's own video. A bare preset slash command or a request to open, preview, or browse a preset only opens its widget. For supplied attachments, use input_schema from get_preset_instructions to map and upload the relevant files before opening any widget. Call get_presets exactly once with source, preset_id and initial_inputs in the exact schema fields. Do not call get_presets just to inspect the schema. Leave omitted settings to schema defaults; never reopen the detail merely to repeat default selections. Never assume one photo satisfies all requirements or guess ambiguous slot assignments. Leave missing fields in the prefilled widget for the user. Stop after opening the detail and let the user interact with it. Do not call execute_preset unless the user explicitly asks to generate, or submits with Recreate in the widget. Check execution.readiness for the supplied inputs before execution; collect missing or invalid fields instead of submitting. execution.available indicates capability, not permission; optional inputs and built-in media do not authorize generation. Readiness checks input structure, not media ownership or upload confirmation; use only confirmed media IDs. If the widget reports submitted job IDs, display and wait for those jobs without executing again. Check execution.available in the preset detail before calling. Unavailable execution returns an error without submitting a job. Use get_presets to obtain the published preset_id and source; do not invent either value. A successful submission returns final job_ids; a preset may produce multiple outputs. Use job_display for one job, jobs_wait and show_generation_by_ids for multiple jobs. The inputs schema declares all supported template input variants. Preset details select the variant, slot IDs, required values and allowed choices; they do not introduce additional executable operations.

mcp__Higgsfield__execute_preset(args: {
// Inputs for one published media preset. Choose the matching variant; preset detail narrows required values within these declared fields.
inputs:
// Viral template inputs. Slot IDs and allowed choices come from the selected preset.
 | {
// Published output choices by choice ID.
choice_values?: { [key: string]: string },
// Published settings such as resolution, duration, frame rate and trim times.
config?: { [key: string]: string | number },
// Uploaded or generated media by the selected Viral preset's slot IDs.
media?: {
[key: string]: Array<

 | string // pattern: /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
 | {
id: string, // pattern: /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
type: "media_input" | "image_job" | "video_input" | "video_job",
}

>,
},
// Published media option IDs by slot ID.
slot_selections?: { [key: string]: string },
// Text by published slot ID.
slot_values?: { [key: string]: string },
}
// Marketing Studio template inputs. Media IDs must identify confirmed media; avatar identifies a published or custom avatar.
 | {
avatar?: { id: string, type: "preset" | "custom" },
avatar_media_id?: string,
brand_url?: string,
product_media_id?: string,
prompt?: string, // maxLength: 5000
}
// Genjutsu motion template applied to one character image.
 | {
// minItems: 1, maxItems: 1
character_sheet: Array<

 | 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, // 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"
type: "image_job" | "media_input",
}

>,
resolution?: "480p" | "720p" | "1080p",
}
// Genjutsu Style applied to one video, with optional character reference images.
 | {
prompt?: string, // maxLength: 60000
// maxItems: 5
references?: Array<

 | 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, // 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"
type?: string,
}

>,
resolution?: "480p" | "720p" | "1080p",
// minItems: 1, maxItems: 1
video: Array<

 | 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, // 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"
type?: string,
}

>,
}
,
// Published preset ID returned by get_presets; its catalog slug or exact name is also accepted.
preset_id: string, // minLength: 1, maxLength: 120
// Published gallery source. Genjutsu also accepts legacy marketing_studio.
source: "viral" | "marketing_studio" | "genjutsu",
// Use the one Viral attempt shared across all Viral presets and the website. Only source=viral, at 720p or lower. Higher resolutions and exhausted attempts reject without charging credits; omit for a paid run.
use_free_gens?: boolean,
}): Promise<{
error?: string,
error_code?: string,
// Final output jobs from the preset workflow; may contain multiple IDs. Intermediate workflow steps are not outputs.
job_ids?: string[],
preset_id: string,
source: "viral" | "marketing_studio",
status?: string,
}>;