lib/crewai-tools/src/crewai_tools/tools/exa_tools/README.md
This tool lets CrewAI agents search the web using Exa, the fastest and most accurate web search API. By default the tool returns token-efficient highlights of the most relevant results for any query; you can also opt in to full page content.
To incorporate this tool into your project, follow the installation instructions below:
uv add crewai[tools] exa_py
The following example demonstrates how to initialize the tool and run a search:
from crewai_tools import ExaSearchTool
# Default: results with token-efficient highlights
tool = ExaSearchTool(api_key="your_api_key", highlights=True)
To effectively use the ExaSearchTool, follow these steps:
crewai[tools] package is installed in your Python environment.EXA_API_KEY so the tool can pick it up automatically.For details on choosing between highlights and full content, see the Exa search best practices.
EXASearchTool is a deprecated alias for ExaSearchTool. Existing imports continue to work but emit a deprecation warning; please migrate to ExaSearchTool.