

# HarnessToolResultContentBlock
<a name="API_HarnessToolResultContentBlock"></a>

A content block within a tool result.

## Contents
<a name="API_HarnessToolResultContentBlock_Contents"></a>

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** json **   <a name="BedrockAgentCore-Type-HarnessToolResultContentBlock-json"></a>
JSON content.  
Type: JSON value  
Required: No

 ** text **   <a name="BedrockAgentCore-Type-HarnessToolResultContentBlock-text"></a>
Text content.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: No

## See Also
<a name="API_HarnessToolResultContentBlock_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agentcore-2024-02-28/HarnessToolResultContentBlock) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agentcore-2024-02-28/HarnessToolResultContentBlock) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agentcore-2024-02-28/HarnessToolResultContentBlock) 