View a markdown version of this page

HarnessBeforeToolCallHook - Amazon Bedrock AgentCore Control 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).

HarnessBeforeToolCallHook

The configuration for a hook that runs before the agent calls a tool.

Contents

name

The name of the hook.

Type: String

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

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

Required: Yes

target

The target that receives the hook event.

Type: HarnessHookTarget object

Note: This object is a Union. Only one member of this object can be specified or returned.

Required: Yes

See Also

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