Renders an AI tool execution status card showing tool name, arguments, status icon, and collapsible result output — with separate display modes for admin users (expandable accordion with full details) and end-client Fae users (static, non-expandable summary row). ## Key Components - **`ToolExecutionDisplay`** — Primary `forwardRef` component that renders the tool execution card - **`useCollapsible`** — Hook managing animated expand/collapse of the detail body panel - **`ArgRow`** — Renders individual argument key/value pairs in the expanded body - **`ResultBlock`** — Displays the tool's result string when execution is complete - **`renderStatusIcon`** — Internal helper returning `DotsLoaderIcon` (executing), `CheckCircleIcon` (success), or `XmarkCircleIcon` (failure) ## Props (`ToolExecutionDisplayProps`) | Prop | Description | |---|---| | `message` | Tool execution message with `type`, `parameters`, `result`, `success`, `toolTitle`, `toolExplanation` | | `assistantType` | `"mingo"` or `"fae"` — controls tool icon visibility | | `variant` | `"admin"` (default) or `"client"` — controls expandability and visible fields | | `className` | Additional CSS classes | ## Variant Behaviour - **`variant="admin"`** — Expandable accordion showing tool icon, concise `toolTitle`, all args (command body first), and result output - **`variant="client"`** — Static row showing only `toolExplanation` and status icon; command body, raw args, and result are hidden ## Usage Example ```typescript import { ToolExecutionDisplay } from "./tool-execution-display" ``` ## Source [`tool-execution-display.tsx`](https://github.com/flamingo-stack/openframe-oss-lib/blob/main/tool-execution-display.tsx)