PromptItIn logoPromptItIn
AI glossary · Technical

Tool Use

The ability of a model to invoke external tools — APIs, code executors, search — to augment its capabilities.

PromptItIn team

A bookshelf with one card pulled out

What it means

Tool use (Anthropic's term for what OpenAI calls function calling) allows a language model to decide when to invoke external capabilities — web search, code execution, database queries, file I/O, or arbitrary APIs — instead of relying on its parametric knowledge.

The model outputs a structured tool call; the application executes it and returns results; the model continues reasoning with those results. This turns the model from a static knowledge retriever into a dynamic agent capable of taking actions in the world.

Tool use is foundational to agentic systems and dramatically expands what LLMs can do while reducing hallucination on tasks requiring current data or computation.

Examples

  • Claude calling a Python interpreter tool to execute code, then using the output to answer a numerical question accurately.
  • An agent using a web_search tool to look up a stock price, then a database_query tool to pull the user's portfolio, then synthesising both into a portfolio analysis.

Function Calling

A model feature that allows it to request the execution of developer-defined functions with structured arguments.

Agent

An AI system that autonomously plans and executes multi-step tasks using tools and environment feedback.

ReAct Prompting

Interleaving reasoning traces and actions so a model can use tools and reflect on their results.

Put this into practice

PromptItIn applies techniques like tool use for you: describe what you want and it builds the prompt.

Try PromptItIn freeAdd to Chrome, free

You might also like

How to Use Role in AI Prompts →Write a Technical Spec →Data Analysis Prompts →What is Prompt Engineering? →Google Gemini →Cursor →
← Browse the AI prompt glossary