{{/* Set Database Title */}} {{ $dbTitle := .Page.Title }} {{/* Gather & Pre-filter Native Tools (from the local "tools" sub-folder) */}} {{ $validNativeTools := slice }} {{ $localTools := .Page.GetPage "tools" }} {{ if $localTools }} {{ range $localTools.RegularPages }} {{ if not .Params.is_wrapper }} {{ $validNativeTools = $validNativeTools | append . }} {{ end }} {{ end }} {{ end }} {{/* Track if we've printed the main H3 header yet */}} {{ $headerPrinted := false }} {{/* Display Native Tools ONLY if valid ones exist */}} {{ if gt (len $validNativeTools) 0 }}
| Tool Name | Description |
|---|---|
| {{ .Title }} | {{ .Description | default "No description provided." }} |
{{ $dbTitle }} maintains full compatibility with {{ $remoteDbTitle }}, allowing you to use the following tools with this connection:
| Tool Name | Description |
|---|---|
| {{ .Title }} | {{ .Description | default "No description provided." }} |
Warning: Tool directory '{{ $dirPath }}' not found.
{{ end }} {{ end }} {{ end }} {{/* Fallback if absolutely NO tools exist anywhere */}} {{ if and (not $headerPrinted) (not $dirsParam) }}No tools found to display.
{{ end }}