Skip to main content
Glama

display_generated_image

Display generated images in a new tab by providing the image URL. Simplifies visualization and integration for streamlined AI workflows on the MCP-Claude server.

Instructions

This function will display the generated image in a new tab

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageUrlYesThe URL of the generated image

Implementation Reference

  • The handler function that executes the tool logic: calls displayGeneratedImage with the imageUrl and returns a text message confirming the display.
    async ({ imageUrl }) => { await displayGeneratedImage(imageUrl); return { content: [ { type: "text", text: `Image displayed at ${imageUrl}`, }, ], }; }
  • Input schema using Zod for the imageUrl parameter.
    { imageUrl: z.string().describe("The URL of the generated image"), },
  • src/index.ts:264-281 (registration)
    Registration of the 'display_generated_image' tool with McpServer using server.tool.
    server.tool( "display_generated_image", "This function will display the generated image in a new tab", { imageUrl: z.string().describe("The URL of the generated image"), }, async ({ imageUrl }) => { await displayGeneratedImage(imageUrl); return { content: [ { type: "text", text: `Image displayed at ${imageUrl}`, }, ], }; } );

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/virajsamarasinghe/MCP-Claude'

If you have feedback or need assistance with the MCP directory API, please join our Discord server