-
- {expanded && (
+ {hasBody ? (
+
+ ) : (
+
{header}
+ )}
+ {hasBody && expanded && (
{code &&
}
{result?.isError && (
@@ -146,6 +272,14 @@ export function ToolCallCard({ call, result, interrupted = false, resultMessageI
{errorText(result.content)}
)}
+ {docText && (
+
+ {docText}
+
+ )}
{measurements && (
Bounds