Diagnose TSLink
doctorRun TSLink diagnostics if a share or URL fails and status isn't enough. Inspect config, registry, credentials metadata, runtime state; report findings by severity, no writes, return health exit code.
Instructions
Run local TSLink diagnostics and return findings by severity. Use this when a share or URL is not working and status was not enough; it inspects local config, registry, credentials metadata and runtime state, writes nothing, and reports health_exit_code instead of failing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| probe_external | No | Also attempt a short TCP connection to non-loopback service targets. Leave false unless the user asked to test reachability of a remote backend. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Resolved config, registry, runtime snapshot, auth handoff and PID paths. | |
| alerts | No | Recent alert events and masked notifier status. | |
| counts | Yes | Service count plus finding counts by severity. | |
| daemon | Yes | Whether the local TSLink daemon is running, and its PID when it is. | |
| portal | No | Home portal state and exact URL. | |
| status | Yes | ||
| findings | Yes | ||
| node_keys | No | ||
| access_log | No | Local access-log health: last_write, drops, size_bytes and error. | |
| credentials | No | Stored credential expiry with metadata provenance. | |
| guest_links | No | ||
| supervision | No | Verified OS supervision, autostart, restart policy, and diagnostic evidence. | |
| health_status | Yes | ||
| tailscale_ssh | Yes | Tailscale SSH enablement for this node, read from the local Tailscale client: state is enabled, disabled, or unknown, and acl_rule_required records that a tailnet ACL ssh rule is also needed. Informational only; it never changes health_status or health_exit_code. | |
| schema_version | Yes | ||
| credential_mode | Yes | ||
| credential_tier | Yes | ||
| execution_status | Yes | ||
| health_exit_code | Yes | Exit code `tslink doctor` would return for this health status. It is reported, not applied: the tool result itself is successful. | |
| runtime_snapshot | Yes | Freshness classification of runtime.json against the current daemon and registry fingerprint. |