Widget displaying a tool call with collapsible output.
Tool outputs are shown as a 3-line preview by default. Press Ctrl+E to expand/collapse the full output. Shows an animated "Running..." indicator while the tool is executing.
VerticalCompose the tool call message layout.
Cache widget references and hide all status/output areas initially.
Mark the tool as running (approved and executing).
Call this when approval is granted to start the running animation.
Mark the tool call as successful.
Mark the tool call as failed.
Mark the tool call as rejected by user.
Mark the tool call as skipped (due to another rejection).
Toggle between preview and full output display.
Handle click to toggle output expansion.