Introducing advanced tool use on the Claude Developer Platform
Source
anthropic.com
Author
Anthropic
Date
Context
Anthropic's programmatic tool calling lets Claude write code that calls tools and processes their results before returning a smaller answer to the model. In the article's expense-checking example, the code retrieves employee expenses, totals them and compares them with budget limits. Claude receives the list of people over budget instead of every expense record. This keeps intermediate data out of the model's working context windowThe maximum amount of text a model can consider at once — its working memory for the current conversation or task.Full definition → and avoids asking it to direct each individual call. The approach is useful when code can reduce a large result to the specific information needed for the answer.
Terms in this piece · Glossary
tool use — A model's ability to call external functions — run code, search the web, edit files — instead of only generating text.
context window — The maximum amount of text a model can consider at once — its working memory for the current conversation or task.