libtmux is the tool behind tmuxp, a tmux workspace manager in python. It builds upon tmux's target and formats to create an object mapping to traverse, inspect and interact with live tmux sessions.