Can I use a code to take screenshots of MR scenes in Vision Pro/VisionOS

Can VisionOS take screenshots besides simultaneously pressing buttons