MCPcopy Create free account
hub / github.com/langchain-ai/deepagents / ToolCallMessage

Class ToolCallMessage

libs/code/deepagents_code/widgets/messages.py:879–2608  ·  view source on GitHub ↗

Widget displaying a tool call with collapsible output. Tool outputs are shown as a 3-line preview by default. Press Ctrl+O to expand/collapse the full output. Shows an animated "Running..." indicator while the tool is executing.

Source from the content-addressed store, hash-verified

877
878
879class ToolCallMessage(Vertical):
880 """Widget displaying a tool call with collapsible output.
881
882 Tool outputs are shown as a 3-line preview by default.
883 Press Ctrl+O to expand/collapse the full output.
884 Shows an animated "Running..." indicator while the tool is executing.
885 """
886
887 DEFAULT_CSS = """
888 ToolCallMessage {
889 height: auto;
890 padding: 0 1;
891 margin: 0 0 1 0;
892 background: transparent;
893 border-left: wide $tool;
894 }
895
896 ToolCallMessage .tool-header {
897 height: auto;
898 color: $tool;
899 text-style: bold;
900 }
901
902 ToolCallMessage .tool-task-desc {
903 color: $text-muted;
904 margin-left: 3;
905 text-style: italic;
906 }
907
908 ToolCallMessage .tool-args {
909 color: $text-muted;
910 margin-left: 3;
911 }
912
913 ToolCallMessage .tool-status {
914 margin-left: 3;
915 }
916
917 ToolCallMessage .tool-status.pending {
918 color: $warning;
919 }
920
921 ToolCallMessage .tool-status.success {
922 color: $success;
923 }
924
925 ToolCallMessage .tool-status.error {
926 color: $error;
927 }
928
929 ToolCallMessage .tool-status.rejected {
930 color: $warning;
931 }
932
933 ToolCallMessage .tool-reject-reason {
934 margin-left: 3;
935 margin-top: 0;
936 height: auto;

Calls

no outgoing calls