Diagnose TSLink
doctorRuns local TSLink diagnostics to find why a share or URL is not working, inspecting config, registry, credentials metadata, and runtime state without writing changes.
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. A reduced MCP role gets only the status reader's daemon state and health findings for its apps, with withheld naming the omitted fields.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "doctor"
}
}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. |