Tool

Search the web with Jina and summarize results

LlamaIndex tool that lets an agent search the web via Jina and get clean, LLM-ready results.

Works with jina

71
Spark score
out of 100
Updated 2 days ago
Version 0.14.23
Models

Add to Favorites

Why it matters

Leverage the Jina search API to find and retrieve information from the web. This tool is designed to integrate with AI agents, providing them with the ability to perform web searches and return concise, LLM-friendly summaries of the top results.

Outcomes

What it gets done

01

Query the Jina API for web search results.

02

Retrieve the top five search results, including URLs and content.

03

Format search results into clean, LLM-friendly text.

04

Integrate Jina search capabilities into AI agent workflows.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/li-tool-tools-jina | bash

Overview

LlamaIndex Tools Integration: Jina

The Jina Search Tool wires the Jina search API into a LlamaIndex agent as a single jina_search function, returning the top five web results with clean, LLM-friendly text content. Use it when an agent needs current web information pre-cleaned for LLM consumption. It always returns a fixed top-five result set.

What it does

The Jina Search Tool lets an agent search and retrieve results from the Jina search API. It searches the web and returns the top five results, each with its URL and content rendered in clean, LLM-friendly text. It exposes a single function, jina_search, which queries the Jina API for an instant answer.

When to use - and when NOT to

Use it when an agent needs current web information formatted for easy LLM consumption -- for example fielding questions like "What's going on with the superconductor lk-99" or "what are the latest developments in machine learning." Because it always returns the top five results, it is not the tool to reach for when you need a configurable result count or a narrower or broader result set.

Inputs and outputs

Install with:

pip install llama-index-tools-jina

Given a text query, jina_search returns the top five web results (URL and clean text content each). Attach it to an agent via to_tool_list():

from llama_index.tools.jina import JinaSearchToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = JinaSearchToolSpec()

agent = FunctionAgent(
    tools=JinaSearchToolSpec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

print(await agent.run("What's going on with the superconductor lk-99"))
print(await agent.run("what are the latest developments in machine learning"))

Who it's for

Developers building LlamaIndex agents that need web search results pre-cleaned into LLM-friendly text rather than raw HTML.

Source README

LlamaIndex Tools Integration: Jina

Installation

Ensure your system has Python installed and proceed with the following installations via pip:

pip install llama-index-tools-jina

Jina Search Tool

This tool enables agents to search and retrieve results from the Jina search api. This tool will search the web and return the top five results with their URLs and contents, each in clean, LLM-friendly text.

Usage

This tool has a more extensive example usage documented in a Jupyter notebook here

Here's an example usage of the JinaSearchToolSpec.

from llama_index.tools.jina import JinaSearchToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = JinaSearchToolSpec()

agent = FunctionAgent(
    tools=JinaSearchToolSpec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

print(await agent.run("What's going on with the superconductor lk-99"))
print(await agent.run("what are the latest developments in machine learning"))

Available tool functions:

  • jina_search: Make a query to Jina API to receive an instant answer.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.