hokaii6990-boop (Windows 11, magpie 0.1.3654, plugin 0.2.3, CN site):
`magpie tool minimax_generate_image --requests '{"prompt":"...","area":"2K"}'`
answered "bad arguments: arguments.requests[0].area is not an accepted
argument", while the account's catalog schema has area, and
minimax_call_tool with the same arguments generated the image.
Our first reply said execute checks against the catalog's
input_schema_json. It does, but createConnectorTools wraps every tool's
execute in checked(t.args, args) first, and a named Matrix tool's args
are the bundled matrix-tools.json copy (2026-11-03: resolution,
input_urls, a six-value aspect_ratio). So that check refused the call
before the catalog was ever read.
- A named Matrix tool's call is now checked up front only for its two
routing fields (site, account). Its own arguments are checked once, in
execute, against the catalog entry's input_schema_json, and against the
bundled copy only when the catalog gives none. A parameter MiniMax adds
later passes without a plugin release. A priced call still never goes
out with bad arguments; the catalog read now comes first.
list_tools, tool_schema and call_tool keep their up-front check.
- The refusal names whose schema it was: "(checked against the account's
catalog schema for connector__matrix__generate_image)", or the bundled
one when the catalog gave none.
- matrix-tools.json's generate_image input_schema is the reporter's
pasted `minimax_tool_schema --json` output, byte for byte after JSON
parsing (kept as testdata/generate-image-schema-955.json). It is what
agents are shown. Its description says reference_images, not
input_urls. The other 15 tools' copies are unchanged; no fresher
bytes for them.
- README says calls are checked against the live catalog.
Run:
- wsl-run (magpie-desktop, Bun 1.4.2), HOME=$(mktemp -d):
bun test packages/minimax 148 pass 0 fail; bun scripts/check.mjs exit 0.
- win-run (xiaomi-gpu Windows 11, Bun 1.4.2), HOME and USERPROFILE a
fresh temp dir: bun test packages/minimax 148 pass 0 fail;
bun scripts/check.mjs exit 0.
- Broken by hand (wsl-run, connector-tools.test.mjs):
- 0.2.3's code and bundle: 5 red, among them the area/n/output_format/
reference_images call.
- New code with 0.2.3's bundle: only the bundled-copy test red; the
area call passes, held to the catalog.
- New bundle with the old up-front check: 3 red (the catalog's
refusal message, the no-schema fallback message, and a refusal that
now reads the catalog first).
Not tried: no MiniMax Code account here, so no real generation; the
schema is the reporter's, from one CN-site account. The global site's
catalog was not seen. Codex desktop refusing area from the advertised
schema (the reporter's second path) was not reproduced; the refreshed
copy covers it for these fields. The get_asset_url /visible/ watermark
note is split out to #974.
Reported-by: hokaii6990-boop
Refs #955
86 lines
24 KiB
JSON
86 lines
24 KiB
JSON
{
|
|
"_verified": "verified against mcode-tools connector tool <name> (mcode CLI, minimax-cloud /connectors) on 2026-11-03 (generate_image refreshed on 2026-11-11 from a CN-site account's tool_schema output, plugins#955); runtime_tool_name = connector__matrix__<key>. get_asset_url is CLI-hidden in 'connector tools' output but callable through the same tools/call gateway.",
|
|
"tools": {
|
|
"generate_image": {
|
|
"description": "Text-to-image, or editing and combining images via reference_images. Wrap each request in a 'requests' array, NOT as a flat prompt. Successful items return success_items[].node_id and success_items[].file_name; file_name is the final base filename including its actual extension. To use the generated image, call get_asset_url with this node_id to obtain a short-lived file URL. Optional requests[].output_file sets the downloaded base filename; directory components are ignored. Do not construct an OSS/CDN URL from node_id. Do NOT pass input_files/output_path.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"requests":{"items":{"additionalProperties":false,"properties":{"area":{"description":"Output size tier used with aspect_ratio; defaults to 4K.","enum":["1K","2K","4K"],"type":"string"},"aspect_ratio":{"description":"\"auto\" or \"X:Y\" with integers 1-300 between 1:3 and 3:1, for example 16:9. Use with optional area.","type":"string"},"n":{"description":"Number of images for this request; defaults to 1. Each delivered image is charged once.","maximum":10,"minimum":1,"type":"integer"},"output_file":{"description":"Optional downloaded base filename. Directory components are ignored.","minLength":1,"type":"string"},"output_format":{"description":"Defaults to jpeg. jpg is the same as jpeg.","enum":["png","jpeg","jpg"],"type":"string"},"prompt":{"description":"Image description. With reference_images, refer to them as 图1, 图2, ... in the order given.","minLength":1,"type":"string"},"reference_images":{"description":"Optional 1-16 reference images to edit or combine. JPG, JPEG, PNG, WEBP, HEIC or HEIF; each at most 64 MB, 128-8192 px per side, aspect ratio at most 4:1.","items":{"additionalProperties":false,"properties":{"mime_type":{"enum":["image/jpeg","image/png","image/webp","image/heic","image/heif"],"type":"string"},"url":{"description":"temp_url from a completed upload_temp_url upload (upload local files first), or an existing upload URL from this environment.","type":"string"}},"required":["url"],"type":"object"},"maxItems":16,"type":"array"}},"required":["prompt"],"type":"object"},"maxItems":10,"minItems":1,"type":"array"}},"required":["requests"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"submit_video_generation": {
|
|
"description": "Submit one asynchronous video-generation task and return task_id; then call query_video_generation with the same task_id and model. HTTP MCP accepts media URLs only: raw data, base64, data URIs, and local paths are not supported; upload first and pass the URL. MiniMax-H3 (recommended for quality) does text-to-video, first/last-frame image-to-video and multimodal references at 768P or 2K, duration required 4-15s, with a synchronized native audio track. MiniMax-H3-Max is the ~20s fast variant: text-to-video and first/last-frame only (no references), 480P or 768P, duration required 5-15s. MiniMax-Hailuo-2.3 is the lower-cost option: text-to-video and first-frame at 768P for 6 or 10s, or 1080P for 6s; output is silent. Billing: a video is paid from the M Plan weekly limit when it covers the model and can cover the whole video, otherwise with account credits; Legacy Token Plan limits cannot pay for MiniMax-H3 or MiniMax-H3-Max.",
|
|
"input_schema": {"additionalProperties":false,"allOf":[{"if":{"properties":{"model":{"const":"MiniMax-Hailuo-2.3"}},"required":["model"]},"then":{"not":{"anyOf":[{"required":["reference_images"]},{"required":["reference_videos"]},{"required":["reference_audios"]},{"required":["last_frame_image"]}]}}},{"if":{"properties":{"model":{"const":"MiniMax-H3-Max"}},"required":["model"]},"then":{"not":{"anyOf":[{"required":["reference_images"]},{"required":["reference_videos"]},{"required":["reference_audios"]}]}}},{"if":{"properties":{"model":{"const":"MiniMax-H3"}},"required":["model"]},"then":{"properties":{"duration":{"maximum":15,"minimum":4,"type":"integer"},"ratio":{"enum":["adaptive","21:9","16:9","4:3","1:1","3:4","9:16"]},"resolution":{"default":"2K","enum":["768P","2K"]}},"required":["duration"]}},{"if":{"properties":{"model":{"const":"MiniMax-H3-Max"}},"required":["model"]},"then":{"properties":{"duration":{"maximum":15,"minimum":5,"type":"integer"},"ratio":{"enum":["adaptive","21:9","16:9","4:3","1:1","3:4","9:16"]},"resolution":{"default":"768P","enum":["480P","768P"]}},"required":["duration"]}},{"if":{"properties":{"model":{"const":"MiniMax-Hailuo-2.3"}},"required":["model"]},"then":{"properties":{"duration":{"default":6,"enum":[6,10]},"prompt":{"maxLength":3000},"resolution":{"default":"768P","enum":["768P","1080P"]}}}},{"if":{"properties":{"model":{"const":"MiniMax-Hailuo-2.3"},"reference_type":{"const":"subject"}},"required":["model","reference_type"]},"then":{"properties":{"duration":{"const":6,"default":6}}}}],"properties":{"duration":{"description":"MiniMax-H3: required integer from 4 through 15. MiniMax-H3-Max: required integer from 5 through 15. MiniMax-Hailuo-2.3: 6 (default) or 10; legacy subject mode supports 6 only.","type":"integer"},"input_image":{"additionalProperties":false,"description":"One .jpg, .jpeg, .png, .webp, .heic, or .heif keyframe or single reference image supplied by URL. MiniMax-H3 accepts up to 30 MB, dimensions 256-5760 pixels, and aspect ratio 0.4-2.5. Use with reference_type for keyframe generation; cannot be combined with reference collections.","properties":{"mime_type":{"enum":["image/jpeg","image/png","image/webp","image/heic","image/heif"],"type":"string"},"url":{"description":"Use temp_url after completing upload_temp_url, or an existing upload URL from this environment.","type":"string"}},"required":["url"],"type":"object"},"last_frame_image":{"additionalProperties":false,"description":"MiniMax-H3 / MiniMax-H3-Max first+last-frame mode only. One ending-frame image URL with the same limits as input_image. Requires input_image; no reference collections.","properties":{"mime_type":{"enum":["image/jpeg","image/png","image/webp","image/heic","image/heif"],"type":"string"},"url":{"description":"Use temp_url after completing upload_temp_url, or an existing upload URL from this environment.","type":"string"}},"required":["url"],"type":"object"},"model":{"description":"Required. MiniMax-H3: recommended quality. MiniMax-H3-Max: fast (~20s), keyframes only, 480P/768P. MiniMax-Hailuo-2.3: lower cost.","enum":["MiniMax-H3","MiniMax-H3-Max","MiniMax-Hailuo-2.3"],"type":"string"},"prompt":{"description":"Required video description, up to 7000 characters for MiniMax-H3 and MiniMax-H3-Max, and up to 3000 characters for MiniMax-Hailuo-2.3 (shorten it to fit). For MiniMax-H3 and MiniMax-H3-Max it also drives the native audio track (dialogue, ambience, sound effects).","maxLength":7000,"minLength":1,"type":"string"},"ratio":{"description":"H3 family only. Text-to-video defaults to 16:9 and needs a concrete ratio. Keyframe mode always uses adaptive; reference mode defaults to adaptive.","enum":["adaptive","21:9","16:9","4:3","1:1","3:4","9:16"],"type":"string"},"reference_audios":{"description":"MiniMax-H3 only. Supply 1-3 .wav or .mp3 audio references by URL, each no larger than 15 MB. Audio requires at least one reference image or video; across all reference collections at most 12 items are accepted. Cannot be combined with keyframes.","items":{"additionalProperties":false,"properties":{"mime_type":{"enum":["audio/wav","audio/x-wav","audio/mpeg","audio/mp3"],"type":"string"},"url":{"description":"Use temp_url after completing upload_temp_url, or an existing upload URL from this environment.","type":"string"}},"required":["url"],"type":"object"},"maxItems":3,"minItems":1,"type":"array"},"reference_images":{"description":"MiniMax-H3 only. Supply 1-9 .jpg, .jpeg, .png, .webp, .heic, or .heif reference images by URL, each no larger than 30 MB. Across all reference collections at most 12 items are accepted. Cannot be combined with keyframes.","items":{"additionalProperties":false,"properties":{"mime_type":{"enum":["image/jpeg","image/png","image/webp","image/heic","image/heif"],"type":"string"},"url":{"description":"Use temp_url after completing upload_temp_url, or an existing upload URL from this environment.","type":"string"}},"required":["url"],"type":"object"},"maxItems":9,"minItems":1,"type":"array"},"reference_type":{"description":"How input_image is used. H3 family supports first_frame or last_frame. MiniMax-Hailuo-2.3 supports first_frame and legacy subject mode (6s only).","enum":["first_frame","last_frame","subject"],"type":"string"},"reference_videos":{"description":"MiniMax-H3 only. Supply 1-3 .mp4 or .mov reference videos by URL, each 2-15 seconds and no larger than 50 MB; their combined duration_seconds must not exceed 15. Every item must declare duration_seconds. Cannot be combined with keyframes.","items":{"additionalProperties":false,"properties":{"duration_seconds":{"description":"Required actual duration of the source video in whole seconds; used for validation and billing and not sent to the model.","maximum":15,"minimum":2,"type":"integer"},"mime_type":{"enum":["video/mp4","video/quicktime"],"type":"string"},"url":{"description":"Use temp_url after completing upload_temp_url, or an existing upload URL from this environment.","type":"string"}},"required":["url","duration_seconds"],"type":"object"},"maxItems":3,"minItems":1,"type":"array"},"resolution":{"description":"MiniMax-H3: 768P or 2K (default). MiniMax-H3-Max: 480P or 768P (default); 2K is not supported. MiniMax-Hailuo-2.3: 768P (default) for 6s or 10s, or 1080P for 6s only.","enum":["480P","768P","1080P","2K"],"type":"string"}},"required":["prompt","model"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"query_video_generation": {
|
|
"description": "Check one video task returned by submit_video_generation. Pass the same task_id and model. Returns queued, running, succeeded, failed, or cancelled status; successful results include node_id and file_name, and failed results include failure details. Call get_asset_url with node_id to obtain a short-lived video URL; if that URL expires, call get_asset_url again with the same node_id instead of querying the task again. MiniMax-H3-Max tasks typically finish in about 20 seconds, so query shortly after submitting; MiniMax-H3 usually takes 15-30 minutes. MiniMax-H3 / MiniMax-H3-Max videos are retained for 7 days after generation.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"model":{"description":"Required. Pass the same model returned by matrix_submit_video_generation.","enum":["MiniMax-H3","MiniMax-H3-Max","MiniMax-Hailuo-2.3"],"type":"string"},"task_id":{"description":"Task ID returned by matrix_submit_video_generation.","type":"string"}},"required":["task_id","model"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"synthesize_speech": {
|
|
"description": "Single TTS (text-to-speech) for one spoken-audio asset. A successful response returns node_id and file_name; file_name is the final base filename including its actual extension. Call get_asset_url with node_id to obtain a short-lived audio URL. Optional output_file sets the downloaded base filename; directory components are ignored. Do not construct an OSS/CDN URL from node_id. Do NOT pass output_path.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"emotion":{"enum":["happy","sad","angry","fearful","disgusted","surprised","neutral"],"type":"string"},"output_file":{"description":"Optional downloaded base filename. Directory components are ignored.","minLength":1,"type":"string"},"pitch":{"maximum":12,"minimum":-12,"type":"integer"},"speed":{"maximum":2,"minimum":0.5,"type":"number"},"text":{"type":"string"},"voice_id":{"description":"default male-qn-qingse","type":"string"},"volume":{"maximum":10,"minimum":0,"type":"number"}},"required":["text"],"type":"object"},
|
|
"output_schema": {"additionalProperties":false,"properties":{"code":{"type":"integer"},"file_name":{"type":"string"},"message":{"type":"string"},"node_id":{"minLength":1,"type":"string"}},"required":["code","message"],"type":"object"}
|
|
},
|
|
"batch_text_to_audio": {
|
|
"description": "Batch TTS (text-to-speech) for spoken audio (at most 10 per call). Successful items return success_items[].node_id and success_items[].file_name; file_name is the final base filename including its actual extension. Call get_asset_url with node_id to obtain a short-lived audio URL. Optional requests[].output_file sets the downloaded base filename; directory components are ignored. Do not construct an OSS/CDN URL from node_id. Do NOT pass output_file_list.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"requests":{"items":{"additionalProperties":false,"properties":{"emotion":{"enum":["happy","sad","angry","fearful","disgusted","surprised","neutral"],"type":"string"},"output_file":{"description":"Optional downloaded base filename. Directory components are ignored.","minLength":1,"type":"string"},"pitch":{"maximum":12,"minimum":-12,"type":"integer"},"speed":{"maximum":2,"minimum":0.5,"type":"number"},"text":{"type":"string"},"voice_id":{"description":"default male-qn-qingse","type":"string"},"volume":{"maximum":10,"minimum":0,"type":"number"}},"required":["text"],"type":"object"},"maxItems":10,"minItems":1,"type":"array"}},"required":["requests"],"type":"object"},
|
|
"output_schema": {"additionalProperties":false,"properties":{"code":{"type":"integer"},"failed_items":{"items":{"additionalProperties":false,"properties":{"err_code":{"type":"integer"},"error_msg":{"type":"string"},"index":{"type":"integer"}},"required":["index","error_msg","err_code"],"type":"object"},"type":"array"},"message":{"type":"string"},"success_items":{"items":{"additionalProperties":false,"properties":{"file_name":{"type":"string"},"node_id":{"minLength":1,"type":"string"}},"required":["node_id","file_name"],"type":"object"},"type":"array"},"total_failed":{"type":"integer"},"total_requested":{"type":"integer"},"total_success":{"type":"integer"}},"required":["code","message","total_requested","total_success","total_failed","success_items","failed_items"],"type":"object"}
|
|
},
|
|
"batch_text_to_music": {
|
|
"description": "Generate songs and music audio files (at most 5 per call). Lyrics are optional; omit them for instrumental music. Successful items return success_items[].node_id and success_items[].file_name; file_name is the final base filename including its actual extension. To use the generated audio, call get_asset_url with this node_id to obtain a short-lived file URL. MCP HTTP supports MP3 and WAV output; PCM is not available because it cannot carry the required AIGC metadata. Optional requests[].output_file sets the downloaded base filename; directory components are ignored. Do not construct an OSS/CDN URL from node_id. Do NOT pass output_file_list.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"requests":{"items":{"additionalProperties":false,"properties":{"bitrate":{"enum":[32000,64000,128000,256000],"type":"integer"},"format":{"enum":["mp3","wav"],"type":"string"},"lyrics":{"description":"Optional; omit for instrumental music.","maxLength":600,"minLength":10,"type":"string"},"output_file":{"description":"Optional downloaded base filename. Directory components are ignored.","minLength":1,"type":"string"},"prompt":{"maxLength":300,"minLength":10,"type":"string"},"sample_rate":{"enum":[16000,24000,32000,44100],"type":"integer"}},"required":["prompt"],"type":"object"},"maxItems":5,"minItems":1,"type":"array"}},"required":["requests"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"describe_images": {
|
|
"description": "Vision Q&A on images using an HTTPS url plus an optional per-image prompt. Raw data and local file paths are not supported. For a local file or a URL that the server cannot fetch, upload its bytes first and pass the returned url. REQUIRED: use the image_info array, not images/image_list/image_urls.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"image_info":{"items":{"additionalProperties":false,"properties":{"mime_type":{"description":"Optional media type override, for example image/png.","type":"string"},"prompt":{"description":"Question or instruction; defaults to a general description.","type":"string"},"url":{"description":"HTTPS URL the server can fetch. Do not put a local path here.","type":"string"}},"required":["url"],"type":"object"},"minItems":1,"type":"array"}},"required":["image_info"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"videos_understand": {
|
|
"description": "Video Q&A for at most 10 entries using an HTTPS url plus an optional prompt. Raw data and local file paths are not supported. For a local file or a URL that the server cannot fetch, upload its bytes first and pass the returned url. REQUIRED: use the video_info array, not video_list/videos/tasks.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"video_info":{"items":{"additionalProperties":false,"properties":{"mime_type":{"description":"Optional media type override, for example video/mp4.","type":"string"},"prompt":{"description":"Question or instruction; defaults to a general description.","type":"string"},"url":{"description":"HTTPS URL the server can fetch. Do not put a local path here.","type":"string"}},"required":["url"],"type":"object"},"maxItems":10,"minItems":1,"type":"array"}},"required":["video_info"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"audios_understand": {
|
|
"description": "Audio Q&A for at most 10 entries using an HTTPS url plus an optional prompt. Raw data and local file paths are not supported. For a local file or a URL that the server cannot fetch, upload its bytes first and pass the returned url. REQUIRED: use the audio_info array, not audios/audio_list.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"audio_info":{"items":{"additionalProperties":false,"properties":{"mime_type":{"description":"Optional media type override, for example audio/mpeg.","type":"string"},"prompt":{"description":"Question or instruction; defaults to a general description.","type":"string"},"url":{"description":"HTTPS URL the server can fetch. Do not put a local path here.","type":"string"}},"required":["url"],"type":"object"},"maxItems":10,"minItems":1,"type":"array"}},"required":["audio_info"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"listen_audio": {
|
|
"description": "Transcribe one audio input supplied as an HTTPS url. Raw data and local file paths are not supported. For a local file or a URL that the server cannot fetch, upload its bytes first and pass the returned url.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"audio_info":{"additionalProperties":false,"properties":{"mime_type":{"description":"Optional media type override, for example audio/mpeg.","type":"string"},"prompt":{"description":"Optional instruction; defaults to verbatim transcription.","type":"string"},"url":{"description":"HTTPS URL the server can fetch. Do not put a local path here.","type":"string"}},"required":["url"],"type":"object"}},"required":["audio_info"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"search_images": {
|
|
"description": "Image web search with relevance-prompt filter. One task per query.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"providers":{"items":{"enum":["serper"],"type":"string"},"type":"array"},"queries":{"items":{"additionalProperties":false,"properties":{"prompt":{"description":"relevance filter","type":"string"},"query":{"type":"string"},"task_name":{"type":"string"}},"required":["query","prompt","task_name"],"type":"object"},"minItems":1,"type":"array"}},"required":["queries"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"reverse_image_search": {
|
|
"description": "Reverse image search by URL. Pass ONLY image_url. Do NOT pass output_file.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"image_url":{"type":"string"}},"required":["image_url"],"type":"object"},
|
|
"output_schema": null
|
|
},
|
|
"enhance_image": {
|
|
"description": "Make one image sharper and clearer by upscaling it 2x (super-resolution) and save the result in the input format. image_url must be an uploaded HTTPS URL: for a local file, upload its bytes first and pass the returned url. Supports PNG, JPEG or WebP up to 10 MB with the short side at least 256 px and the long side at most 2048 px. A successful response returns node_id and file_name; file_name is the final base filename including its actual extension. To use the result, call get_asset_url with this node_id to obtain a short-lived file URL. Do not construct an OSS/CDN URL from node_id.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"image_url":{"description":"temp_url from a completed upload_temp_url upload. Do not put a local path here.","type":"string"}},"required":["image_url"],"type":"object"},
|
|
"output_schema": {"additionalProperties":false,"properties":{"code":{"type":"integer"},"file_name":{"type":"string"},"height":{"type":"integer"},"message":{"type":"string"},"mime_type":{"type":"string"},"node_id":{"minLength":1,"type":"string"},"size_bytes":{"type":"integer"},"width":{"type":"integer"}},"required":["code","message"],"type":"object"}
|
|
},
|
|
"remove_image_background": {
|
|
"description": "Remove the background of one image and save the result as a transparent PNG. image_url must be an uploaded HTTPS URL: for a local file, upload its bytes first and pass the returned url. Supports PNG, JPEG, WebP, BMP or TIFF up to 30 MB, with the long side at most 10240 px, the short side at most 6000 px and at most 40 megapixels, with a clear main subject. A successful response returns node_id and file_name; file_name is the final base filename including its actual extension. To use the result, call get_asset_url with this node_id to obtain a short-lived file URL. Do not construct an OSS/CDN URL from node_id.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"image_url":{"description":"temp_url from a completed upload_temp_url upload. Do not put a local path here.","type":"string"}},"required":["image_url"],"type":"object"},
|
|
"output_schema": {"additionalProperties":false,"properties":{"code":{"type":"integer"},"file_name":{"type":"string"},"height":{"type":"integer"},"message":{"type":"string"},"mime_type":{"type":"string"},"node_id":{"minLength":1,"type":"string"},"size_bytes":{"type":"integer"},"width":{"type":"integer"}},"required":["code","message"],"type":"object"}
|
|
},
|
|
"get_voice_list": {
|
|
"description": "List available TTS (text-to-speech) voices as voice_id and voice_name. Call this only when the user needs to choose a voice; otherwise omit voice_id and use the default voice.",
|
|
"input_schema": {"additionalProperties":false,"properties":{},"type":"object"},
|
|
"output_schema": {"additionalProperties":false,"properties":{"available_voices":{"items":{"additionalProperties":false,"properties":{"voice_id":{"type":"string"},"voice_name":{"type":"string"}},"required":["voice_id","voice_name"],"type":"object"},"type":"array"},"base_resp":{"type":"object"},"code":{"type":"integer"},"message":{"type":"string"},"total":{"type":"integer"}},"required":["code","message","available_voices","total"],"type":"object"}
|
|
},
|
|
"get_asset_url": {
|
|
"description": "Get a short-lived download URL for a Matrix Drive node_id returned by a successful generation (an image, video, audio or music success item's node_id). Call it again with the same node_id when the URL expires.",
|
|
"input_schema": {"additionalProperties":false,"properties":{"node_id":{"description":"Matrix Drive node id, e.g. 429422773780544.","minLength":1,"type":"string"}},"required":["node_id"],"type":"object"},
|
|
"output_schema": {"additionalProperties":false,"properties":{"code":{"type":"integer"},"download_url":{"type":"string"},"message":{"type":"string"}},"required":["code"],"type":"object"}
|
|
}
|
|
}
|
|
}
|