Tools and Function Calling
Tools and Function Calling
A tool is a named capability with a contract: a name, inputs, and a result the model can read. Function calling is how the model asks to use that capability instead of pretending it already knows the answer.
In this lesson you build a tiny inspector: a page that shows one real tool call (name, input, result) so you can see the glass window, not just the chat.
Learning outcomes
- Describe a tool as name + input schema + result
- Show a failed call vs a successful call
- Refuse to invent a result you did not run
Anweisungen
Add an <h1> about tools or function calling
Tipp: Name the skill, not a product brand.
Wo kommt das hin?
<!-- Step 1: h1 about tools or function calling -->Schreib es in Zeile 12 — die leere Zeile direkt unter diesem Kommentar.
Add <section class="tool-card"> with .tool-name, .tool-input, and .tool-result
Add <section class="honesty"> stating you must not invent tool results
Dein Code
Beschreibe, was du für diesen Schritt bauen willst, und ich schreibe den Code — klicke dann auf Übernehmen, um ihn in deinen Editor zu übertragen. Dieser Schritt: Add an <h1> about tools or function calling
Live-Vorschau
The full course continues with Builder
Lessons 4–5 of this course continue with Builder. The free lessons stay free, so finish them first.
- Lessons 4–5 of this course
- 500 Studio Build Credits a month
- Build Blueprint: a clear spec for any idea, ready for your AI agent
- Every lesson in the other full courses
$19 a month
Full refund within 14 days on new subscriptions. Cancel anytime.
Builder does not include third-party AI subscriptions. Lessons that need one say so up front.