Skip to content

Bedrock Agentcore  >  Structures  >  HarnessToolUseBlock

HarnessToolUseBlock

Structure Class

HarnessToolUseBlock dataclass

A tool use request from the model.

Attributes

input class-attribute instance-attribute
input: Document = field(repr=False)

The JSON input to pass to the tool.

name instance-attribute
name: str

The name of the tool to call.

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

The name of the MCP server providing this tool.

tool_use_id instance-attribute
tool_use_id: str

The unique ID of this tool use.

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

The type of tool use.