@z_ai/mcp-server 0.0.11 → 0.0.12
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.
|
@@ -86,7 +86,7 @@ export function registerImageAnalysisTool(server) {
|
|
|
86
86
|
);
|
|
87
87
|
server.tool('analyze_image', 'Analyze an image using advanced AI vision models with comprehensive understanding capabilities. Supports both local files and remote URL. Maximum file size: 5MB', {
|
|
88
88
|
image_source: z.string().describe('Local file path or remote URL to the image (supports PNG, JPG, JPEG)'),
|
|
89
|
-
prompt: z.string().describe('Detailed text prompt.If the task is front-end code replication
|
|
89
|
+
prompt: z.string().describe('Detailed text prompt. If the task is **front-end code replication**, the prompt you provide must be: "Describe in detail the layout structure, color style, main components, and interactive elements of the website in this image to facilitate subsequent code generation by the model." + your additional requirements. \ For **other tasks**, the prompt you provide must clearly describe what to analyze, extract, or understand from the image.')
|
|
90
90
|
}, async (params) => {
|
|
91
91
|
try {
|
|
92
92
|
// Validate parameters
|