That is not possible currently. outputs and outputFormats are not available to the template process.
What you COULD try is to range through .AlternativeOutputFormats per page and check there, if itβs an WebAppManifest as type. But I never tried that.
I add my manifest-link manually and trust myself to have this output format. If you find a solution let us know