Skip to main content
Glama

get_image

Retrieve specific image details from BookStack wiki using the image ID to access visual content information.

Instructions

Get details of a specific image

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesImage ID

Implementation Reference

  • Handler logic for the 'get_image' tool: parses the input ID, calls the BookStack client's getImage method, and formats the API response.
    case "get_image": { const id = parseInteger(args.id); const result = await client.getImage(id); return formatApiResponse(result); }
  • Input schema definition for the 'get_image' tool, requiring a numeric 'id' parameter.
    { name: "get_image", description: "Get details of a specific image", inputSchema: { type: "object", properties: { id: { type: "number", description: "Image ID" }, }, required: ["id"], }, },
  • src/index.ts:103-122 (registration)
    Registration of 'get_image' as part of the search and user tools dispatch list in the main MCP server handler.
    const searchUserToolNames = [ "search_all", "list_users", "get_user", "create_user", "update_user", "delete_user", "list_roles", "get_role", "create_role", "update_role", "delete_role", "list_attachments", "get_attachment", "delete_attachment", "list_images", "get_image", "update_image", "delete_image", ];
  • Helper method in BookStackClient that performs the actual API GET request to retrieve image details by ID from the '/image-gallery/{id}' endpoint.
    async getImage(id: number): Promise<ImageGallery> { const response: AxiosResponse<ImageGallery> = await this.api.get( `/image-gallery/${id}` ); return response.data; }

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/lautarobarba/bookstack_mcp_server'

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