AI & Agents

What Is Tool Use? — Giving AI Hands to Get Things Done

Learn how AI uses tools and function calling to take action in the real world — beyond just answering questions.

Scroll to start

AI That Can Actually Do Things

Imagine asking someone for help: "Can you look up tomorrow's weather for my trip?" A normal AI helper would describe what weather is and talk about forecasting. But an AI with tool use? It actually looks up the weather for you, right then.

That's the difference. Without tools, AI is like a person trapped in a room who can only talk. With tools, AI can open the door and act in the real world.

Tool use — sometimes called function calling — is how AI systems connect to outside resources: search engines, calendars, email accounts, databases, calculators, and more. The AI decides when to use a tool, picks the right one, and uses the results to give you a real answer.

From "I Know Things" to "I Do Things"

Think about the last time you asked an AI a question and got a perfect answer — but then had to do all the work yourself. You asked for concert tickets, and it listed the best websites to check. You asked to book a restaurant, and it gave you the phone number. That's AI stuck in "advice mode."

Tool use flips that around. An AI with the right tools can search the web, read your calendar, send emails, run code, or pull data from a database. It moves from knowing things to doing things on your behalf.

For developers, this is how AI coding assistants like Cursor or Claude Code can actually edit your files, run your tests, and fix bugs — not just tell you what to write.

💡 Key Insight

Before tools, AI was like a librarian who could only read books out loud. With tools, AI becomes someone who can go to the library, find the book, and bring it back to you. Tools give AI "hands" to act — not just a "mouth" to respond.

The Four-Step Tool Loop

When an AI with tool use gets a question, it follows a simple loop to decide whether and how to act. Here's what happens under the hood:

The Tool Use Loop
🧠
Decide
AI sees it needs real-world info
🔧
Choose
Picks the right tool for the job
Call
Runs the tool with specific inputs
Respond
Uses the result to answer you
repeat if needed

Think of it like a person with access to a calculator, a web browser, and a notepad. When they see you need to add up numbers, they grab the calculator. When you ask for today's headlines, they open the browser. The AI works the same way — it reaches for the right tool automatically.

A Tool in Action: Web Search

Here's what it looks like when an AI developer gives an AI the ability to search the web. The developer describes the tool once, then the AI uses it whenever needed:

Defining a search tool
{
  "name": "web_search",
  "description": "Search the web for current information",
  "parameters": {
    "type": "object",
    "properties": {
      "query": {
        "type": "string",
        "description": "The search question to look up"
      }
    },
    "required": ["query"]
  }
}

Now when you ask the AI: "What's the score in tonight's hockey game?"

The AI recognizes it doesn't have live sports data in its training, so it calls the web_search tool with your question, gets the live result back, and tells you the actual score — not a made-up one.

Knowledge Check

Test what you learned with this quick quiz.

Quick Quiz — 3 Questions

Question 1
What is tool use (function calling) in AI?
Question 2
What becomes possible when an AI has tool access that wasn't possible before?
Question 3
What is the first step in the tool use loop?
🏆

You crushed it!

Perfect score on this module.