ToolResultContentBlock - Amazon Bedrock
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

ToolResultContentBlock

The tool result content block. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Contents

Important

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

document

A tool result that is a document.

Type: DocumentBlock object

Required: No

image

A tool result that is an image.

Note

This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.

Type: ImageBlock object

Required: No

json

A tool result that is JSON format data.

Type: JSON value

Required: No

searchResult

A tool result that is a search result.

Type: SearchResultBlock object

Required: No

text

A tool result that is text.

Type: String

Required: No

video

A tool result that is video.

Type: VideoBlock object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: