@simpligen/mcp 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/tools.js +38 -1
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -69,8 +69,45 @@ export function registerTools(server, client) {
|
|
|
69
69
|
packId: z.string().optional(), backend: z.enum(['local', 'cloud', 'auto']).optional(),
|
|
70
70
|
negativePrompt: z.string().optional(), project: z.string().optional(),
|
|
71
71
|
image: z.string().optional().describe('upload_file handle'),
|
|
72
|
-
|
|
72
|
+
// A bare handle still works, so every agent written against the old
|
|
73
|
+
// schema keeps working. The object form carries the per-image label,
|
|
74
|
+
// which is the DESCRIPTION the app asks for when list_capabilities says
|
|
75
|
+
// inputs.referenceImages.requiresDescriptions is true (LTX 2.5
|
|
76
|
+
// Multi-Reference builds one appearance line per subject from it).
|
|
77
|
+
// Sending images without it on such a preset runs, but the subjects
|
|
78
|
+
// blur together, which is indistinguishable from the model being bad.
|
|
79
|
+
referenceImages: z.array(z.union([
|
|
80
|
+
z.string(),
|
|
81
|
+
z.object({
|
|
82
|
+
handle: z.string().describe('upload_file handle'),
|
|
83
|
+
label: z.string().optional().describe('What this reference IS, e.g. "a woman with red hair". Required in spirit when the preset reports requiresDescriptions.'),
|
|
84
|
+
}),
|
|
85
|
+
])).optional().describe('upload_file handles, or {handle, label} when the preset wants a description per reference'),
|
|
73
86
|
video: z.string().optional().describe('upload_file handle (driving video)'),
|
|
87
|
+
// The App has accepted these three since 1.58.0; this schema never
|
|
88
|
+
// offered them, so no agent could drive an audio preset at all: the
|
|
89
|
+
// error said needs_audio and there was nowhere to put a sound
|
|
90
|
+
// (mavr1k_, 2026-10-01). Passing it inside `options` does not work
|
|
91
|
+
// either, since preflight reads the top level.
|
|
92
|
+
audio: z.string().optional().describe('upload_file handle for the PRIMARY audio track (lip-sync / audio-to-video presets). Required when list_capabilities reports inputs.acceptsAudio true, optional when it reports "optional".'),
|
|
93
|
+
referenceAudios: z.array(z.union([
|
|
94
|
+
z.string(),
|
|
95
|
+
z.object({ handle: z.string(), durationSeconds: z.number().optional() }),
|
|
96
|
+
])).optional().describe('upload_file handles for reference SOUNDS (a voice per subject, where the preset pairs them with references).'),
|
|
97
|
+
referenceVideos: z.array(z.union([
|
|
98
|
+
z.string(),
|
|
99
|
+
z.object({
|
|
100
|
+
handle: z.string(),
|
|
101
|
+
soundtrackMode: z.enum(['own', 'file', 'none']).optional().describe("Where this clip's sound comes from; defaults to 'own'."),
|
|
102
|
+
durationSeconds: z.number().optional(),
|
|
103
|
+
}),
|
|
104
|
+
])).optional().describe('upload_file handles for reference CLIPS (MiniMax H3 scene chaining chains on a clip).'),
|
|
105
|
+
// Appended to the prompt by the app's own dialogue formatter, so the
|
|
106
|
+
// wording matches what the preset was tuned on. MiniMax H3 lip-syncs
|
|
107
|
+
// to it; sending it to a preset that does not declare supportsDialogue
|
|
108
|
+
// changes nothing.
|
|
109
|
+
dialogue: z.string().optional().describe('A spoken line for the character, when list_capabilities reports inputs.supportsDialogue.'),
|
|
110
|
+
dialogueDelivery: z.string().optional().describe('How the line is delivered, e.g. "urgent", "whispered". Only meaningful with dialogue.'),
|
|
74
111
|
loras: z.array(z.object({ name: z.string().describe('LoRA display name from list_loras'), weight: z.number().optional().describe('Strength; defaults to the LoRA default') })).optional().describe('LoRAs to apply. Local backend only, and only for presets where inputs.supportsLoras is true. Use the LoRA trigger words in the prompt so it activates.'),
|
|
75
112
|
// .passthrough(), not the zod default: a plain z.object STRIPS every key it
|
|
76
113
|
// does not name, silently. The App's /generate accepts any Advanced
|