pty_open
Opens a persistent tmux terminal session that survives restarts and returns a session ID for sending commands like 'ssh host' inside the terminal.
Instructions
ローカル永続端末(tmux セッション)を1個開き、session_id を返す。tmux サーバ常駐ゆえ本サーバや クライアントが再起動してもセッションは生存する。リモート操作は専用ツールにせず、開いた端末の中で pty_send(session_id, "ssh host") と打って入る。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | セッション名(省略時は t1, t2... を自動採番) | |
| shell | No | 起動シェル(既定 bash) | bash |