opnsense_tailscale_settings_get
Retrieve current Tailscale plugin configuration including enabled state, port, auth-key, advertised routes, accept routes, accept DNS, and exit node settings.
Instructions
Get current Tailscale plugin settings (enabled, port, auth-key, advertise-routes, accept-routes, accept-dns, exit-node).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/tailscale.ts:41-48 (registration)Tool definition registration for opnsense_tailscale_settings_get, defining its name, description, and empty input schema.
{ name: "opnsense_tailscale_settings_get", description: "Get current Tailscale plugin settings (enabled, port, auth-key, advertise-routes, accept-routes, accept-dns, exit-node).", inputSchema: { type: "object" as const, properties: {}, }, }, - src/tools/tailscale.ts:128-131 (handler)Handler for opnsense_tailscale_settings_get: calls client GET on /tailscale/settings/get and returns the JSON response.
case "opnsense_tailscale_settings_get": { const result = await client.get("/tailscale/settings/get"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/client/opnsense-client.ts:28-35 (helper)OPNsenseClient.get() helper method that performs the HTTP GET request used by the handler.
async get<T>(path: string): Promise<T> { try { const response = await this.http.get<T>(path); return response.data; } catch (error: unknown) { throw extractError(error, `GET ${path}`); } } - src/index.ts:69-69 (registration)Registration mapping: each tailscale tool definition (including opnsense_tailscale_settings_get) is mapped to handleTailscaleTool.
for (const def of tailscaleToolDefinitions) toolHandlers.set(def.name, handleTailscaleTool);