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: