/** * @fileoverview `brapi_get_image` — fetch image bytes for up to 5 imageDbIds * and return them inline as `type: image` content blocks. Tries the BrAPI * `/images/{id}/imagecontent` endpoint when the server advertises it; * otherwise falls back to the `imageURL` field from the image metadata. * Hard cap of 5 images per call to prevent context explosion. * * @module mcp-server/tools/definitions/brapi-get-image.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const brapiGetImage: import("@cyanheads/mcp-ts-core").ToolDefinition; alias: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ alias: z.ZodString; images: z.ZodArray; data: z.ZodString; metadata: z.ZodObject<{ imageDbId: z.ZodString; imageName: z.ZodOptional; imageFileName: z.ZodOptional; imageHeight: z.ZodOptional>; imageWidth: z.ZodOptional>; mimeType: z.ZodOptional; imageURL: z.ZodOptional; observationUnitDbId: z.ZodOptional; observationUnitName: z.ZodOptional; studyDbId: z.ZodOptional; studyName: z.ZodOptional; imageTimeStamp: z.ZodOptional; copyright: z.ZodOptional; description: z.ZodOptional; }, z.core.$loose>; }, z.core.$strip>>; errors: z.ZodArray>; warnings: z.ZodArray>; }, z.core.$strip>, readonly [{ readonly reason: "unknown_alias"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "No connection has been registered under the requested alias"; readonly recovery: "Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_get_image."; }, { readonly reason: "images_unsupported"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "BrAPI server does not advertise /images in /serverinfo"; readonly recovery: "Run brapi_server_info to inspect the advertised endpoints, or call brapi_connect with a different alias for a server that exposes /images."; }], undefined>; //# sourceMappingURL=brapi-get-image.tool.d.ts.map