ToolReference - 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.

ToolReference

A reference to a tool in the tool configuration. Used with ToolAdditionBlock and ToolRemovalBlock to identify which tool to add or remove mid-conversation.

Contents

name

The name of the tool. Must match the name of a tool declared in the top-level tool configuration.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: No

serverName

The name of the MCP server that provides the tool. Required when referencing an MCP tool.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: No

type

The type of tool reference.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: No

See Also

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