How does the Pi communicate with the Mini? Software stack? Zero details and useful information in this post.
The Raspberry Pi 4 can emulate a USB keyboard and mouse, and there are inexpensive adapters that allow it to capture display output. You can also hook it up to a relay to cycle power for an external device.
You might want to look at Asahi Linux's Central Scrutinizer for some insights on the fancier stuff that can be done over the USB-C port.