connect_host
Open or reuse a terminal tab for a saved Termius host, wait for connection, and claim it for this session; unclaimed tabs from this session are reused, others never taken.
Instructions
Get a tab for a SAVED Termius host (exact label from list_hosts). A tab that
THIS session's connect_host opened earlier (list_terminal_sessions marks it "opened by
agent: THIS session") and that nobody else has claimed is REUSED; otherwise a NEW TAB is
opened (wait until connected, then claim). Tabs a human or another session opened are
never reused implicitly. new_tab=true always opens a new tab. A tab claimed by another session is
never taken: the call fails and says who holds it.
Termius' own saved identity / key / jump hosts are used; no credential is read or
passed here. Only saved hosts: no free-form address, no new window. A first-time
host-key prompt is answered per TERMIUS_HOSTKEY (default: "ask", the
fingerprint is reported back; a CHANGED key is never accepted). A password prompt
is NOT answered: read_terminal and ask the human.
dry_run=true only checks that the host and Termius' connect function are found.
TERMIUS_CONNECT_ALLOW (comma separated labels) can restrict which hosts are allowed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| wait | No | ||
| dry_run | No | ||
| new_tab | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |