Overview
The JinaSearch tool is a tool that allows you to search the web using the JinaSearch API.How It Works
Getting Started
Simple Usage
- Install dependencies (see Overview above)
- Set required API keys in your environment
- Run the agent example in Overview
Best Practices
Keep JINA_API_KEY in the environment
Keep JINA_API_KEY in the environment
Set
JINA_API_KEY in your shell or .env. JinaSearch reads it automatically — never hard-code the key.Trim the returned content
Trim the returned content
The example slices results with
tool_msg.content[:1000]. Cap the length you feed back to the agent so it stays within context limits.Handle rate limits
Handle rate limits
Jina returns HTTP 429 under heavy use. Wrap
JinaSearchTool.invoke(...) in try/except so the agent can fall back to another search tool.Related Tools
Jina
Jina tools
Tavily
AI-powered search
Exa
Neural search

