Chat Tool Calls
Display of tool/function call results in AI chat interfaces.
Generated from the package's public source.
API
ChatToolCallPropsinterface
Props
class?stringinput?string— Input parameters (stringified).namestring— Name of the tool/function being called.output?string— Output/result (stringified).status?ToolCallStatus— Current execution status.style?string | CSSProperties
children: Element
ChatToolCallsRootPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
ChatToolCallToolInputPropsinterface
Props
class?stringcontent?string— Override input content. If not provided, reads from ToolCall props context is not available directly.defaultOpen?boolean— Whether the section is initially open.style?string | CSSProperties
children: Element
ChatToolCallToolNamePropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
ChatToolCallToolOutputPropsinterface
Props
class?stringcontent?string— Override output content.defaultOpen?boolean— Whether the section is initially open.style?string | CSSProperties
children: Element
ChatToolCallToolStatusPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
Rootcomponent
Root(props: ChatToolCallsRootProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
ToolCallcomponent
ToolCall(props: ChatToolCallProps): Element
Props
class?stringinput?string— Input parameters (stringified).namestring— Name of the tool/function being called.output?string— Output/result (stringified).status?ToolCallStatus— Current execution status.style?string | CSSProperties
children: Element
ToolCallStatustype
ToolInputcomponent
ToolInput(props: ChatToolCallToolInputProps): Element
Props
class?stringcontent?string— Override input content. If not provided, reads from ToolCall props context is not available directly.defaultOpen?boolean— Whether the section is initially open.style?string | CSSProperties
children: Element
ToolNamecomponent
ToolName(props: ChatToolCallToolNameProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
ToolOutputcomponent
ToolOutput(props: ChatToolCallToolOutputProps): Element
Props
class?stringcontent?string— Override output content.defaultOpen?boolean— Whether the section is initially open.style?string | CSSProperties
children: Element
ToolStatuscomponent
ToolStatus(props: ChatToolCallToolStatusProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element