Jinareader Tools

Fetch a GitHub page with JinaReaderTools and have the agent summarize its content.

jinareader_tools.py
"""
Jinareader Tools
=============================

Demonstrates jinareader tools.
"""

from agno.agent import Agent
from agno.tools.jina import JinaReaderTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------


agent = Agent(tools=[JinaReaderTools()])

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    agent.print_response("Summarize: https://github.com/agno-agi/agno")

The default toolkit exposes URL reading only. It sends the URL to Jina Reader and truncates the stringified response at max_content_length (10,000 characters by default), so the summary may cover only part of a long page. Set a larger limit on JinaReaderTools if needed for the target page.

Run the Example

Set up your virtual environment

uv venv --python 3.12
source .venv/bin/activate

Install dependencies

uv pip install -U agno openai

Export your API keys

export JINA_API_KEY="your_jina_api_key_here"
export OPENAI_API_KEY="your_openai_api_key_here"

Run the example

Save the code above as jinareader_tools.py, then run:

python jinareader_tools.py

Full source: cookbook/91_tools/jinareader_tools.py