ssh-viewer-ensure
Ensure a viewer exists for an SSH session. Terminal mode reuses a running viewer to prevent duplicate windows.
Instructions
Ensure that a viewer exists for a session. Terminal mode is singleton-scoped and will reuse a running viewer instead of opening duplicates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Viewer launch mode | |
| session | No | Session id, session ref, or session name. Defaults to the active session | |
| singletonScope | No | Deduplication scope for terminal viewers |