GlossaryAgentsIntermediate

Function calling

Also written: tool use, tool calling, Programmatic tool calling, Asynchronous tool calling, Async tool calling, Frontier-intelligence function call

AI models can trigger external tools or code, translating requests into function calls with specific arguments.

In plain terms

Function calling lets AI models interact with the outside world. Instead of just generating text, the AI can understand when a task requires using another piece of software or running a specific command.

For example, if you ask an AI to book a flight, it can use function calling to send the details of your request (like destination and dates) to a flight booking system. The AI doesn't actually book the flight itself, but it knows how to ask the booking system to do it.

The expert version

Function calling enables large language models (LLMs) to act as agents by producing structured output that specifies a function to be called and its arguments. This allows the LLM to integrate with external tools, APIs, or custom code, extending its capabilities beyond text generation. The model identifies user intent that maps to a predefined function and formats the call, which is then executed by an external system. The result is typically returned to the LLM for further processing or to formulate a response.

Why it matters now

Function calling is a key feature for making AI models more useful by allowing them to interact with external software and services. Recent announcements highlight how companies are integrating this capability to enable AI agents to perform actions, manage costs for complex tasks, and offer more dynamic user experiences. This points to a trend of moving AI beyond just generating text to actively executing commands and solving problems.

Where it shows up 31 items, newest first
How each company uses it
Anthropic Claude
Anthropic's Claude can trigger other software tools or actions based on user requests, making it more capable of performing tasks.
Google Gemini
Google Gemini is enabling voice AI agents to act on user requests instantly through tool calling, making them more responsive and useful.
Microsoft Copilot
Microsoft Copilot is allowing users to integrate local AI models within their workflow, suggesting a way to leverage external capabilities.
OpenAI ChatGPT
OpenAI's models are being developed with function calling to enable them to translate natural language into structured calls for external tools, helping to manage costs and perform complex tasks.
Related terms

AgentsAPIsLLM OrchestrationPrompt EngineeringTool UseNatural Language Understanding

Often confused with
Agents
Agents are broader systems that may use function calling as one of many
API Integration
API integration is the general process of connecting software;
Retrieval Augmented Generation (RAG)
RAG retrieves information to inform the LL
Code Generation
Code generation produces code as output; function calling produ
Origin

The concept of enabling language models to call external functions emerged from research into making LLMs more useful and capable of interacting with the real world. Early implementations and research papers explored ways for models to access external knowledge and execute actions. Source ↗

Try this about 5 minutes

Use a chatbot interface that supports function calling, like ChatGPT or Google Gemini. Ask it to perform a task that requires external information or action, such as 'What's the weather in London?' or 'Set a timer for 5 minutes.' Observe if the AI indicates it's using a tool or provides a response that suggests it has interacted with an external service.

Try it: Playbook entries that use thisPlaybook →

The Playbook: reusable how-tos, prompts, configs and tips pulled out of the news.

Questions people ask

Does the AI run the code itself?
No, the AI generates a request to call an external tool or code. A separate system then executes that call.
How does the AI know which function to call?
Developers define a set of available functions and their descriptions for the AI. The AI uses its understanding of the user's request to match it to the most appropriate function.

First seen on Subvolts Jun 13, 2023. Updated Oct 14, 2026. Written by an AI model from the items above and reviewed against them weekly; report an error.