tailscale_status queries the Tailscale API and returns every device enrolled in your tailnet. It separates devices into online and offline, and returns key metadata for each one.
This tool is the natural starting point for any SSH workflow — use it to discover available hostnames before calling ssh_exec, or to debug why a device isn’t reachable.
Requires
TAILSCALE_API_KEY to be set in your environment. Generate a key at tailscale.com/admin/settings/keys.Parameters
This tool takes no parameters. It fetches your entire tailnet automatically.Return value
Always
true on a successful API call.Aggregate counts for the tailnet.
Array of device objects, one per enrolled device.
Example output
Common use cases
Discover hostnames before SSH Calltailscale_status at the start of a session to build a map of available devices. The hostname field is what you pass directly to ssh_exec.
Check online status before running commands
If ssh_exec fails to connect, tailscale_status will show whether the device is offline vs. a real SSH configuration problem.
Audit your network
Spot devices running old client versions (clientVersion), identify machines that haven’t been seen recently (lastSeen), or verify a new device enrolled successfully.
Save a device map to the knowledge base
After discovering your devices, use gist_kb to save the hostname-to-purpose mapping so future sessions don’t need to re-run discovery.