Package io.meeds.mcp.server.tool.util
package io.meeds.mcp.server.tool.util
-
ClassDescriptionHelpers to turn an image (from a URL or base64) into a platform
UploadServiceuploadIdthat any upload-consuming API (activity/comment attachments, note featured image, avatars, documents…) accepts.A downloaded image: its bytes, resolved mime type and a file name.The mutually exclusive ways to provide an image toUploadToolUtils.resolveImage(AttachmentService, FileService, Identity, UploadToolUtils.ImageSource, long): a public http(s) URL, base64-encoded bytes, a reference to an existing platform attachment (attachmentObjectType+attachmentObjectId), or the id of a file the user sent through an upload link (uploadId, seeUploadService.createUploadToken(String, String, long)).