pane:send_paste(text)

{{since('20220624-141144-bd1b7c5d')}}

Sends text to the pane as though it was pasted. If bracketed paste mode is enabled then the text will be sent as a bracketed paste. Otherwise, it will be sent as-is.