libtmux Reference MCP Search
On this page

server.Server.snapshot

View as Markdown

Module
server
Declared in
Server
Package
@libtmux/libtmux
Source
packages/libtmux/src/server.ts
snapshot ( options : : SnapshotOptions = {} ) Promise<ServerSnapshot>
method [source]
method [source]
snapshot

Acquire an immutable view of the server at this instant.

Acquisition is the only step that talks to tmux. Everything reachable from the returned value resolves locally, so traversal and filtering issue no commands and an earlier snapshot keeps reporting its own instant.

Examples

const now = await server.snapshot();
now.windows.count();

0 declared, 0 inherited

Esc

Type to search.