Recordings and snapshots from Lovelace pic click

I have a couple of IP cameras and I also use motioneye addon to detect motion.
But I would also like the feature to click on the camera stream/picture in my Lovelace interface to take snapshot or record. I actually found this feature with calling the camera.snapshot or camera.record feature but it seems this stores the pictures locally on my hassio-server.
In the same way my motioneye stores the videos on my samba/NAS server I also want this for this click to record feature.

But I guess the camera.snapshot stream integration doesn’t allow me to store elsewhere.
But is there a hassio.stdin or command to start record or snapshots through motioneye in the same way?
Then I would use the same storage as my other videos.
What are the API possibilities towards motioneye here?