ToolArguments - Amazon Bedrock AgentCore Data Plane

ToolArguments

The collection of arguments that specify the operation to perform and its parameters when invoking a tool in Amazon Bedrock. Different tools require different arguments, and this structure provides a flexible way to pass the appropriate arguments to each tool type.

Contents

clearContext

Whether to clear the context for the tool.

Type: Boolean

Required: No

code

The code to execute in a code interpreter session. This is the source code in the specified programming language that will be executed by the code interpreter.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 100000000.

Required: No

command

The command to execute with the tool.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 100000000.

Required: No

content

The content for the tool operation.

Type: Array of InputContentBlock objects

Required: No

directoryPath

The directory path for the tool operation.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 100000000.

Required: No

language

The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.

Type: String

Valid Values: python | javascript | typescript

Required: No

path

The path for the tool operation.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 100000000.

Required: No

paths

The paths for the tool operation.

Type: Array of strings

Length Constraints: Minimum length of 0. Maximum length of 100000000.

Required: No

taskId

The identifier of the task for the tool operation.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 100000000.

Required: No

See Also

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