What are Server Tools
Server Tools are built-in tools hosted and executed automatically by MiniMax on the server side. Unlike traditional Function Calls (client-side tools), you donât need to implement the toolâs execution logic or manually return tool results across multiple turnsâthe model automatically invokes the tool, retrieves the result, and continues generating within a single API request.This capability is currently in Beta; behavior and parameters may change.
Client-side tools (Function Call)
The model returns
tool_use, your code executes it, and you pass tool_result back. Requires multiple round trips.Server Tools
The model executes the tool and retrieves the result on MiniMaxâs servers, all within a single request. You only read the final reply.
Availability
web_search
web_search lets the model search the web automatically while generating a reply, fetch real-time information, and answer based on the search results. Itâs ideal for time-sensitive questions that require the latest facts (news, market data, documentation lookups, etc.).
Declare the tool
Declareweb_search in the tools array using the format for your interface:
- Anthropic Messages API
- OpenAI Responses API
The Anthropic Messages API uses the versioned type identifier
web_search_20250305; the OpenAI Responses API uses the web_search tool type. Use the format that matches the interface you call.Example
- Anthropic Messages API
- OpenAI Responses API
cURL
Response
Anthropic Messages API
Onceweb_search is enabled, the model executes the search on the server side and uses the results to generate its final reply. You donât need to handle tool_use / tool_result round tripsâjust read the text content blocks in message.content to get the answer.
message.content returns multiple content blocks in the order the model executed them. A complete search-and-answer flow typically includes the following types:
Full response example
Full response example
OpenAI Responses API
Onceweb_search is enabled, the server completes the search and response generation within a single request; you do not need to return tool results. The responseâs output array contains the search call and model reply. Read the top-level output_text field to get the final answer directly.
Responses API response example
Responses API response example
Notes
- Server Tools are in Beta; behavior and parameters may change at any time.
web_searchis currently the only available Server Tool. It can be called through the Anthropic Messages API and the OpenAI Responses API.- The Anthropic Messages API Base URL is
https://api.minimax.io/anthropic; the OpenAI Responses API endpoint ishttps://api.minimax.io/v1/responses. See the Anthropic SDK and Responses API documentation for details.