IconServe gives LangChain / LangGraph access to 10,000+ open-source icons (Lucide, Heroicons, Tabler, Simple Icons) as SVG or PNG — searchable by name or natural language. Free, no API key.
from langchain_core.tools import tool
import requests
@tool
def find_icon(query: str) -> str:
"""Search IconServe for an icon; returns a ready-to-use SVG URL."""
r = requests.get("https://icons-for-agents.site/api/search", params={"q": query, "limit": 1}).json()
return r["results"][0]["svg_url"] if r["results"] else "no icon found"
# add find_icon to your agent's tools list
Ask your agent: "use iconserve to find a settings icon." It will call search_icons and return ready-to-use SVG URLs.