Can I import images into my app with App Intent Schemas?

I'm trying to create an App Intent that takes in an image and copies it to a destination within my app.

Sure, this can be done with shortcuts, but that's lame, I want siri to grab an image off the screen and invoke the action!

Without an app schema, it doesn't seem like siri can tell what's possible in the app, so I'm trying to find a schema that fits?

I've started trying to do this with the photos.addAssetsToAlbum App Intent schema, but it doesn't seem like Siri is onboard with the concept.

It's replied many times that it is unable to add things to my App and that I should try via other means like opening my app and importing directly.

Should be I be trying this with a different intent schema?

Answered by Frameworks Engineer in 891857022

In addition to the .photos.addAssetsToAlbum, you will need to adopt the .photos.createAssets schema.

To support incoming content in your app, you can add the Transferable protocol to the entity representing the incoming content. Then, use importing on the transferRepresentation of that entity.

See these sessions for more information on Transferable.

WWDC26 session Build intelligent Siri experiences with App Schemas

WWDC24 session What's new in App Intents

I was thinking about files.open, but documentation says that Schema is not available to Siri, only shortcuts

In addition to the .photos.addAssetsToAlbum, you will need to adopt the .photos.createAssets schema.

To support incoming content in your app, you can add the Transferable protocol to the entity representing the incoming content. Then, use importing on the transferRepresentation of that entity.

See these sessions for more information on Transferable.

WWDC26 session Build intelligent Siri experiences with App Schemas

WWDC24 session What's new in App Intents

Can I import images into my app with App Intent Schemas?
 
 
Q