window:get_title()

{{since('20220807-113146-c2fee766')}}

Returns the window title as set by OSC 0, OSC 2 in a contained pane, or through window:set_title().