pty_close
Close an active PTY session to terminate it, discard logs and read position, and get a structured receipt. Retrying the same session ID is safe, returning 'closed' or 'already_closed'.
Instructions
セッションを閉じ、ログ/読取位置を破棄する。同じsession_idへの再試行は安全で、closed/already_closedのstructured receiptを返す。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote | No | 別端末のAitermで実行する時のSSH接続情報。hostだけならssh_configの接続名として使う。Aitermは接続情報を保存・管理しない。passphraseは会話記録に残るため、ssh-agentかpassphrase_env(環境変数名)を推奨する。 | |
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | ||
| outcome | Yes | ||
| session_id | Yes |