Allows you to equip a specific agent under a box with an external tool that the agent can call based on the context. What are tools

Arguments

agent_id
string
required

The agent ID to add the tool to. only agents with this specific ID can access this tool.

func
Function
required

Specifies the function to be executed when the agent calls the tool. This function can perform any logic you define, but it will always receive its arguments as an object that has been validated against the provided tool schema.

schema
ToolSchema
required

Defines the schema for the tool. The schema is a critical element as it determines the expected parameters (inputs) for the tool function and tells the agent what the tool is about and when to call it.

Recommended resources:

Reference to ToolSchema

createToolSchema

How to build my tools