{$i18n.t('Available Tools')}
{#if selectedTools.length > 0} {#if $toolServers.length > 0}
{$i18n.t('Tools')}
{/if}
{#each selectedTools as tool} {@const status = authStatus(tool)} {@const toolSpecs = tool?.specs ?? []} 0} disabled={toolSpecs.length === 0} >
{tool?.name}
{#if status} {status.label} {/if} {#if toolSpecs.length > 0} {toolSpecs.length} {/if} {#if status} {/if}
{#if tool?.meta?.description}
{tool?.meta?.description}
{/if}
{#if toolSpecs.length > 0} {#each toolSpecs as toolSpec}
{toolSpec?.name ?? toolSpec?.function?.name}
{/each} {/if}
{/each}
{/if} {#if $toolServers.length > 0}
{$i18n.t('Tool Servers')}
{$i18n.t('Open WebUI can use tools provided by any OpenAPI server.')}
{$i18n.t('Learn more about OpenAPI tool servers.')}
{#each $toolServers as toolServer}
{toolServer?.openapi?.info?.title} - v{toolServer?.openapi?.info?.version}
{toolServer?.openapi?.info?.description}
{toolServer?.url}
{#each toolServer?.specs ?? [] as tool_spec}
{tool_spec?.name}
{tool_spec?.description}
{/each}
{/each}
{/if}