What you will build

  • A custom tool definition with a JSON Schema.
  • A handler that calls an internal API in the language your agent service uses.
  • An Autohand agent configured to use the tool.

Prerequisites

  • An Autohand SDK package for your runtime.
  • An internal API endpoint and an API key.

Step 1: define the tool

Step 2: register the tool

Step 3: test the agent

Run the script and verify the agent calls the tool and returns the correct email. If the API is unavailable, the agent should report the error from the handler.

Next steps

Add more tools, expose them through MCP, or deploy the agent as a service.