Overview
ArXiv is a free distribution service and open-access archive for scholarly articles. This tool allows you to search and retrieve academic papers. The user asks for research papers; the agent queries ArXiv and returns matching papers.Installation
Quick Start
Usage with Agent
Available Methods
search(query, max_results=5)
Search ArXiv for papers.get_paper(arxiv_id)
Get a specific paper by ArXiv ID.Configuration Options
Function-Based Usage
CLI Usage
Error Handling
Common Errors
| Error | Cause | Solution |
|---|---|---|
arxiv not installed | Missing dependency | Run pip install arxiv |
No results found | Query too specific | Broaden search terms |
Connection error | Network issue | Check internet connection |
How It Works
Best Practices
Search before fetching
Search before fetching
Use
search to find candidate papers first, then fetch full details only for the ones you need. This keeps token usage low.Narrow with categories
Narrow with categories
Filter by ArXiv category (e.g.
cs.AI) so the agent works with relevant papers instead of the whole corpus.Cache repeated lookups
Cache repeated lookups
ArXiv results are stable — cache them locally when the same query runs often to avoid redundant API calls.
Related Tools
Wikipedia
General knowledge
PubMed
Medical research
Exa
Neural search

