{{ $tools := site.Data.tools }} {{ if not $tools }}{{ errorf "web/data/tools.json is missing or empty; run make docs-tools" }}{{ end }} {{ $schemas := site.Data.tool_schemas }} {{ if not $schemas }}{{ errorf "web/data/tool_schemas.json is missing or empty; run make docs-tools" }}{{ end }} {{ $groups := site.Data.tool_groups }} {{ if not $groups }}{{ errorf "web/data/tool_groups.yaml is missing or empty" }}{{ end }}

Color key read create update delete

{{ range $g := $groups }} {{ $rows := where $tools "group" $g.key }} {{ with $rows }}

{{ $g.label }}

{{ range . }} {{ $parts := split .name "_" }} {{ $verb := index $parts 0 }} {{ $rest := "" }} {{ if gt (len $parts) 1 }}{{ $rest = delimit (after 1 $parts) "_" }}{{ end }} {{ $schema := index $schemas .name }} {{ end }}
Tool Summary and inputs Tier Safety
{{ $verb }}{{ with $rest }}_{{ . }}{{ end }}

{{ .summary }}

{{ with $schema }} {{ with .arguments }}
Arguments ({{ len . }})
{{ range . }}
{{ .name }} {{ if .required }}required{{ else }}optional{{ end }} {{ with .type }}{{ . }}{{ end }}
{{ with .description }}

{{ . }}

{{ end }}

{{ with .enum }}enum: {{ delimit . ", " }}{{ end }} {{ if isset . "default" }}default: {{ index . "default" | jsonify }}{{ end }} {{ with .format }}format: {{ . }}{{ end }} {{ with index . "additional_properties" }}additional properties: {{ . }}{{ end }} {{ with .items }}items: {{ .type }}{{ end }}

{{ with .children }}
    {{ range . }}
  • {{ .name }}{{ with .type }} {{ . }}{{ end }}{{ if .required }} required{{ end }}{{ with .description }} — {{ . }}{{ end }}
  • {{ end }}
{{ end }}
{{ end }}
{{ end }} {{ with .examples }}
Input examples ({{ len . }}) {{ range . }}
{{ . | jsonify }}
{{ end }}
{{ end }} {{ end }}
{{ if eq .tier "full" }} full toolset {{ else }} core {{ end }} {{ .safety }}
{{ end }} {{ end }}