> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Tool Use

> Run an Agno agent with WebSearchTools against a local Ollama llama3.2:latest model to answer a web search query.

## Code

```python tool_use.py theme={null}
from agno.agent import Agent
from agno.models.ollama import Ollama
from agno.tools.websearch import WebSearchTools

agent = Agent(
    model=Ollama(id="llama3.2:latest"),
    tools=[WebSearchTools()],
    markdown=True,
)
agent.print_response("Whats happening in France?")

```

## Usage

<Snippet file="create-venv-step.mdx" />

**1. Install Ollama**

Follow the [Ollama installation guide](https://github.com/ollama/ollama?tab=readme-ov-file#macos) and run:

```bash theme={null}
ollama pull llama3.2:latest
```

**2. Install dependencies**

```bash theme={null}
uv pip install -U ddgs ollama agno
```

**3. Run Agent**

Save the code above as `tool_use.py`, then run:

```bash theme={null}
python tool_use.py
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.