Skip to main content
The JinaSearch tool lets an agent search the web through the Jina Search API.

Overview

The JinaSearch tool is a tool that allows you to search the web using the JinaSearch API.
Register on Jina Generate your JinaSearch API key from Jina Platform

How It Works

Getting Started

1

Simple Usage

  1. Install dependencies (see Overview above)
  2. Set required API keys in your environment
  3. Run the agent example in Overview
2

With Configuration

Use the same tool with an agent — see the Overview example, or pass env vars from the sections above.

Best Practices

Set JINA_API_KEY in your shell or .env. JinaSearch reads it automatically — never hard-code the key.
The example slices results with tool_msg.content[:1000]. Cap the length you feed back to the agent so it stays within context limits.
Jina returns HTTP 429 under heavy use. Wrap JinaSearchTool.invoke(...) in try/except so the agent can fall back to another search tool.

Jina

Jina tools

Tavily

AI-powered search

Exa

Neural search