Skip to content

Bedrock Runtime  >  Structures  >  ToolReference

ToolReference

Structure Class

ToolReference dataclass

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

Attributes

name class-attribute instance-attribute
name: str | None = None

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

server_name class-attribute instance-attribute
server_name: str | None = None

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

type class-attribute instance-attribute
type: str | None = None

The type of tool reference.