Skip to content

ToolReference

Source code in docs_src/capo_bedrock_runtime/types/tool_reference.py
class ToolReference(TypedDict, closed=True):
    type: NotRequired["str"]
    """<p>The type of tool reference.</p>"""
    name: NotRequired["str"]
    """<p>The name of the tool. Must match the name of a tool declared in the top-level tool configuration.</p>"""
    server_name: NotRequired["str"]
    """<p>The name of the MCP server that provides the tool. Required when referencing an MCP tool.</p>"""

name instance-attribute

name: NotRequired[str]

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

server_name instance-attribute

server_name: NotRequired[str]

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

type instance-attribute

type: NotRequired[str]

The type of tool reference.