diff --git a/src/lib/components/chat/ToolServersModal.svelte b/src/lib/components/chat/ToolServersModal.svelte index 71f83f64f3..269a84761d 100644 --- a/src/lib/components/chat/ToolServersModal.svelte +++ b/src/lib/components/chat/ToolServersModal.svelte @@ -1,13 +1,8 @@ @@ -46,22 +60,47 @@ {#each selectedTools as tool} - - - - {tool?.name} + {@const status = authStatus(tool)} + {@const toolSpecs = tool?.specs ?? []} + 0} + disabled={toolSpecs.length === 0} + > + + + + + {tool?.name} + {#if tool?.meta?.description} - + {tool?.meta?.description} {/if} - + + {$i18n.t('Enabled')} + {status.label} + {#if toolSpecs.length > 0} + + {$i18n.t('{{COUNT}} tools', { COUNT: toolSpecs.length })} + + {/if} + + + + {#if toolSpecs.length > 0} + {#each toolSpecs as toolSpec} + + {toolSpec?.name ?? toolSpec?.function?.name} + + {/each} + {/if} + {/each}