Skip to main content
Tools give your Agents the ability to take actions beyond just generating text. Agents can call APIs, search the web, perform calculations, and interact with external systems.

Quick Start

1

Simple Usage

2

With Configuration

Use tool registries and categories — see sections below.

Agent with Simple Function Tools

The easiest way to give an Agent tools — just pass plain functions directly:
Plain-function tools now work as advertised. The model returns tool arguments as a named object; the runtime maps them onto your function’s positional parameters — so getWeather receives "Paris", not "[object Object]". Tool return values are serialised as JSON (no more .toString()), and your tools array is never mutated — the constructor iterates a snapshot.

Agent with Typed Tools

For more control, define tools with explicit schemas:

Multi-Agent Tool Sharing

Share tools across multiple Agents:

Agent with Context-Aware Tools

Tools can access Agent context:

Tool Registry for Agent Teams

Organize tools for complex Agent systems:

Custom Tools

Build custom tools

MCP Tools

MCP integration