pinterest_get_image_info
Extract Pinterest image details like metadata, source, and context from any image URL to analyze content and gather information.
Instructions
Get Pinterest image information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | Image URL |
Implementation Reference
- pinterest-mcp-server.ts:498-531 (handler)The handler function that extracts the image_url from args and returns formatted image information including URL, source, and timestamp.private async handlePinterestGetImageInfo(args: any) { try { // Extract parameters const imageUrl = args.image_url; // Return image info return { content: [ { type: 'text', text: `Pinterest Image Information`, }, { type: 'text', text: JSON.stringify({ image_url: imageUrl, source: 'Pinterest', timestamp: new Date().toISOString(), }, null, 2), }, ], }; } catch (error: any) { console.error('Error getting Pinterest image info:', error); return { content: [ { type: 'text', text: `Error getting image info: ${error.message}`, }, ], }; } }
- pinterest-mcp-server.ts:201-210 (schema)Input schema defining the required 'image_url' parameter for the tool.inputSchema: { type: 'object', properties: { image_url: { type: 'string', description: 'Image URL', }, }, required: ['image_url'], },
- pinterest-mcp-server.ts:198-211 (registration)Tool registration in the ListTools response, including name, description, and input schema.{ name: 'pinterest_get_image_info', description: 'Get Pinterest image information', inputSchema: { type: 'object', properties: { image_url: { type: 'string', description: 'Image URL', }, }, required: ['image_url'], }, },
- pinterest-mcp-server.ts:249-250 (registration)Dispatcher case in CallToolRequest handler that routes to the specific handler function.case 'pinterest_get_image_info': return await this.handlePinterestGetImageInfo(request.params.args || request.params.arguments);