How AI agents actually use tools

9:16 · 0:58
14 / 20
Transcript173 words · click to read

You think AI agents are magically browsing the web or querying your database? They aren't. An LLM is entirely trapped in a box. And what we call an agent is really just a highly choreographed game of fetch. Picture a master chef who is physically locked inside a kitchen. They can't get groceries. When they need tomatoes, they write a hyper-specific shopping list, hand it under the door to a runner, and just stand there, waiting. That's exactly how tool calling works. When the LLM decides it needs real-time data, it stops generating text and instead spits out a structured JSON payload, the shopping list. Your backend intercepts that JSON executes the actual Python script or API call and feeds the result back into the prompt. So when an agent books a flight, the AI didn't actually touch the internet. It just output the exact JSON arguments required for your backend code to hit the airline's API. The AI is just the chef writing the list. you still have to build the runner.

Machine-transcribed from the published render, so acronyms may be cased as ordinary words.