{$i18n.t('Tools')} | {$WEBUI_NAME}
{$i18n.t('Tools')}

{#each $tools.filter((t) => query === '' || t.name .toLowerCase() .includes(query.toLowerCase()) || t.id.toLowerCase().includes(query.toLowerCase())) as tool}
{/each}
{ console.log(importFiles); const reader = new FileReader(); reader.onload = async (event) => { const _tools = JSON.parse(event.target.result); console.log(_tools); for (const tool of _tools) { const res = await createNewTool(localStorage.token, tool).catch((error) => { toast.error(error); return null; }); } toast.success('Tool imported successfully'); tools.set(await getTools(localStorage.token)); }; reader.readAsText(importFiles[0]); }} />