fix: remove default:[] from image_urls, short descriptions

This commit is contained in:
hermes committed 2026-07-10 03:29:15 +02:00
1 parent e9b6d89fb0
commit 11a0e8b5f4
1 file changed
+6 -14
+6 -14
View File
@@ -408,8 +408,7 @@ function registerHandlers(srv) {
description:
'Optional reference images. Each item is an http(s):// URL OR ' +
'a data:image/... URL. Up to ~4 references recommended for best ' +
'compatibility. Empty array = no refs.',
default: [],
'compatibility.',
},
},
required: ['prompt'],
@@ -419,17 +418,14 @@ function registerHandlers(srv) {
name: 'generate_image_transparent',
description:
'Generate an image with a TRANSPARENT background (alpha channel PNG). ' +
'Only works with models that support background removal natively: ' +
'recraft/recraft-v3, openai/gpt-image-1, openai/gpt-image-1-mini, ' +
'openai/gpt-image-2, openai/gpt-5-image, openai/gpt-5-image-mini. ' +
'Other models will return an error from the upstream. ' +
'Supported models: recraft/recraft-v3, openai/gpt-image-1, gpt-image-1-mini, ' +
'gpt-image-2, gpt-5-image, gpt-5-image-mini. ' +
'Aspect: square|landscape|portrait. ' +
'Optional image_urls — use to apply style from reference images while ' +
'keeping transparent background.',
'Optional image_urls for style references.',
inputSchema: {
type: 'object',
properties: {
prompt: { type: 'string', description: 'Text prompt (mention "isolated on transparent background" for best results)' },
prompt: { type: 'string', description: 'Text prompt' },
model: {
type: 'string',
enum: TRANSPARENT_MODELS,
@@ -443,11 +439,7 @@ function registerHandlers(srv) {
image_urls: {
type: 'array',
items: { type: 'string' },
description:
'Optional reference images. Each item is an http(s):// URL OR ' +
'a data:image/... URL. For Recraft v3: single reference. ' +
'For GPT-Image: up to ~4 references recommended.',
default: [],
description: 'Optional reference image URLs.',
},
},
required: ['prompt'],