RPC Call via UART

Hi, I have 2 ESP32s connected via UART.
My goal is for one micro to call RPCs on the other micro via UART.

Of course I can do this from the development machine via mos call but i’d like to do it from one micro to the other. Is it feasible?

Thanks