I wonder if you could do something similar with an ssh account which is hard-wired to run 'ytalk' (https://en.wikipedia.org/wiki/Talk_(software)).
command="/usr/bin/foo" ssh-ed25519 AAAA....No it wont! The specified command might provide sftp, scp, telnet or stream a film.
made me laugh