import { Show } from 'solid-js'; import { defineWebComponent } from './define'; import { Tool, type ToolPart } from '../components/tool'; interface Props extends Record { /** The tool-call to display. Set as a JS property. */ tool?: ToolPart; /** Start expanded. */ open?: boolean; } /** * `` — a collapsible tool-call panel (input/output inspection with a * state badge). Data via the `tool` property; `open` flag starts it expanded. */ defineWebComponent('kc-tool', { tool: undefined, open: false, }, (props, { flag }) => ( ));