pane:get_text_from_semantic_zone(zone)
{{since('20230320-124340-559cb7b0')}}
This is a convenience method that calls pane:get_text_from_region() on the supplied zone parameter.
Use pane:get_semantic_zone_at() or pane:get_semantic_zones() to obtain a zone.
See Shell Integration for more information about semantic zones.