Tailscale status (this host)
tailscale_statusReport this host's Tailscale connection state as a normalized state and connected boolean, optionally including peers.
Instructions
Report this host's Tailscale connection state, read from tailscale status --json.
Returns a normalized state and a connected boolean (true only when BackendState=Running AND Self.Online). Assigned Tailscale IPs persist even while Stopped, so an IP alone does not mean connected. The plain-status exit code is ignored (it is 1 when stopped); state comes from the JSON. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peers | No | Include the peer list (larger output). Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| state | Yes | running | running_local_only | stopped | needs_login | starting | no_state | daemon_unreachable | unknown | |
| health | Yes | ||
| authURL | No | ||
| dnsName | No | ||
| 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 |