Skip to main content
Tools give agents superpowers - the ability to search the web, do calculations, access APIs, and more.

Quick Start

1

Install Dependencies

2

Create a Tool

Any Python function can be a tool:
3

Add Tool to Agent


How Tools Work


Creating Tools

Simple Tool

Tool with Multiple Parameters

Web Search Tool


Complete Example


Built-in Tools

PraisonAI includes ready-to-use tools:

Multi-Agent with Tools


Best Practices

Add Docstrings

Describe what the tool does so the agent knows when to use it

Use Type Hints

def tool(x: str) -> str: helps the agent understand inputs

Handle Errors

Return helpful error messages instead of crashing

One Purpose

Each tool should do one thing well

Next: Building Multi-Agent Systems

Learn how to create teams of agents that work together.