← Back to release summary

Function Calling capability in Prompt API

Category
Miscellaneous
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

We would like to prototype Function Calling in the Prompt API. At a high level, this allows developers to define additional capabilities that a language model can invoke as it processes a prompt either to trigger some actions or obtain additional information to complete a task.

Motivation

Large Language Models (LLMs) are most effective when they can move beyond text generation and interact with external data and systems. This capability, commonly known as "Function Calling" or "Tool Use," allows a model to query APIs, perform actions, or access real-time information, transforming it from a passive chatbot into an active assistant. We propose adding Function Calling to the Prompt API to bring this powerful capability to the web platform for on-device models. Enabling developers to define tools that the on-device model can use will unlock a new class of rich, AI-powered web experiences. Based on strong developer signals from our built-in AI hackathon and early preview program, we see significant demand for this feature across a range of applications: Natural language UX: A flight search website could enhance their UX with this capability to allow users to express their needs more directly, without having to discover and learn more advanced controls (e.g. search filters). Data-Driven Applications: A developer building a data visualization dashboard could provide tools to query and present data. This would allow users to ask questions like, "Show me sales from last quarter for the EMEA region" and have the model translate the request into a structured query and graph definitions for the respective tools. Creative and Productivity Tools: an editor could expose buildi

Standards & signals

Ecosystem

Explainers: https://github.com/webmachinelearning/prompt-api?tab=readme-ov-file#tool-use

View on chromestatus.com