Thanks, J0hn, that did it! Adopting the .files.file schema (@AppEntity(schema: .files.file)) with a FileEntityIdentifier and a FileRepresentation exporting a SentTransferredFile, then annotating the on-screen image with .appEntityIdentifier(...), I can now say "send this to " and Siri lifts the on-screen (filtered) image out to another app. Confirmed on device (iOS 27).
But still, I wonder if this more generic approach shouldn’t also work.
Before switching to .files.file, I had a plain custom AppEntity annotated on-screen with the same .appEntityIdentifier modifier, conforming to Transferable with image DataRepresentations (JPEG/PNG). That entity's EntityQuery.entities(for:) was essentially never called (the annotation wasn't consumed) whereas the otherwise-identical setup with a .files.file schema entity resolves and transfers fine. Is on-screen consumption intended to be limited to the predefined assistant schemas, or should a custom AppEntity + Transferable also be a supported way to expose arbitrary on-screen content, as "Making onscreen content available to Siri and Apple Intelligence" seems to imply?
Related: .files.file needs a real file on disk at resolution time (the system builds the entity's display representation from it), so an in-memory image representation doesn't appear possible. I’d have expected a lighter-weight path for transient content, similar to or via IntentFile.
Topic:
Machine Learning & AI
SubTopic:
Apple Intelligence
Tags: