{ if (e.key === 'Enter' || e.key === ' ') toggle(); }} aria-expanded={isExpanded} > tool {toolCall.name} {#if summonAgentId !== null} {/if} {#if toolCall.result !== undefined} {#if toolCall.result.includes("[USER INTERRUPT]")} interrupted {:else if isShell && shellResult !== null} exit {shellResult.exitCode} {:else if toolCall.isError} error {:else} done {/if} {:else} pending {/if}

Arguments

{JSON.stringify(toolCall.arguments, null, 2)}
{#if isShell && toolCall.result !== undefined} {#if shellResult !== null}

stdout:

{shellResult.stdout || "(empty)"}
{#if shellResult.stderr}

stderr:

{shellResult.stderr}
{/if}
exit code: {shellResult.exitCode}
{:else}

Result

{toolCall.result}
{/if} {:else if isShell && toolCall.shellOutput} {#if toolCall.shellOutput.stdout}

stdout

{toolCall.shellOutput.stdout}
{/if} {#if toolCall.shellOutput.stderr}

stderr

{toolCall.shellOutput.stderr}
{/if} Running... {:else if toolCall.result !== undefined}

Result

{toolCall.result}
{/if}