[Question] Is there any API to discussion with the current tab of iTerm?

Hey,

Hope you're going well.

Is there any way to discuss with iterm by any chance?

I would like to send a command to iterm via a protocol like iterm://send/?q={MY_STRING}

Thanks