App Intents get "App" as a parameter (SwifUI with IOS 17.0)

Hello, I have a question regarding app Intents. I have a simple App Intent and it is working as expected (I can see it in shortcuts and the action shows a phrase and opens my app).

I would now want to ask the user for an "App" parameter, that would be any app the user has downloaded on his iPhone.

Here my example intent:

struct SayPhraseIntent: AppIntent {
    static var title: LocalizedStringResource = "See a text."
    static var description = IntentDescription("Just says whatever text you type in.")

    @Parameter(title: "Text")
    var text: String?

    func perform() async throws -> some ProvidesDialog {
        guard let providedText = text else {
            throw $phrase.needsValueError("What text do you want to see?")
        }
        return .result(dialog: IntentDialog(stringLiteral: providedText))
    }
}

An example of a shortcut that asks this is

I have seen some apps do it so it must be possible, but I cannot find anywhere the Type of the @Parameter I would need to get that from a user through the shortcut app.

Any help or suggestions would be appreciated.

App Intents get "App" as a parameter (SwifUI with IOS 17.0)
 
 
Q