{data.server_name}

{data.message}

{#if data.mode === 'url'}

{$i18n.t('Open this link to continue:')}

onResponse({ action: 'accept' })}>{data.url} {:else if supported} {#each fields as [name, field], index} {@const id = `elicitation-${index}`} {@const required = data.requestedSchema.required?.includes(name) ?? false}
{#if field.description}

{field.description}

{/if} {#if field.type === 'array'} {:else if field.type === 'boolean' || options(field).length} {:else if field.type === 'number' || field.type === 'integer'} {:else} {/if}
{/each} {:else}

{$i18n.t('Unsupported input format')}

{/if} {#if error}{/if}
{#if data.mode !== 'url' && supported} {/if}