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
64 lines
2.3 KiB
JSON
64 lines
2.3 KiB
JSON
{
|
|
"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"
|
|
}
|