Set the metadata provider this service should use. When unset, falls back to Metadata.Provider.
Create attachment reference tokens for message text. These tokens are stored in the Message field to reference attachments.
Use CreateThumbnail.
Create a thumbnail from an image file. Returns a base64 data URL of the thumbnail.
Use GetImageDimensions.
Get image dimensions from a file
OptionalcontextUser: UserInfoLoad attachments for a single message
OptionalcontextUser: UserInfoOptionalcontextUser: UserInfoLoad all attachments for a list of conversation detail IDs. Returns a map of ConversationDetailID -> MessageAttachment[]
OptionalcontextUser: UserInfoProcess a file and create a PendingAttachment. This creates the data structure needed for the mention editor component.
OptionalcontextUser: UserInfoOptionalagent: MJAIAgentEntity | nullUse SaveAttachments.
Save pending attachments to the database. Returns the saved attachment entities.
ID of the conversation detail to attach to
Array of pending attachments from the mention editor
OptionalcontextUser: UserInfoUser context for the operation
Optionalagent: MJAIAgentEntity | nullThe agent this turn is addressed to, when the caller has resolved one. Only its
InlineStorageThresholdBytes is read, and only to make the inline-vs-storage decision match
what the server would decide for the same file. Omitting it falls back to the system default,
which is correct for a turn with no agent — but a caller that HAS an agent and does not pass
it produces the cross-surface drift this shared policy exists to remove.
Service for managing conversation attachments. Handles loading, saving, and converting attachments between different formats.