fix: simplify upload_image schema for Figma
This commit is contained in:
1 parent
274b8034bd
commit
e9b6d89fb0
1 file changed
+2
-15
+2
-15
@@ -455,24 +455,11 @@ function registerHandlers(srv) {
|
||||
},
|
||||
{
|
||||
name: 'upload_image',
|
||||
description:
|
||||
'Upload a reference image to the server for use in image_urls. ' +
|
||||
'Accepts a base64 data URL (e.g. "data:image/png;base64,iVBOR...") or ' +
|
||||
'an HTTP(S) URL. Returns a download_url that can be passed to generate_image ' +
|
||||
'or generate_image_transparent as image_urls entry. ' +
|
||||
'The uploaded file persists only while the container is alive.',
|
||||
description: 'Upload an image to use as reference. Returns a URL for image_urls.',
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
data: {
|
||||
type: 'string',
|
||||
description: 'Base64-encoded image data (raw base64 string, not including data: URI prefix) OR a full data:image URL OR an http(s):// URL to fetch.',
|
||||
},
|
||||
filename: {
|
||||
type: 'string',
|
||||
description: 'Optional filename hint (e.g. "ref.png"). Auto-generated if omitted.',
|
||||
default: '',
|
||||
},
|
||||
data: { type: 'string', description: 'base64 image data (with or without data: URI prefix)' },
|
||||
},
|
||||
required: ['data'],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user