Skip to content

feat: add X402SearchTool for API discovery#4981

Closed
x402-index wants to merge 1 commit intocrewAIInc:mainfrom
x402-index:feat/x402search-tool
Closed

feat: add X402SearchTool for API discovery#4981
x402-index wants to merge 1 commit intocrewAIInc:mainfrom
x402-index:feat/x402search-tool

Conversation

@x402-index
Copy link

Summary

Adds X402SearchTool — natural language search across 14,000+ indexed API services for CrewAI agents.

Why

Agents should discover APIs by capability, not hardcode endpoints. This tool lets a CrewAI agent find what APIs exist for a given task, then call them — the full autonomous research loop.

What

  • New X402SearchTool in lib/crewai/src/crewai/tools/x402search_tool/
  • Subclasses BaseTool — zero new dependencies beyond requests (already in repo)
  • Docs page added to docs/en/tools/search-research/x402searchtool.mdx
  • Cost: 0.01 USDC per query via x402 protocol on Base mainnet, paid automatically
  • No API key required

Usage

from crewai.tools import X402SearchTool

tool = X402SearchTool()
agent = Agent(role='API Researcher', tools=[tool])

Best queries

  • crypto: 112 results
  • token price: 88 results
  • crypto market data: 10 results
  • btc price: 8 results

Links

@greysonlalonde
Copy link
Contributor

@x402-index
Copy link
Author

Thanks for the guidance. Published as a standalone PyPI package per the custom tools guide:

x402search gives CrewAI agents natural language search across 14,000+ indexed API services — $0.01 USDC per query via x402 on Base mainnet, no API key required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants