Server Tools are currently in beta. The interface is stable but additional tools are being added.
Available Server Tools
Server Tools vs Plugins vs User-Defined Tools
Use Server Tools when you want the model to decide whether and when to search, rather than forcing a search on every request.
How Server Tools Work
The entire tool execution cycle happens server-side. Your application receives the final response with results already incorporated.Quick Start
Add Server Tools to any chat completion request via thetools array using the arouter: namespace:
- TypeScript
- Python
- cURL
Combining Multiple Server Tools
You can enable multiple Server Tools in a single request. The model will choose which to invoke based on the user’s query:Combining with User-Defined Tools
Server Tools can coexist with your own function definitions:arouter type tools; your application handles the function type tools.
Usage Tracking
Server Tool usage is tracked in theusage field:
Next Steps
- Web Search Tool — Full configuration reference for search engines, domain filtering, and pricing
- Datetime Tool — Inject current time into model context
- Migrating from Web Plugin — How to migrate from the deprecated
webplugin