\documentclass{article}
\usepackage[margin=2cm]{geometry}
\usepackage[style=web,theme=light]{chatui}

\begin{document}

\section*{chatui: web style (light theme)}

\begin{chatconversation}[chat.example.com]

\begin{chatuser}[John Doe]
How do I show tool calls in a LaTeX paper?
\end{chatuser}

\begin{chatthinking}
\tstep{User wants a reusable way to render tool-call traces.}
\tstep{A tcolorbox with a boxed title and monospace body fits best.}
\tstep{Expose args/result as separate helper commands.}
\end{chatthinking}

\begin{chattool}{web\_search}
\toolargs{query="latex tool call trace package"}
\toolresult{3 results found.}
\end{chattool}

\begin{chatassistant}
Use the \texttt{chattool} environment from the \texttt{chatui} package:
it renders a titled box with a status glyph, plus \texttt{\textbackslash toolargs}
and \texttt{\textbackslash toolresult} helpers for the payload.
\end{chatassistant}

\end{chatconversation}

\end{document}
