View a markdown version of this page

HarnessToolUseBlock - Amazon Bedrock AgentCore Data Plane
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

HarnessToolUseBlock

A tool use request from the model.

Contents

input

The JSON input to pass to the tool.

Type: JSON value

Required: Yes

name

The name of the tool to call.

Type: String

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

Pattern: [a-zA-Z0-9_-]+

Required: Yes

toolUseId

The unique ID of this tool use.

Type: String

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

Pattern: [a-zA-Z0-9_-]+

Required: Yes

serverName

The name of the MCP server providing this tool.

Type: String

Required: No

type

The type of tool use.

Type: String

Valid Values: tool_use | server_tool_use | mcp_tool_use

Required: No

See Also

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