# LibTmux::Model::SessionRef

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Model.rakumod#L123
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-sessionref/

Value-only command target for a session in one daemon incarnation.

Value-only command target for a session in one daemon incarnation.

## Members

### Common operations

- [`new-window`](/en/raku/latest/reference/libtmux-model-sessionref-new-window/) (method): Create a window and return its reported identity without refreshing observations.
- [`kill`](/en/raku/latest/reference/libtmux-model-sessionref-kill/) (method): Destroy the addressed entity; retained observations remain unchanged.
- [`rename`](/en/raku/latest/reference/libtmux-model-sessionref-rename/) (method): Store the exact name; refuse characters or separators the daemon would change.
- [`detach-clients`](/en/raku/latest/reference/libtmux-model-sessionref-detach-clients/) (method): Request detachment of clients in this session; acknowledgement is not client exit.
- [`inspect`](/en/raku/latest/reference/libtmux-model-sessionref-inspect/) (method): Acquire a fresh graph and require exactly one observed entity with this ID.
- [`next-window`](/en/raku/latest/reference/libtmux-model-sessionref-next-window/) (method): Select the next session window, optionally restricting to activity alerts.
- [`previous-window`](/en/raku/latest/reference/libtmux-model-sessionref-previous-window/) (method): Select the previous session window, optionally restricting to activity alerts.
- [`last-window`](/en/raku/latest/reference/libtmux-model-sessionref-last-window/) (method): Select the session's previous current window.
- [`command`](/en/raku/latest/reference/libtmux-model-sessionref-command/) (method): A bounded, identity-guarded explicit command. Arguments keep tmux semantics.
- [`lock`](/en/raku/latest/reference/libtmux-model-sessionref-lock/) (method): Ask tmux to lock clients attached to this session.

### Other members

- [`entity`](/en/raku/latest/reference/libtmux-model-sessionref-entity/) (method): Return the registered entity schema without I/O.
- [`environment`](/en/raku/latest/reference/libtmux-model-sessionref-environment/) (method): Construct a session environment facade without acquiring current values.
- [`hooks`](/en/raku/latest/reference/libtmux-model-sessionref-hooks/) (method): Construct a value-only hook facade; its reads and writes are explicit operations.
- [`options`](/en/raku/latest/reference/libtmux-model-sessionref-options/) (method): Construct a value-only option facade scoped to this captured identity.
- [`renumber-windows`](/en/raku/latest/reference/libtmux-model-sessionref-renumber-windows/) (method): Renumber this session's links; previously captured indices may become stale.
- [`same-entity`](/en/raku/latest/reference/libtmux-model-sessionref-same-entity/) (method): Compare scoped identity without acquiring current state.
