Connect this host to Tailscale
tailscale_connectBring this host online on its tailnet, handling reconnection and login prompts. Returns connection status without blocking for authentication.
Instructions
Bring this host online on its tailnet (tailscale up). Connectivity only — it does not change preferences (use tailscale_set_prefs).
If already Running, returns immediately; if Stopped with a valid key, runs a flag-free up (silent, no browser) then polls until reachable; if login/re-auth is needed it does NOT block — it returns a login authURL (or logs in headlessly if TAILSCALE_AUTH_KEY_FILE is set). action ∈ already_connected | reconnected | needs_login. Success means state=running. No elevation needed on Windows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| state | Yes | running | running_local_only | stopped | needs_login | starting | no_state | daemon_unreachable | unknown | |
| action | Yes | What the tool did. | |
| health | Yes | ||
| authURL | No | ||
| dnsName | No | ||
| message | Yes | Human-readable summary. | |
| version | No | ||
| hostName | No | ||
| connected | Yes | True only when BackendState=Running AND Self.Online. | |
| keyExpiry | No | ||
| keyExpired | Yes | ||
| selfOnline | Yes | ||
| haveNodeKey | Yes | ||
| backendState | Yes | ||
| tailscaleIPs | Yes | ||
| currentTailnet | No |