tmux_save_buffer
Save a tmux paste buffer to a file, with options to select a named buffer or append to an existing file. Resolves paths on the target machine for local or SSH sessions.
Instructions
Write a paste buffer to a file (save-buffer).
name selects a named buffer (-b); the default is the most recent one.
append=True appends to the file instead of overwriting (-a). IMPORTANT:
path is resolved on the target — for an SSH target it is a file on
the remote host, not the local machine.
Returns {"saved": path, "name": name}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| name | No | ||
| append | No | ||
| target | No |