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
Capability
Support
Interface
Anthropic Messages API (/anthropic/v1/messages) OpenAI Responses API (/v1/responses)
Available tools
web_search
How to use
Declare the server tool in the request’s tools array
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
Declare web_search in the tools array using the format for your interface:
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.
Once web_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:
Block type
Description
thinking
The model’s thinking, generated on demand; it may appear before or after searches
text
Text generated by the model. Both the lead-in before searching and the final answer after searching use this type
server_tool_use
The tool call the model issued on the server side. name is web_search, and input.query is the actual search query
web_search_tool_result
The search results returned by the server. content is a list of web_search_result items with fields such as title, url, page_age, and content
If the model reaches the search limit within a single request, the response ends with stop_reason: "pause_turn" and contains no final answer. Append the returned content to messages as an assistant message as-is and send the request again; the model continues and produces its reply.
Full response example
{ "id": "0722ab2fff2b350127e3f97c946a0b5e", "type": "message", "role": "assistant", "model": "MiniMax-M3.1-Flash", "content": [ { "text": "I'll search for the current weather in Shanghai for you.", "type": "text" }, { "type": "server_tool_use", "id": "call_function_j3h161hnqzzv_1", "name": "web_search", "input": { "query": "Shanghai weather today" } }, { "type": "web_search_tool_result", "tool_use_id": "call_function_j3h161hnqzzv_1", "content": [ { "type": "web_search_result", "title": "墨迹天气-今日上海市天气", "url": "https://co.moji.com/ganji/city/39/ganji", "content": "墨迹天气-今日上海市天气 墨迹天气。多云 优 AQI 26 东风2级 湿度81% 紫外线弱 Created with Raphaël 2.1.226°28°32°25°27°21°22°22°21°22°17°15° 周五 阴 阴 10/16 今天 阴 阴 10/17 周日 小雨 小雨 10/18 周一 阴 阴 10/……" }, /// ... ] }, { "type": "server_tool_use", "id": "call_function_j3h161hnqzzv_2", "name": "web_search", "input": { "query": "上海 今天 天气 预报" } }, { "type": "web_search_tool_result", "tool_use_id": "call_function_j3h161hnqzzv_2", "content": [ { "type": "web_search_result", "title": "周末最高31,上海大歌剧院今正式启幕;上海东站、上海宝山站预计明年投用", "url": "https://www.toutiao.com/article/7697406452465435176/", "page_age": "2026/10/17 07:08:47", "content": "发布时间:2026年10月17日。2026-10-1707:08·新民晚报上海今天多云到阴,东南风4~5级,沿江沿海地区阵风有6级,今天上午转4~5级阵风6级,沿江沿海地区5级阵风6~7级。今天最高气温28℃,最低气温22℃。相对湿度90%~45%。周日的最高气温可达31℃。周日夜里到下周一上海转受冷空气影响,将有一次……" }, /// ... ] }, { "thinking": "The search results indicate today's date is around October 17, 2026 (based on page ages). Let me summarize the weather for today in Shanghai.\n\nFrom 中国天气网 (China Weather): Today (17日) 阴 (overcast) 28/23℃, wind <3级\nFrom 天气网 (tianqi.com): 2026-10-17 阴 23~28°C, 优 (air quality excellent), UV weak, 东南风 2级, 湿度 84%\nHourly: 08:00 阴 23℃ ... 15:00 阴 28℃ peak\nFrom 新民晚报/上海天气: morning temps 19-22°C across districts, Xujiahui station 21.9°C, mostly cloudy, SE wind 4-5级 gusting 6级, along coastal areas stronger, high ~29°C (28-29°C), humidity 90%-45%, feels warm and humid.\n\nLet me present that.\n\nNote: there's some slight variation in high temp (28 vs 29). Let me note that.\n\nAir quality: one source says 优 (excellent) AQI 26, another says 59 US AQI moderate. The 墨迹天气 said 多云 优 AQI 26. weather.now said humidity 86%, 19°C. Those may be slightly different times.\n\nLet me give a clean summary.\n\nI should also note the date. The system doesn't give me a date, but the search results strongly indicate today is October 17, 2026 (Friday). Let me verify: 17日(今天), 18日(明天) 周日... hmm, weather.com.cn says 17日(今天), 18日(明天), 19日(后天), 20日(周二), 21日(周三), 22日(周四), 23日(周五). So if 20日 is Tuesday, then 17日 is Saturday. But the 新民晚报 article says \"明天上午申城仍以多云为主\" and mentions 周日... and the weather.com.cn says 周日的最高气温可达31℃ which would be 18日 = Sunday. So 17日 = Saturday, 18日 = Sunday, 19日 = Monday, 20日 = Tuesday. Yes! Consistent. And 墨迹天气 said 周五 阴, 10/16... 10/17 周日 小雨, hmm that says 10/17 is 周日. Slight discrepancy in that source. But the China Meteorological Administration data is more authoritative: 17日(今天) 阴 28/23℃, 18日(明天) 小雨 31/21℃.\n\nHmm, but wait — 2026-10-17: what day of the week is it? Let me compute. Jan 1, 2026 is a Thursday. Days to Oct 17: Jan 31, Feb 28, Mar 31, Apr 30, May 31, Jun 30, Jul 31, Aug 31, Sep 30 = 273 days; +17 = day 290 of year. Day 1 = Thursday. (290-1) mod 7 = 289 mod 7 = 289 - 287 = 2. Thursday + 2 = Saturday. Yes, October 17, 2026 is a Saturday. \n\nSo today is Saturday, October 17, 2026. Consistent with the authoritative sources.\n\nLet me write the summary.", "signature": "a4afec79dd1e70375fde7e4980f05f8178df0354514935330e05fcccb0e41d47", "type": "thinking" }, { "text": "## 上海今日天气 · 2026年10月17日(周六)\n\n**总体:多云到阴,暖湿,傍晚转晴**\n\n| 项目 | 数值 |\n|---|---|\n| 天气 | 上午多云为主、阳光间歇露脸 → 午后转阴 → 傍晚间晴 |\n| 气温 | 22~28~29℃(清晨各区普遍 19~22℃,徐家汇站早间 21.9℃) |\n| 相对湿度 | 90% → 45%(体感偏暖湿) |\n| 风 | 东南风 4~5 级,阵风 6 级;沿江沿海 5 级、阵风 6~7 级 |\n| 空气质量 | 优(AQI 26~59) |\n| 紫外线 | 弱 |\n| 日出/日落 | 约 5:54 / 5:26 |\n\n**逐时(市区参考)**\n- 08:00 阴 23℃ → 10:00 多云 26℃ → 12:00–15:00 阴 27~28℃(午后最热)\n- 17:00–18:00 转晴 25~26℃ → 夜间维持在 24℃ 左右\n\n**未来几天趋势(注意\"滑梯式\"降温)**\n- 周日 (18日):上午仍多云,最高可达 **31℃**,湿度大、体感闷热;**周日下午起转阴有阵雨或雷雨**\n- 周一 (19日):明显降水过程,最高降至 25℃ 左右\n- 周二–周三:再有冷空气交汇,最低气温跌至\"1字头\",中后期最高止步 22℃\n\n**建议**:今天适合洗衣晾晒;出门带伞备用,午后风大注意防风;周日前后温差很大,请及时增减衣物。\n\n*数据来源:中国天气网(中央气象台)、上海市气象台/上海天气、天气网*", "type": "text" } ], "usage": { "input_tokens": 11441, "output_tokens": 1211, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 405, "output_tokens_details": { "thinking_tokens": 735 } }, "stop_reason": "end_turn", "base_resp": { "status_code": 0, "status_msg": "" }}
OpenAI Responses API
Once web_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.
Field or output item
Description
reasoning
The model’s thinking, generated on demand; it may appear before or after searches
web_search_call
The server-side web search call, including its call ID, status, and the actual search query in action.query
message
Text generated by the model, contained in content. Both the lead-in before searching and the final answer after searching use this type
output_text
Aggregated final text that can be read directly
Responses API response example
{ "id": "0722aabe4562a021db547c10cbb6b92f", "object": "response", "created_at": 1792243646, "model": "MiniMax-M3.1-Flash", "status": "completed", "output": [ { "id": "0722aabe4562a021db547c10cbb6b92f_msg", "type": "message", "status": "completed", "role": "assistant", "content": [ { "type": "output_text", "text": "I'll search for today's weather in Shanghai for you.", "annotations": [] } ] }, { "id": "call_function_fvcvy51e98o0_1", "type": "web_search_call", "status": "completed", "action": { "type": "search", "query": "Shanghai weather today" } }, { "id": "call_function_fvcvy51e98o0_2", "type": "web_search_call", "status": "completed", "action": { "type": "search", "query": "上海今天天气 实时天气预报" } }, { "id": "0722aabe4562a021db547c10cbb6b92f_rs_r1", "type": "reasoning", "status": "completed", "summary": [], "content": [ { "type": "reasoning_text", "text": "Let me synthesize. Today's date appears to be around October 17-18, 2026. The most recent sources (Oct 17, 2026) give today's forecast. The timeanddate source shows \"Current Time: 14 Oct 2026\" which is older. The Chinese sources dated 2026-10-17 say: today (Oct 17) 多云到阴 (cloudy to overcast), SE wind 4-5 with gusts 6, along the river/coastal 5 with gusts 6-7, high 28°C, low 22°C, humidity 90%~45%. Some say high 29°C, Xujiahui station 21.9°C in the morning, 25.7°C max (conflicting). Let me note: one source says 最高气温升至29℃上下 and Xujiahui 21.9°C at start, another says 最高气温止步25~26℃ Xujiahui 25.7. These are conflicting — the 上观新闻 article says today's high 25-26°C with max at Xujiahui 25.7°C, while the other article says 29°C. Hmm, the 松江区气象局 issued on Oct 16 17时: 今天最高温度25.2度,最低温度20.9度, 明天最高28度最低22度 — for Oct 17 forecast issued Oct 16.\n\nWait, let me sort out dates. 上观新闻 article published 2026-10-17, says \"今日天气 上海今天云量较多局部出现短时小雨... 午后最高气温止步25~26℃,市区徐家汇站为25.7℃... 明天多云到阴...明天最高气温28℃最低气温22℃\". And 10月18日(周日) forecast: 24℃~31℃, 10月19日(周一): 21℃~25℃.\n\nSo Oct 17 = Saturday? Let's check: Oct 18 is Sunday per the forecast, so Oct 17 is Saturday. And the 松江区 forecast issued Oct 16 17时 refers to \"今天\" = Oct 16 (high 25.2) and \"明天\" = Oct 17 (high 28, low 22). Hmm, so Oct 17 forecast from 松江 = high 28, low 22. That matches the 上海市气象台 quote \"今天最高气温28℃,最低气温22℃\" from 163/toutiao articles published Oct 17.\n\nBut 上观's article published Oct 17 says today's high is 25-26°C and tomorrow (Oct 18) 28°C... Wait no — 上观 says \"明天多云到阴...明天最高气温28℃最低气温22℃\" and then \"10月18日(周日):多云到阴转阴到多云有时有阵雨或雷雨,24℃~31℃\". Hmm, there's a conflict: it says 明天最高气温28℃ but the 5-day list says Oct 18 is 24-31°C. So 明天 in the 28°C sentence probably refers to Oct 17 (if published on Oct 16)... but published Oct 17. Confusing. Also 松江 says 明天 (Oct 17) high 28 low 22 — consistent with 28°C for Oct 17.\n\nHmm, but wait — the articles published 2026-10-17 with \"今天最高气温28℃,最低气温22℃\" — those may actually be describing Oct 17. And the 上观 article published Oct 17 (finance.sina 2026-10-17) says today's high 25-26°C, Xujiahui 25.7, and \"明天\" high 28. There's genuine conflict across sources about today's (Oct 17) high: 25-26°C vs 28-29°C.\n\nAlso, the weatheo.com source shows \"Today 17 High 27° Low 23°\" and hourly 22-28°C, sunrise 05:58 sunset 05:22, AQI 59 moderate. The timeanddate for Shenzhuang: Oct 14, 20°C clear, forecast 25/17.\n\nGiven today is likely Oct 17, 2026, the most relevant: the 墨迹天气 shows 今日 阴 with 22-25°C range, AQI 26.\n\nLet me be honest about the conflicts and present a range. Let me summarize:\n\nCurrent conditions (approximations): ~20-22°C, cloudy/overcast, humidity 78-90%, northerly-to-southeasterly light-to-moderate wind.\n\nActually, there's a conflict on wind: theweathernetwork says wind N 14 km/h; the 墨迹 says 东风2级; the Chinese official says 东南风4-5级. Different times/stations.\n\nLet me present a synthesized answer:\n- Today: cloudy to overcast (多云到阴), with some sunny spells; local brief showers possible\n- High ~25-29°C (sources differ; Xujiahui station 25.7°C), low ~21-23°C\n- Humidity 90%→45%, warm and muggy (体感偏暖湿)\n- SE wind 4-5 with gusts 6 (along river/coastal gusts 6-7)\n- No active alerts; AQI good-to-moderate (26-59)\n- Tomorrow (Oct 18): cloudy turning overcast, showers/thunderstorms possible, 24-31°C\n- Monday Oct 19: cold air arrives, rain/thunderstorms, high drops to 25°C\n- Wed Oct 21: min temps drop to \"teens\" (17°C)\n\nAlso note: Typhoon No. 30 \"蔷琵\" (Megi) upgraded to strong tropical storm on Oct 16, but no effect on China's seas in the next 5 days.\n\nSunrise/sunset ~5:54-5:58am / 5:22-5:26pm.\n\nLet me write this up. The user asked in English, so respond in English.\n\nI should be careful with the conflicting temps and mention it.\n\nLet me structure nicely." } ] }, { "id": "0722aabe4562a021db547c10cbb6b92f_msg_r1", "type": "message", "status": "completed", "role": "assistant", "content": [ { "type": "output_text", "text": "## Shanghai Weather Today (Saturday, October 17, 2026)\n\n**Current conditions**\n- **Temperature:** ~20–22°C, \"feels like\" the same\n- **Sky:** Cloudy to overcast (多云到阴), with sun breaking through at times; brief local showers possible\n- **Humidity:** High in the morning (78–90%), dropping to ~45% by afternoon\n- **Wind:** Southeast at 4–5 on the Beaufort scale, gusts to 6; along the Huangpu River and coastal areas, gusts of 6–7\n- **Rain chance:** Low overall (~10–30%), rising later in the day\n- **Air quality:** Good to moderate (AQI roughly 26–59, PM2.5 as main pollutant)\n- **Sunrise / Sunset:** ~5:54 am / 5:26 pm\n- **Alerts:** None active\n\n**High/Low today:** Sources differ on the peak — the official Shanghai Meteorological Bureau cites **28°C** (some outlets say 29°C), while the Xujiahui central station reading suggests a high nearer **25–26°C**. Overnight low around **21–23°C**. Either way, it's a **warm, humid day** (\"体感偏暖湿\").\n\n**Coming days**\n| Date | Conditions | Temp |\n|---|---|---|\n| Sun, Oct 18 | Cloudy → overcast, showers or thunderstorms in the afternoon | 24–31°C |\n| Mon, Oct 19 | Overcast, scattered showers as cold air arrives | 21–25°C |\n| Tue, Oct 20 | Overcast with occasional showers | 22–27°C |\n| Wed, Oct 21 | Cloudy to overcast | 17–22°C |\n\n**Heads-up:** A cold front arrives Sunday night into Monday, bringing a distinct rainfall event possibly with thunderstorms and a sharp temperature drop. Another front around Wednesday will push lows down into the low teens, so mornings and evenings will feel noticeably cooler. The next 10 days will see frequent swings between warm and cool air — keep an umbrella handy and layer clothing. Also note Typhoon No. 30 \"Megi\" (蔷琵) strengthened to a severe tropical storm on Oct 16, though it isn't expected to affect China's seas over the next 5 days.\n\n**Source note:** The discrepancies above come from the official Shanghai Meteorological Bureau readings versus international weather aggregators; for a live reading, the official 上海市气象局/上海发布 channels or your preferred weather app will be the most current.", "annotations": [ { "type": "url_citation", "title": "上海天气剧透", "url": "https://zx.sina.cn/wp/2026-10-12/zx-iniuxrzp7268369.d.html", "start_index": 0, "end_index": 0, "content": "上海天气剧透 手机新浪网。** 上海市天气 #上海天气剧透#今天夜里天气转好,周三周四多云为主,周四周五云系增多,局部伴有短时小雨。双休日雨势变得明显起来~~ " }, /// ... ] } ] } ], "output_text": "I'll search for today's weather in Shanghai for you.## Shanghai Weather Today (Saturday, October 17, 2026)\n\n**Current conditions**\n- **Temperature:** ~20–22°C, \"feels like\" the same\n- **Sky:** Cloudy to overcast (多云到阴), with sun breaking through at times; brief local showers possible\n- **Humidity:** High in the morning (78–90%), dropping to ~45% by afternoon\n- **Wind:** Southeast at 4–5 on the Beaufort scale, gusts to 6; along the Huangpu River and coastal areas, gusts of 6–7\n- **Rain chance:** Low overall (~10–30%), rising later in the day\n- **Air quality:** Good to moderate (AQI roughly 26–59, PM2.5 as main pollutant)\n- **Sunrise / Sunset:** ~5:54 am / 5:26 pm\n- **Alerts:** None active\n\n**High/Low today:** Sources differ on the peak — the official Shanghai Meteorological Bureau cites **28°C** (some outlets say 29°C), while the Xujiahui central station reading suggests a high nearer **25–26°C**. Overnight low around **21–23°C**. Either way, it's a **warm, humid day** (\"体感偏暖湿\").\n\n**Coming days**\n| Date | Conditions | Temp |\n|---|---|---|\n| Sun, Oct 18 | Cloudy → overcast, showers or thunderstorms in the afternoon | 24–31°C |\n| Mon, Oct 19 | Overcast, scattered showers as cold air arrives | 21–25°C |\n| Tue, Oct 20 | Overcast with occasional showers | 22–27°C |\n| Wed, Oct 21 | Cloudy to overcast | 17–22°C |\n\n**Heads-up:** A cold front arrives Sunday night into Monday, bringing a distinct rainfall event possibly with thunderstorms and a sharp temperature drop. Another front around Wednesday will push lows down into the low teens, so mornings and evenings will feel noticeably cooler. The next 10 days will see frequent swings between warm and cool air — keep an umbrella handy and layer clothing. Also note Typhoon No. 30 \"Megi\" (蔷琵) strengthened to a severe tropical storm on Oct 16, though it isn't expected to affect China's seas over the next 5 days.\n\n**Source note:** The discrepancies above come from the official Shanghai Meteorological Bureau readings versus international weather aggregators; for a live reading, the official 上海市气象局/上海发布 channels or your preferred weather app will be the most current.", "usage": { "input_tokens": 12264, "output_tokens": 1910, "total_tokens": 14174, "input_tokens_details": { "cached_tokens": 913 }, "output_tokens_details": { "reasoning_tokens": 1311 } }, "error": null, "incomplete_details": null, "instructions": null, "metadata": {}, "tools": [ { "type": "web_search", "name": "", "parameters": null } ], "tool_choice": "auto", "temperature": 1, "top_p": 0.95, "text": { "format": { "type": "text" } }, "reasoning": { "effort": null, "summary": null }, "max_output_tokens": null, "parallel_tool_calls": true, "previous_response_id": null, "conversation": null, "store": false, "safety_identifier": null, "truncation": "disabled"}
Because the search runs entirely on the server, a single request may take longer than one without tools. Set your client timeout accordingly.
Notes
Server Tools are in Beta; behavior and parameters may change at any time.
web_search is 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 is https://api.minimax.io/v1/responses. See the Anthropic SDK and Responses API documentation for details.
If you run into any issues, contact our technical support team at Model@minimax.io.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MiniMax API Docs","colors":{"primary":"#181E25","dark":"#181E25"},"logo":{"light":"https://mintcdn.com/minimax-cac98058/XYzsL2L2ynonu2Q_/logo/light.svg?fit=max\u0026auto=format\u0026n=XYzsL2L2ynonu2Q_\u0026q=85\u0026s=9c99bb2678d62388d8a4e7cce1750858","dark":"https://mintcdn.com/minimax-cac98058/XYzsL2L2ynonu2Q_/logo/dark.svg?fit=max\u0026auto=format\u0026n=XYzsL2L2ynonu2Q_\u0026q=85\u0026s=e62ef6e36d7512de91c8c48322614594","href":"https://minimax.io"},"favicon":"https://mintcdn.com/minimax-cac98058/3KE0RwwD41Lh3xt2/favicon.ico?fit=max\u0026auto=format\u0026n=3KE0RwwD41Lh3xt2\u0026q=85\u0026s=6a58247013972686c0a551c6c6b98d66","api":{"examples":{"prefill":true}},"appearance":{"default":"system","strict":false},"navbar":{"primary":{"type":"button","label":"Console","href":"https://platform.minimax.io/console/home"}},"footer":{"socials":{"discord":"https://www.minimax.io/discord","x":"https://x.com/MiniMax_AI","linkedin":"https://www.linkedin.com/company/minimax-ai","github":"https://github.com/MiniMax-AI"},"links":[{"header":"Model","items":[{"label":"MiniMax M3.1 Flash","href":"https://www.minimax.io/blog/minimax-m31f"},{"label":"MiniMax M3","href":"https://www.minimax.io/blog/minimax-m3"},{"label":"MiniMax H3","href":"https://www.minimax.io/blog/minimax-h3"},{"label":"MiniMax Speech 2.8","href":"https://www.minimax.io/news/minimax-speech-28"},{"label":"MiniMax Music 3.0","href":"https://www.minimax.io/blog/minimax-music-3-0-next-generation-open-weights-production-ready-versatile-music-model"}]},{"header":"Product","items":[{"label":"MiniMax Code","href":"https://agent.minimax.io/"},{"label":"MiniMax Design","href":"https://design.minimax.io/"},{"label":"MiniMax Audio","href":"https://www.minimax.io/audio"}]},{"header":"API Platform","items":[{"label":"Developer Docs","href":"https://platform.minimax.io/docs/guides/models-intro"},{"label":"M Plan Subscription","href":"https://www.minimax.io/m-plan"},{"label":"Pricing","href":"https://platform.minimax.io/docs/pricing/overview"},{"label":"Console Login","href":"https://platform.minimax.io/console/home"},{"label":"Status","href":"https://status.minimax.io/"}]},{"header":"Company","items":[{"label":"About Us","href":"https://www.minimax.io/about"},{"label":"News","href":"https://www.minimax.io/news"},{"label":"Investor Relations","href":"https://ir.minimax.io/"},{"label":"Careers","href":"https://www.minimax.io/careers"}]}]},"seo":{"metatags":{"title":"MiniMax API Docs","description":"MiniMax Open Platform developer documentation with model API references, integration guides, tool setup, and billing information for building AI applications.","charset":"UTF-8","canonical":"https://platform.minimax.io/docs","viewport":"width=device-width, initial-scale=1.0"},"indexing":"all"},"fonts":{"family":"DM Sans"},"icons":{"library":"lucide"},"integrations":{"telemetry":{"enabled":true},"cookies":{"key":"minimax_docs_feedback_consent","value":"v1:granted"}},"banner":{"content":"The next-generation image model MiniMax H3 Image is now available! [View docs →](/docs/guides/image-generation)","dismissible":true},"contextual":{"options":["copy","view","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"minimax-cac98058","hasAudioNarration":false,"actualSubdomain":"minimax-cac98058","customDomains":["platform.minimax.io"],"gitSource":{"type":"github","owner":"minimax-ai-dev","repo":"docs","deployBranch":"main","contentDirectory":"packages/docs-en","isPrivate":true,"mountPath":"","label":""},"feedback":{"issues":false,"thumbs":true,"edits":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6affe40e32d45993b1605200","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"API","count":49},{"language":"default","tag":"Developer Guides","count":33},{"language":"default","tag":"Use Guides","count":23},{"language":"default","tag":"M Plan","count":18},{"language":"default","tag":"Speech","count":17},{"language":"default","tag":"Text","count":14},{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"Tools","count":9},{"language":"default","tag":"Legacy APIs","count":8},{"language":"default","tag":"Video","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableAskAiSearchBar":false},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".audio-container{height:50px;margin:16px 0}.video-agent-templates{width:300px;height:180px;object-fit:cover}video{border-radius:12px}table{overflow-x:auto}th,td{vertical-align:middle!important}td .video-agent-templates{margin:0}#navbar .docs-platform-brand{display:inline-flex;align-items:center;flex-shrink:0}#navbar .docs-platform-name{margin-left:20px;padding-left:20px;border-left:1px solid #e5e7eb;color:#6b7280;font-size:14px;font-weight:400;line-height:20px;white-space:nowrap}.dark #navbar .docs-platform-name{border-color:#374151;color:#9ca3af}#topbar-cta-button>a>span,#navbar .docs-console-mobile>span{background-color:#242424;border-radius:8px}#topbar-cta-button>a:hover>span,#navbar .docs-console-mobile:hover>span{background-color:#3a3a3a}#navbar .docs-console-mobile{display:none}#navbar nav:has(#topbar-cta-button){margin-right:0}@media (max-width: 1023px){#navbar .docs-platform-name{margin-left:12px;padding-left:12px;font-size:12px}#navbar .docs-console-mobile{position:relative;display:inline-flex;align-items:center;flex-shrink:0;padding:8px 10px;font-size:12px;font-weight:500;white-space:nowrap}}@media (max-width: 480px){#navbar .docs-topbar-row{column-gap:4px}#navbar .docs-platform-brand .nav-logo{width:80px;height:auto}#navbar .docs-platform-name{max-width:60px;margin-left:8px;padding-left:8px;font-size:11px;line-height:14px;white-space:normal}#navbar .docs-console-mobile{padding:8px;font-size:11px}#navbar :has(>#search-bar-entry-mobile){gap:6px}#navbar #search-bar-entry-mobile{width:24px}}#content-container p{font-size:1rem;line-height:1.5rem}.eyebrow{text-transform:uppercase}.method-nav-pill>span{font-weight:400}*:has(>.method-pill){border:none}.navbar-link>a{font-weight:400}.nav-tabs-item{font-weight:400}.nav-tabs-item.text-gray-800{font-weight:500}*:has(>.navbar-link)>.navbar-link:first-child>a{color:#181e25;font-weight:500}.dark *:has(>.navbar-link)>.navbar-link:first-child>a{color:#fff}#navbar,#sidebar{letter-spacing:0.02em}.callout{margin-top:2rem;margin-bottom:2rem}#content:has(>.model-retirement-notice:first-child){margin-top:1rem}.callout.model-retirement-notice{margin-top:0}.mplan-tool-intro{margin:16px 0;padding:12px 16px;border-left:4px solid #d97706;border-radius:6px;background:#fffbeb}.dark .mplan-tool-intro{background:rgba(120, 53, 15, 0.22);color:#e5e7eb}.dark .mplan-tool-intro a{color:#fbbf24!important;border-bottom-color:#fbbf24!important}.card span{line-height:1.4rem;margin-top:8px!important}#banner a{border-bottom-color:#181E25;color:#FFF}#footer a[href=\"mailto:api@minimax.io\"] svg{-webkit-mask-image:url('https://filecdn.minimax.chat/public/45f6ad6e-f42e-45ed-938e-7de67bfd367f.svg')!important;mask-image:url('https://filecdn.minimax.chat/public/45f6ad6e-f42e-45ed-938e-7de67bfd367f.svg')!important}#sidebar:has(a[href$=\"/pricing/overview\"]),#sidebar:has(a[href$=\"/pricing/overview/\"]){visibility:hidden}.pricing-sidebar-navigation{display:none}@media (min-width: 1024px){#content:has([data-pricing-sidebar]){container-type:normal;contain:none;isolation:auto}.pricing-sidebar-navigation{--pricing-sidebar-top: calc(var(--mintlify-slot-header-height, calc(4rem + var(--topbar-tabs-height, 3rem))) + var(--banner-height, 0px));display:block;position:fixed;z-index:20;top:var(--pricing-sidebar-top);left:max(2rem, calc((100vw - 92rem) / 2 + 2rem));width:var(--sidebar-width, 18rem);height:calc(100dvh - var(--pricing-sidebar-top));box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:40px 24px 32px 0;margin:0}}[data-pricing-overview-active] [data-pricing-original]{display:none!important}.pricing-anchor-navigation{font-size:14px;line-height:1.5}.pricing-navigation-group+.pricing-navigation-group{margin-top:28px}.pricing-navigation-title{display:block;margin:0 0 10px;padding-left:16px;color:#111827;font-size:inherit;font-weight:600;line-height:1.5}.pricing-anchor-navigation .pricing-anchor-link{display:block;padding:6px 12px 6px 16px;margin:1px 0;border:0;border-radius:12px;color:#374151;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}.pricing-anchor-navigation .pricing-anchor-link:hover{background:rgba(75, 85, 99, .05);color:#111827}.pricing-anchor-navigation .pricing-anchor-link[aria-current=\"location\"]{background:rgba(24, 30, 37, .075);color:#181e25;font-weight:600}.pricing-anchor-link:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.pricing-section-toc{font-size:14px;line-height:1.5}.pricing-toc-title{margin-bottom:12px;color:#374151;font-weight:500}.pricing-section-toc .pricing-anchor-link{display:block;border:0;padding:5px 0 5px 12px;border-left:1px solid #e5e7eb;color:#6b7280;text-decoration:none;overflow-wrap:anywhere}.pricing-section-toc .pricing-anchor-link[aria-current=\"location\"]{border-left:2px solid #181e25;color:#181e25;font-weight:500}.pricing-mobile-navigation{display:none}#pricing-document .pricing-section,#pricing-document .pricing-section [id]{scroll-margin-top:10rem}.dark .pricing-navigation-title,.dark .pricing-toc-title{color:#e5e7eb}.dark .pricing-anchor-navigation .pricing-anchor-link,.dark .pricing-section-toc .pricing-anchor-link{color:#9ca3af}.dark .pricing-anchor-navigation .pricing-anchor-link:hover{background:rgba(229, 231, 235, .05);color:#d1d5db}.dark .pricing-anchor-navigation .pricing-anchor-link[aria-current=\"location\"]{background:rgba(229, 231, 235, .1);color:#f3f4f6}.dark .pricing-section-toc .pricing-anchor-link{border-left-color:#374151}.dark .pricing-section-toc .pricing-anchor-link[aria-current=\"location\"]{border-left-color:#e5e7eb;color:#e5e7eb}@media (max-width: 1023px){#pricing-document .pricing-mobile-navigation{display:block;margin:0 0 24px}#pricing-document .pricing-mobile-navigation>.accordion{margin-bottom:0}#pricing-document .pricing-mobile-navigation .pricing-anchor-navigation{max-height:min(65vh, 560px);overflow-y:auto;padding:8px 12px 20px;overscroll-behavior:contain}}#pricing-document>.pricing-section{margin-top:56px;padding-top:40px;border-top:1px solid #e5e7eb}#pricing-document>.pricing-overview+.pricing-section{margin-top:36px;border-top:0}#pricing-document>.pricing-section>h2:first-child{margin-top:0}#pricing-document .pricing-overview>span[data-as=\"p\"],#pricing-document .pricing-section>span[data-as=\"p\"]{display:block;margin:1em 0}.dark #pricing-document>.pricing-section{border-color:#374151}@media (max-width: 767px){#pricing-document>.pricing-section{margin-top:40px;padding-top:28px}}#pricing-document section[id=\"models/text\"] table{table-layout:fixed;width:100%}#pricing-document section[id=\"models/text\"] table th:first-child,#pricing-document section[id=\"models/text\"] table td:first-child{width:32%}#pricing-document section[id=\"models/video\"] table{table-layout:fixed;width:100%}#pricing-document section[id=\"models/video\"] table th:first-child,#pricing-document section[id=\"models/video\"] table td:first-child{width:30%}#pricing-document .video-price-table,#pricing-document .video-task-table{display:table;table-layout:fixed;width:100%}#pricing-document .video-price-table td:has(>strong)+td,#pricing-document .video-price-table tbody tr:not(:has(strong))>td:first-child{padding-left:24px}#pricing-document .video-price-table thead th:nth-child(2){padding-left:24px}.restricted-doc{--restricted-border: rgba(15, 23, 42, .12);--restricted-border-strong: rgba(15, 23, 42, .18);--restricted-muted: #64748b;--restricted-surface: rgba(15, 23, 42, .035);--restricted-surface-hover: rgba(15, 23, 42, .055);--restricted-link: #2563eb;color:inherit}.dark .restricted-doc{--restricted-border: rgba(255, 255, 255, .12);--restricted-border-strong: rgba(255, 255, 255, .18);--restricted-muted: #94a3b8;--restricted-surface: rgba(255, 255, 255, .045);--restricted-surface-hover: rgba(255, 255, 255, .07);--restricted-link: #60a5fa}.restricted-doc-loading{min-height:12rem;display:flex;align-items:center;justify-content:center}.restricted-doc-spinner{width:1.75rem;height:1.75rem;border:2px solid rgba(98,112,132,.24);border-top-color:#627084;border-radius:50%;animation:restricted-doc-spin .75s linear infinite}@keyframes restricted-doc-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.restricted-doc-spinner{animation-duration:1.5s}}.restricted-doc>h1{margin:0 0 .75rem;font-size:2.25rem;line-height:1.2;font-weight:700;letter-spacing:-.025em}.restricted-doc-description{margin:0 0 2rem;color:var(--restricted-muted);font-size:1.05rem;line-height:1.7}.restricted-doc h2,.restricted-doc h3,.restricted-doc h4{scroll-margin-top:6rem;font-weight:650;letter-spacing:-.015em}.restricted-doc h2{margin:2.75rem 0 1rem;padding-top:.25rem;font-size:1.65rem;line-height:1.35}.restricted-doc h3{margin:2.1rem 0 .75rem;font-size:1.3rem;line-height:1.4}.restricted-doc h4{margin:1.6rem 0 .5rem;font-size:1.1rem;line-height:1.45}.restricted-doc>p{margin:1rem 0}.restricted-doc p,.restricted-doc li{line-height:1.75}.restricted-doc ul,.restricted-doc ol{margin:1rem 0;padding-left:1.5rem}.restricted-doc li{padding-left:.15rem}.restricted-doc li+li{margin-top:.3rem}.restricted-doc li>p{margin:.25rem 0}.restricted-doc a{color:var(--restricted-link);text-decoration:underline;text-decoration-color:color-mix(in srgb, var(--restricted-link) 35%, transparent);text-underline-offset:.2em}.restricted-doc a:hover{text-decoration-color:currentColor}.restricted-doc :not(pre)>code{padding:.15rem .4rem;border:1px solid var(--restricted-border);border-radius:.35rem;background:var(--restricted-surface);font-size:.875em;font-weight:500}.restricted-doc-table-wrap{max-width:100%;margin:1.5rem 0;overflow-x:auto;border:1px solid var(--restricted-border-strong);border-radius:.75rem}.restricted-doc table{width:100%;border-collapse:separate;border-spacing:0;font-size:.925rem;line-height:1.55}.restricted-doc th,.restricted-doc td{min-width:7rem;padding:.75rem 1rem;border-bottom:1px solid var(--restricted-border);vertical-align:top;text-align:left}.restricted-doc th+th,.restricted-doc td+td{border-left:1px solid var(--restricted-border)}.restricted-doc th{background:var(--restricted-surface);font-weight:600;color:inherit}.restricted-doc tbody tr{transition:background-color .15s ease}.restricted-doc tbody tr:hover{background:var(--restricted-surface-hover)}.restricted-doc tr:last-child td{border-bottom:0}.restricted-doc-code{position:relative;margin:1.5rem 0;border:1px solid rgba(255,255,255,.09);border-radius:.75rem;background:#0f172a;color:#e5e7eb;box-shadow:0 1px 2px rgba(15,23,42,.08);overflow:hidden}.restricted-doc-code pre{margin:0;padding:1.1rem 1.2rem;overflow-x:auto;background:transparent}.restricted-doc-code code{display:block;min-width:max-content;padding-right:3.5rem;font-size:.85rem;line-height:1.7;white-space:pre;tab-size:2}.restricted-doc-code button{position:absolute;z-index:1;top:.65rem;right:.65rem;padding:.3rem .6rem;border:1px solid rgba(255,255,255,.16);border-radius:.4rem;background:rgba(30,41,59,.92);color:#cbd5e1;font-size:.75rem;line-height:1.25rem;cursor:pointer;transition:color .15s ease, border-color .15s ease, background-color .15s ease}.restricted-doc-code button:hover{border-color:rgba(255,255,255,.28);background:#334155;color:#fff}.restricted-doc-code .hljs-comment,.restricted-doc-code .hljs-quote{color:#7f8ea3;font-style:italic}.restricted-doc-code .hljs-keyword,.restricted-doc-code .hljs-selector-tag,.restricted-doc-code .hljs-literal,.restricted-doc-code .hljs-section,.restricted-doc-code .hljs-link{color:#c792ea}.restricted-doc-code .hljs-string,.restricted-doc-code .hljs-title,.restricted-doc-code .hljs-name,.restricted-doc-code .hljs-type,.restricted-doc-code .hljs-attribute,.restricted-doc-code .hljs-symbol,.restricted-doc-code .hljs-bullet,.restricted-doc-code .hljs-addition,.restricted-doc-code .hljs-variable,.restricted-doc-code .hljs-template-tag,.restricted-doc-code .hljs-template-variable{color:#addb67}.restricted-doc-code .hljs-number,.restricted-doc-code .hljs-meta,.restricted-doc-code .hljs-built_in,.restricted-doc-code .hljs-builtin-name,.restricted-doc-code .hljs-params{color:#f78c6c}.restricted-doc-code .hljs-attr,.restricted-doc-code .hljs-selector-id,.restricted-doc-code .hljs-selector-class,.restricted-doc-code .hljs-selector-attr,.restricted-doc-code .hljs-selector-pseudo{color:#ffcb6b}.restricted-doc-code .hljs-function,.restricted-doc-code .hljs-class .hljs-title{color:#82aaff}.restricted-doc-code .hljs-regexp,.restricted-doc-code .hljs-deletion{color:#ff5370}.restricted-doc-code .hljs-emphasis{font-style:italic}.restricted-doc-code .hljs-strong{font-weight:700}.restricted-doc-callout{margin:1.5rem 0;padding:.9rem 1rem;border:1px solid rgba(59,130,246,.22);border-radius:.65rem;background:rgba(59,130,246,.07)}.restricted-doc-callout>:first-child{margin-top:0}.restricted-doc-callout>:last-child{margin-bottom:0}.restricted-doc blockquote{margin:1.5rem 0;padding:.1rem 0 .1rem 1.1rem;border-left:2px solid var(--restricted-border-strong);color:var(--restricted-muted);font-style:italic}.restricted-doc blockquote>:first-child{margin-top:0}.restricted-doc blockquote>:last-child{margin-bottom:0}.restricted-doc-toc ul{margin:.6rem 0 0;padding:0;list-style:none}.restricted-doc-toc li{margin:.35rem 0;line-height:1.35}.restricted-doc-toc li[data-level=\"3\"]{padding-left:.75rem}.restricted-doc-toc li[data-level=\"4\"]{padding-left:1.5rem}.restricted-doc-toc a{color:var(--restricted-muted);text-decoration:none}.restricted-doc-toc a:hover{color:var(--restricted-link)}.restricted-doc-toc-title{font-weight:600}.restricted-doc-not-found{min-height:20rem;padding:4rem 0;text-align:center}.restricted-doc-not-found h1{font-size:3rem}@media (max-width: 768px){.restricted-doc>h1{font-size:1.85rem}.restricted-doc th,.restricted-doc td{min-width:6.5rem;padding:.65rem .75rem}.restricted-doc-code pre{padding:1rem}}"}]}
{"page":{"pagePath":"guides/server-tools","slug":"/guides/server-tools","pageMetadata":{"title":"Server Tools","sidebarTitle":"Server Tools","tag":"Beta","description":null,"href":"/guides/server-tools"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,Card,CardGroup,CodeBlock,Heading,Info,Tab,Table,Tabs,Tip}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`what-are-server-tools`,children:`What are Server Tools`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`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.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`This capability is currently in `,_jsx(_components.strong,{children:`Beta`}),`; behavior and parameters may change.`]})}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Client-side tools (Function Call)`,icon:`wrench`,children:_jsxs(_components.p,{children:[`The model returns `,_jsx(_components.code,{children:`tool_use`}),`, `,_jsx(_components.strong,{children:`your code`}),` executes it, and you pass `,_jsx(_components.code,{children:`tool_result`}),` back. Requires multiple round trips.`]})}),_jsx(Card,{title:`Server Tools`,icon:`server`,children:_jsxs(_components.p,{children:[`The model executes the tool and retrieves the result on `,_jsx(_components.strong,{children:`MiniMax’s servers`}),`, all within a `,_jsx(_components.strong,{children:`single request`}),`. You only read the final reply.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`availability`,children:`Availability`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Capability`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Support`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Interface`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.strong,{children:`Anthropic Messages API`}),` (`,_jsx(_components.code,{children:`/anthropic/v1/messages`}),`)`,_jsx(`br`,{}),_jsx(_components.strong,{children:`OpenAI Responses API`}),` (`,_jsx(_components.code,{children:`/v1/responses`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Available tools`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`web_search`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`How to use`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Declare the server tool in the request’s `,_jsx(_components.code,{children:`tools`}),` array`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`web_search`,children:`web_search`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`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.).`]}),`\n`,_jsx(Heading,{level:`3`,id:`declare-the-tool`,children:`Declare the tool`}),`\n`,_jsxs(_components.p,{children:[`Declare `,_jsx(_components.code,{children:`web_search`}),` in the `,_jsx(_components.code,{children:`tools`}),` array using the format for your interface:`]}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Anthropic Messages API`,id:`anthropic-messages-api`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search_20250305\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(Tab,{title:`OpenAI Responses API`,id:`openai-responses-api`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`The Anthropic Messages API uses the versioned type identifier `,_jsx(_components.code,{children:`web_search_20250305`}),`; the OpenAI Responses API uses the `,_jsx(_components.code,{children:`web_search`}),` tool type. Use the format that matches the interface you call.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Anthropic Messages API`,id:`anthropic-messages-api-2`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`20`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.minimax.io/anthropic/v1/messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"x-api-key: ${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MINIMAX_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"anthropic-version: 2023-06-01\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"MiniMax-M3.1-Flash\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_tokens\": 8192,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"messages\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\": \"user\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"What is the weather in Shanghai?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tools\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"web_search_20250305\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"web_search\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),_jsx(Tab,{title:`OpenAI Responses API`,id:`openai-responses-api-2`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.minimax.io/v1/responses'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"Authorization: Bearer ${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MINIMAX_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"MiniMax-M3.1-Flash\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": \"What is the weather in Shanghai?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tools\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"web_search\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(Heading,{level:`4`,id:`anthropic-messages-api`,children:`Anthropic Messages API`}),`\n`,_jsxs(_components.p,{children:[`Once `,_jsx(_components.code,{children:`web_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 `,_jsx(_components.code,{children:`tool_use`}),` / `,_jsx(_components.code,{children:`tool_result`}),` round trips—just read the `,_jsx(_components.code,{children:`text`}),` content blocks in `,_jsx(_components.code,{children:`message.content`}),` to get the answer.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`message.content`}),` returns multiple content blocks in the order the model executed them. A complete search-and-answer flow typically includes the following types:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Block type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`thinking`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The model’s thinking, generated on demand; it may appear before or after searches`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`text`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Text generated by the model. Both the lead-in before searching and the final answer after searching use this type`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`server_tool_use`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The tool call the model issued on the server side. `,_jsx(_components.code,{children:`name`}),` is `,_jsx(_components.code,{children:`web_search`}),`, and `,_jsx(_components.code,{children:`input.query`}),` is the actual search query`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`web_search_tool_result`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The search results returned by the server. `,_jsx(_components.code,{children:`content`}),` is a list of `,_jsx(_components.code,{children:`web_search_result`}),` items with fields such as `,_jsx(_components.code,{children:`title`}),`, `,_jsx(_components.code,{children:`url`}),`, `,_jsx(_components.code,{children:`page_age`}),`, and `,_jsx(_components.code,{children:`content`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`If the model reaches the search limit within a single request, the response ends with `,_jsx(_components.code,{children:`stop_reason: \"pause_turn\"`}),` and contains no final answer. Append the returned `,_jsx(_components.code,{children:`content`}),` to `,_jsx(_components.code,{children:`messages`}),` as an assistant message as-is and send the request again; the model continues and produces its reply.`]}),`\n`,_jsx(Accordion,{title:`Full response example`,id:`full-response-example`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`78`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`78`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0722ab2fff2b350127e3f97c946a0b5e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-M3.1-Flash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I'll search for the current weather in Shanghai for you.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"server_tool_use\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_function_j3h161hnqzzv_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Shanghai weather today\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search_tool_result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tool_use_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_function_j3h161hnqzzv_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search_result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"墨迹天气-今日上海市天气\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://co.moji.com/ganji/city/39/ganji\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"墨迹天气-今日上海市天气 墨迹天气。多云 优 AQI 26 东风2级 湿度81% 紫外线弱 Created with Raphaël 2.1.226°28°32°25°27°21°22°22°21°22°17°15° 周五 阴 阴 10/16 今天 阴 阴 10/17 周日 小雨 小雨 10/18 周一 阴 阴 10/……\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"server_tool_use\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_function_j3h161hnqzzv_2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"上海 今天 天气 预报\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search_tool_result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tool_use_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_function_j3h161hnqzzv_2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search_result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"周末最高31,上海大歌剧院今正式启幕;上海东站、上海宝山站预计明年投用\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.toutiao.com/article/7697406452465435176/\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_age\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026/10/17 07:08:47\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"发布时间:2026年10月17日。2026-10-1707:08·新民晚报上海今天多云到阴,东南风4~5级,沿江沿海地区阵风有6级,今天上午转4~5级阵风6级,沿江沿海地区5级阵风6~7级。今天最高气温28℃,最低气温22℃。相对湿度90%~45%。周日的最高气温可达31℃。周日夜里到下周一上海转受冷空气影响,将有一次……\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"thinking\": \"The search results indicate today's date is around October 17, 2026 (based on page ages). Let me summarize the weather for today in Shanghai.\\\\n\\\\nFrom 中国天气网 (China Weather): Today (17日) 阴 (overcast) 28/23℃, wind \u003c3级\\\\nFrom 天气网 (tianqi.com): 2026-10-17 阴 23~28°C, 优 (air quality excellent), UV weak, 东南风 2级, 湿度 84%\\\\nHourly: 08:00 阴 23℃ ... 15:00 阴 28℃ peak\\\\nFrom 新民晚报/上海天气: morning temps 19-22°C across districts, Xujiahui station 21.9°C, mostly cloudy, SE wind 4-5级 gusting 6级, along coastal areas stronger, high ~29°C (28-29°C), humidity 90%-45%, feels warm and humid.\\\\n\\\\nLet me present that.\\\\n\\\\nNote: there's some slight variation in high temp (28 vs 29). Let me note that.\\\\n\\\\nAir quality: one source says 优 (excellent) AQI 26, another says 59 US AQI moderate. The 墨迹天气 said 多云 优 AQI 26. weather.now said humidity 86%, 19°C. Those may be slightly different times.\\\\n\\\\nLet me give a clean summary.\\\\n\\\\nI should also note the date. The system doesn't give me a date, but the search results strongly indicate today is October 17, 2026 (Friday). Let me verify: 17日(今天), 18日(明天) 周日... hmm, weather.com.cn says 17日(今天), 18日(明天), 19日(后天), 20日(周二), 21日(周三), 22日(周四), 23日(周五). So if 20日 is Tuesday, then 17日 is Saturday. But the 新民晚报 article says \\\\\"明天上午申城仍以多云为主\\\\\" and mentions 周日... and the weather.com.cn says 周日的最高气温可达31℃ which would be 18日 = Sunday. So 17日 = Saturday, 18日 = Sunday, 19日 = Monday, 20日 = Tuesday. Yes! Consistent. And 墨迹天气 said 周五 阴, 10/16... 10/17 周日 小雨, hmm that says 10/17 is 周日. Slight discrepancy in that source. But the China Meteorological Administration data is more authoritative: 17日(今天) 阴 28/23℃, 18日(明天) 小雨 31/21℃.\\\\n\\\\nHmm, but wait — 2026-10-17: what day of the week is it? Let me compute. Jan 1, 2026 is a Thursday. Days to Oct 17: Jan 31, Feb 28, Mar 31, Apr 30, May 31, Jun 30, Jul 31, Aug 31, Sep 30 = 273 days; +17 = day 290 of year. Day 1 = Thursday. (290-1) mod 7 = 289 mod 7 = 289 - 287 = 2. Thursday + 2 = Saturday. Yes, October 17, 2026 is a Saturday. \\\\n\\\\nSo today is Saturday, October 17, 2026. Consistent with the authoritative sources.\\\\n\\\\nLet me write the summary.\",`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"signature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a4afec79dd1e70375fde7e4980f05f8178df0354514935330e05fcccb0e41d47\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"thinking\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"## 上海今日天气 · 2026年10月17日(周六)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`**总体:多云到阴,暖湿,傍晚转晴**`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`| 项目 | 数值 |`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`|---|---|`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`| 天气 | 上午多云为主、阳光间歇露脸 → 午后转阴 → 傍晚间晴 |`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`| 气温 | 22~28~29℃(清晨各区普遍 19~22℃,徐家汇站早间 21.9℃) |`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`| 相对湿度 | 90% → 45%(体感偏暖湿) |`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`| 风 | 东南风 4~5 级,阵风 6 级;沿江沿海 5 级、阵风 6~7 级 |`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`| 空气质量 | 优(AQI 26~59) |`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`| 紫外线 | 弱 |`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`| 日出/日落 | 约 5:54 / 5:26 |`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`**逐时(市区参考)**`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`- 08:00 阴 23℃ → 10:00 多云 26℃ → 12:00–15:00 阴 27~28℃(午后最热)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`- 17:00–18:00 转晴 25~26℃ → 夜间维持在 24℃ 左右`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`**未来几天趋势(注意`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`滑梯式`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`降温)**`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`- 周日 (18日):上午仍多云,最高可达 **31℃**,湿度大、体感闷热;**周日下午起转阴有阵雨或雷雨**`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`- 周一 (19日):明显降水过程,最高降至 25℃ 左右`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`- 周二–周三:再有冷空气交汇,最低气温跌至`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`1字头`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,中后期最高止步 22℃`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`**建议**:今天适合洗衣晾晒;出门带伞备用,午后风大注意防风;周日前后温差很大,请及时增减衣物。`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`*数据来源:中国天气网(中央气象台)、上海市气象台/上海天气、天气网*\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`11441`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1211`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cache_creation_input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cache_read_input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`405`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"thinking_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`735`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stop_reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"end_turn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"base_resp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status_msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`4`,id:`openai-responses-api`,children:`OpenAI Responses API`}),`\n`,_jsxs(_components.p,{children:[`Once `,_jsx(_components.code,{children:`web_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 `,_jsx(_components.code,{children:`output`}),` array contains the search call and model reply. Read the top-level `,_jsx(_components.code,{children:`output_text`}),` field to get the final answer directly.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field or output item`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`reasoning`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The model’s thinking, generated on demand; it may appear before or after searches`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`web_search_call`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The server-side web search call, including its call ID, status, and the actual search query in `,_jsx(_components.code,{children:`action.query`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`message`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Text generated by the model, contained in `,_jsx(_components.code,{children:`content`}),`. Both the lead-in before searching and the final answer after searching use this type`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`output_text`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Aggregated final text that can be read directly`})]})]})]}),`\n`,_jsx(Accordion,{title:`Responses API response example`,id:`responses-api-response-example`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`117`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`117`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0722aabe4562a021db547c10cbb6b92f\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1792243646`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MiniMax-M3.1-Flash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0722aabe4562a021db547c10cbb6b92f_msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"output_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I'll search for today's weather in Shanghai for you.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"annotations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_function_fvcvy51e98o0_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search_call\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Shanghai weather today\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_function_fvcvy51e98o0_2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search_call\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"上海今天天气 实时天气预报\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0722aabe4562a021db547c10cbb6b92f_rs_r1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reasoning\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reasoning_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"text\": \"Let me synthesize. Today's date appears to be around October 17-18, 2026. The most recent sources (Oct 17, 2026) give today's forecast. The timeanddate source shows \\\\\"Current Time: 14 Oct 2026\\\\\" which is older. The Chinese sources dated 2026-10-17 say: today (Oct 17) 多云到阴 (cloudy to overcast), SE wind 4-5 with gusts 6, along the river/coastal 5 with gusts 6-7, high 28°C, low 22°C, humidity 90%~45%. Some say high 29°C, Xujiahui station 21.9°C in the morning, 25.7°C max (conflicting). Let me note: one source says 最高气温升至29℃上下 and Xujiahui 21.9°C at start, another says 最高气温止步25~26℃ Xujiahui 25.7. These are conflicting — the 上观新闻 article says today's high 25-26°C with max at Xujiahui 25.7°C, while the other article says 29°C. Hmm, the 松江区气象局 issued on Oct 16 17时: 今天最高温度25.2度,最低温度20.9度, 明天最高28度最低22度 — for Oct 17 forecast issued Oct 16.\\\\n\\\\nWait, let me sort out dates. 上观新闻 article published 2026-10-17, says \\\\\"今日天气 上海今天云量较多局部出现短时小雨... 午后最高气温止步25~26℃,市区徐家汇站为25.7℃... 明天多云到阴...明天最高气温28℃最低气温22℃\\\\\". And 10月18日(周日) forecast: 24℃~31℃, 10月19日(周一): 21℃~25℃.\\\\n\\\\nSo Oct 17 = Saturday? Let's check: Oct 18 is Sunday per the forecast, so Oct 17 is Saturday. And the 松江区 forecast issued Oct 16 17时 refers to \\\\\"今天\\\\\" = Oct 16 (high 25.2) and \\\\\"明天\\\\\" = Oct 17 (high 28, low 22). Hmm, so Oct 17 forecast from 松江 = high 28, low 22. That matches the 上海市气象台 quote \\\\\"今天最高气温28℃,最低气温22℃\\\\\" from 163/toutiao articles published Oct 17.\\\\n\\\\nBut 上观's article published Oct 17 says today's high is 25-26°C and tomorrow (Oct 18) 28°C... Wait no — 上观 says \\\\\"明天多云到阴...明天最高气温28℃最低气温22℃\\\\\" and then \\\\\"10月18日(周日):多云到阴转阴到多云有时有阵雨或雷雨,24℃~31℃\\\\\". Hmm, there's a conflict: it says 明天最高气温28℃ but the 5-day list says Oct 18 is 24-31°C. So 明天 in the 28°C sentence probably refers to Oct 17 (if published on Oct 16)... but published Oct 17. Confusing. Also 松江 says 明天 (Oct 17) high 28 low 22 — consistent with 28°C for Oct 17.\\\\n\\\\nHmm, but wait — the articles published 2026-10-17 with \\\\\"今天最高气温28℃,最低气温22℃\\\\\" — those may actually be describing Oct 17. And the 上观 article published Oct 17 (finance.sina 2026-10-17) says today's high 25-26°C, Xujiahui 25.7, and \\\\\"明天\\\\\" high 28. There's genuine conflict across sources about today's (Oct 17) high: 25-26°C vs 28-29°C.\\\\n\\\\nAlso, the weatheo.com source shows \\\\\"Today 17 High 27° Low 23°\\\\\" and hourly 22-28°C, sunrise 05:58 sunset 05:22, AQI 59 moderate. The timeanddate for Shenzhuang: Oct 14, 20°C clear, forecast 25/17.\\\\n\\\\nGiven today is likely Oct 17, 2026, the most relevant: the 墨迹天气 shows 今日 阴 with 22-25°C range, AQI 26.\\\\n\\\\nLet me be honest about the conflicts and present a range. Let me summarize:\\\\n\\\\nCurrent conditions (approximations): ~20-22°C, cloudy/overcast, humidity 78-90%, northerly-to-southeasterly light-to-moderate wind.\\\\n\\\\nActually, there's a conflict on wind: theweathernetwork says wind N 14 km/h; the 墨迹 says 东风2级; the Chinese official says 东南风4-5级. Different times/stations.\\\\n\\\\nLet me present a synthesized answer:\\\\n- Today: cloudy to overcast (多云到阴), with some sunny spells; local brief showers possible\\\\n- High ~25-29°C (sources differ; Xujiahui station 25.7°C), low ~21-23°C\\\\n- Humidity 90%→45%, warm and muggy (体感偏暖湿)\\\\n- SE wind 4-5 with gusts 6 (along river/coastal gusts 6-7)\\\\n- No active alerts; AQI good-to-moderate (26-59)\\\\n- Tomorrow (Oct 18): cloudy turning overcast, showers/thunderstorms possible, 24-31°C\\\\n- Monday Oct 19: cold air arrives, rain/thunderstorms, high drops to 25°C\\\\n- Wed Oct 21: min temps drop to \\\\\"teens\\\\\" (17°C)\\\\n\\\\nAlso note: Typhoon No. 30 \\\\\"蔷琵\\\\\" (Megi) upgraded to strong tropical storm on Oct 16, but no effect on China's seas in the next 5 days.\\\\n\\\\nSunrise/sunset ~5:54-5:58am / 5:22-5:26pm.\\\\n\\\\nLet me write this up. The user asked in English, so respond in English.\\\\n\\\\nI should be careful with the conflicting temps and mention it.\\\\n\\\\nLet me structure nicely.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0722aabe4562a021db547c10cbb6b92f_msg_r1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"output_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"text\": \"## Shanghai Weather Today (Saturday, October 17, 2026)\\\\n\\\\n**Current conditions**\\\\n- **Temperature:** ~20–22°C, \\\\\"feels like\\\\\" the same\\\\n- **Sky:** Cloudy to overcast (多云到阴), with sun breaking through at times; brief local showers possible\\\\n- **Humidity:** High in the morning (78–90%), dropping to ~45% by afternoon\\\\n- **Wind:** Southeast at 4–5 on the Beaufort scale, gusts to 6; along the Huangpu River and coastal areas, gusts of 6–7\\\\n- **Rain chance:** Low overall (~10–30%), rising later in the day\\\\n- **Air quality:** Good to moderate (AQI roughly 26–59, PM2.5 as main pollutant)\\\\n- **Sunrise / Sunset:** ~5:54 am / 5:26 pm\\\\n- **Alerts:** None active\\\\n\\\\n**High/Low today:** Sources differ on the peak — the official Shanghai Meteorological Bureau cites **28°C** (some outlets say 29°C), while the Xujiahui central station reading suggests a high nearer **25–26°C**. Overnight low around **21–23°C**. Either way, it's a **warm, humid day** (\\\\\"体感偏暖湿\\\\\").\\\\n\\\\n**Coming days**\\\\n| Date | Conditions | Temp |\\\\n|---|---|---|\\\\n| Sun, Oct 18 | Cloudy → overcast, showers or thunderstorms in the afternoon | 24–31°C |\\\\n| Mon, Oct 19 | Overcast, scattered showers as cold air arrives | 21–25°C |\\\\n| Tue, Oct 20 | Overcast with occasional showers | 22–27°C |\\\\n| Wed, Oct 21 | Cloudy to overcast | 17–22°C |\\\\n\\\\n**Heads-up:** A cold front arrives Sunday night into Monday, bringing a distinct rainfall event possibly with thunderstorms and a sharp temperature drop. Another front around Wednesday will push lows down into the low teens, so mornings and evenings will feel noticeably cooler. The next 10 days will see frequent swings between warm and cool air — keep an umbrella handy and layer clothing. Also note Typhoon No. 30 \\\\\"Megi\\\\\" (蔷琵) strengthened to a severe tropical storm on Oct 16, though it isn't expected to affect China's seas over the next 5 days.\\\\n\\\\n**Source note:** The discrepancies above come from the official Shanghai Meteorological Bureau readings versus international weather aggregators; for a live reading, the official 上海市气象局/上海发布 channels or your preferred weather app will be the most current.\",`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"annotations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url_citation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"上海天气剧透\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://zx.sina.cn/wp/2026-10-12/zx-iniuxrzp7268369.d.html\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"start_index\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"end_index\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"上海天气剧透 手机新浪网。** 上海市天气 #上海天气剧透#今天夜里天气转好,周三周四多云为主,周四周五云系增多,局部伴有短时小雨。双休日雨势变得明显起来~~ \"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"output_text\": \"I'll search for today's weather in Shanghai for you.## Shanghai Weather Today (Saturday, October 17, 2026)\\\\n\\\\n**Current conditions**\\\\n- **Temperature:** ~20–22°C, \\\\\"feels like\\\\\" the same\\\\n- **Sky:** Cloudy to overcast (多云到阴), with sun breaking through at times; brief local showers possible\\\\n- **Humidity:** High in the morning (78–90%), dropping to ~45% by afternoon\\\\n- **Wind:** Southeast at 4–5 on the Beaufort scale, gusts to 6; along the Huangpu River and coastal areas, gusts of 6–7\\\\n- **Rain chance:** Low overall (~10–30%), rising later in the day\\\\n- **Air quality:** Good to moderate (AQI roughly 26–59, PM2.5 as main pollutant)\\\\n- **Sunrise / Sunset:** ~5:54 am / 5:26 pm\\\\n- **Alerts:** None active\\\\n\\\\n**High/Low today:** Sources differ on the peak — the official Shanghai Meteorological Bureau cites **28°C** (some outlets say 29°C), while the Xujiahui central station reading suggests a high nearer **25–26°C**. Overnight low around **21–23°C**. Either way, it's a **warm, humid day** (\\\\\"体感偏暖湿\\\\\").\\\\n\\\\n**Coming days**\\\\n| Date | Conditions | Temp |\\\\n|---|---|---|\\\\n| Sun, Oct 18 | Cloudy → overcast, showers or thunderstorms in the afternoon | 24–31°C |\\\\n| Mon, Oct 19 | Overcast, scattered showers as cold air arrives | 21–25°C |\\\\n| Tue, Oct 20 | Overcast with occasional showers | 22–27°C |\\\\n| Wed, Oct 21 | Cloudy to overcast | 17–22°C |\\\\n\\\\n**Heads-up:** A cold front arrives Sunday night into Monday, bringing a distinct rainfall event possibly with thunderstorms and a sharp temperature drop. Another front around Wednesday will push lows down into the low teens, so mornings and evenings will feel noticeably cooler. The next 10 days will see frequent swings between warm and cool air — keep an umbrella handy and layer clothing. Also note Typhoon No. 30 \\\\\"Megi\\\\\" (蔷琵) strengthened to a severe tropical storm on Oct 16, though it isn't expected to affect China's seas over the next 5 days.\\\\n\\\\n**Source note:** The discrepancies above come from the official Shanghai Meteorological Bureau readings versus international weather aggregators; for a live reading, the official 上海市气象局/上海发布 channels or your preferred weather app will be the most current.\",`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12264`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1910`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`14174`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cached_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`913`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reasoning_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1311`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"incomplete_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tools\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"web_search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parameters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tool_choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"temperature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"top_p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.95`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reasoning\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effort\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parallel_tool_calls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"previous_response_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"store\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"safety_identifier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"truncation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"disabled\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Because the search runs entirely on the server, a single request may take longer than one without tools. Set your client timeout accordingly.`})}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Server Tools are in `,_jsx(_components.strong,{children:`Beta`}),`; behavior and parameters may change at any time.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`web_search`}),` is currently the only available Server Tool. It can be called through the `,_jsx(_components.strong,{children:`Anthropic Messages API`}),` and the `,_jsx(_components.strong,{children:`OpenAI Responses API`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The Anthropic Messages API Base URL is `,_jsx(_components.code,{children:`https://api.minimax.io/anthropic`}),`; the OpenAI Responses API endpoint is `,_jsx(_components.code,{children:`https://api.minimax.io/v1/responses`}),`. See the `,_jsx(_components.a,{href:`/api-reference/text-anthropic-api`,children:`Anthropic SDK`}),` and `,_jsx(_components.a,{href:`/api-reference/responses-create`,children:`Responses API`}),` documentation for details.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If you run into any issues, contact our technical support team at `,_jsx(_components.a,{href:`mailto:Model@minimax.io`,children:`Model@minimax.io`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Server Tools","sidebarTitle":"Server Tools","tag":"Beta","description":null,"href":"/guides/server-tools"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What are Server Tools","slug":"what-are-server-tools","depth":2,"children":[]},{"title":"Availability","slug":"availability","depth":2,"children":[]},{"title":"web_search","slug":"web_search","depth":2,"children":[{"title":"Declare the tool","slug":"declare-the-tool","depth":3,"children":[]},{"title":"Example","slug":"example","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Anthropic Messages API","slug":"anthropic-messages-api","depth":4,"children":[]},{"title":"OpenAI Responses API","slug":"openai-responses-api","depth":4,"children":[]}]},{"title":"Notes","slug":"notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/minimax-cac98058/74cbedfd7ddc6a81/scripts/auto-token.js","/docs/_mintlify/custom/minimax-cac98058/08175b8daa74cd64/scripts/logo.js","/docs/_mintlify/custom/minimax-cac98058/bdfa294452778802/scripts/head-userinfo.js","/docs/_mintlify/custom/minimax-cac98058/ee26a6e83cc5ae7f/scripts/navbar-same-tab.js","/docs/_mintlify/custom/minimax-cac98058/b2a91de372d716f8/scripts/pricing-dropdown.js","/docs/_mintlify/custom/minimax-cac98058/c76999ca41eb4aec/scripts/domain-link-rewrite.js","/docs/_mintlify/custom/minimax-cac98058/4fe58d73df53e822/scripts/cookie-consent.js","/docs/_mintlify/custom/minimax-cac98058/444224329a77c4b1/scripts/page-view-tracking.js","/docs/_mintlify/custom/minimax-cac98058/07d15e8ada8d8bbf/scripts/restricted-docs-core.js","/docs/_mintlify/custom/minimax-cac98058/409396746d530a03/scripts/restricted-docs-highlight.js","/docs/_mintlify/custom/minimax-cac98058/728362c2608a54be/scripts/restricted-docs.js","/docs/_mintlify/custom/minimax-cac98058/50d87c5c4c9a98b0/scripts/rum.js","/docs/_mintlify/custom/minimax-cac98058/fbc61270b1626c86/scripts/pricing-navigation.js","/docs/_mintlify/custom/minimax-cac98058/b067abec70d0dbb6/scripts/feedback-consent.js"],"subdomain":"minimax-cac98058","siteName":"MiniMax API Docs","title":"Server Tools - MiniMax API Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T07:17:20.901Z","originalFileLocation":"guides/server-tools.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"MiniMax Open Platform developer documentation with model API references, integration guides, tool setup, and billing information for building AI applications.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MiniMax API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Server Tools - MiniMax API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"MiniMax Open Platform developer documentation with model API references, integration guides, tool setup, and billing information for building AI applications.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MiniMax API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://platform.minimax.io/docs/guides/server-tools\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://minimax-cac98058.mintlify.site/docs/_mintlify/api/og/v2?division=Text\u0026amp;title=Server+Tools\u0026amp;theme=329045bc9618e343e09b4393\u0026amp;signature=18810d816bd2c4ca96dc2b4f36013ec42c92094cacac6ac3543d9c2e2f31bb1f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Server Tools - MiniMax API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"MiniMax Open Platform developer documentation with model API references, integration guides, tool setup, and billing information for building AI applications.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://minimax-cac98058.mintlify.site/docs/_mintlify/api/og/v2?division=Text\u0026amp;title=Server+Tools\u0026amp;theme=329045bc9618e343e09b4393\u0026amp;signature=18810d816bd2c4ca96dc2b4f36013ec42c92094cacac6ac3543d9c2e2f31bb1f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/minimax-cac98058/-WSO_KEoennf5XoM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MiniMax API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#181E25\">\u003cmeta data-mint-head name=\"charset\" content=\"UTF-8\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://platform.minimax.io/docs/guides/server-tools\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/guides/server-tools.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://platform.minimax.io/#organization\",\"name\":\"MiniMax API Docs\",\"url\":\"https://platform.minimax.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/minimax-cac98058/XYzsL2L2ynonu2Q_/logo/light.svg?fit=max\u0026auto=format\u0026n=XYzsL2L2ynonu2Q_\u0026q=85\u0026s=9c99bb2678d62388d8a4e7cce1750858\"}},{\"@type\":\"WebSite\",\"@id\":\"https://platform.minimax.io/docs#website\",\"name\":\"MiniMax API Docs\",\"url\":\"https://platform.minimax.io/docs\",\"publisher\":{\"@id\":\"https://platform.minimax.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://platform.minimax.io/docs/guides/server-tools#webpage\",\"url\":\"https://platform.minimax.io/docs/guides/server-tools\",\"name\":\"Server Tools\",\"dateModified\":\"2026-11-18T07:17:20.901Z\",\"isPartOf\":{\"@id\":\"https://platform.minimax.io/docs#website\"},\"breadcrumb\":{\"@id\":\"https://platform.minimax.io/docs/guides/server-tools#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://platform.minimax.io/docs/guides/server-tools#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Use Guides\",\"item\":\"https://platform.minimax.io/docs/guides/text-generation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text\",\"item\":\"https://platform.minimax.io/docs/guides/text-generation\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Server Tools\",\"item\":\"https://platform.minimax.io/docs/guides/server-tools\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://platform.minimax.io/docs/guides/server-tools#article\",\"headline\":\"Server Tools\",\"name\":\"Server Tools\",\"url\":\"https://platform.minimax.io/docs/guides/server-tools\",\"mainEntityOfPage\":{\"@id\":\"https://platform.minimax.io/docs/guides/server-tools#webpage\"},\"dateModified\":\"2026-11-18T07:17:20.901Z\",\"publisher\":{\"@id\":\"https://platform.minimax.io/#organization\"},\"isPartOf\":{\"@id\":\"https://platform.minimax.io/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/guides/server-tools.md","siteName":"MiniMax API Docs","nav":{"global":null,"tabs":[{"tab":"Developer Guides","groups":[{"group":"Get started","pages":[{"title":"Models","href":"/guides/models-intro"},{"group":"Quick Start","pages":[{"title":"Prerequisites","href":"/guides/quickstart-preparation"},{"title":"Integrate via SDK","href":"/guides/quickstart-sdk"}]}]},{"group":"Use Guides","pages":[{"group":"Text","pages":[{"title":"Model Invocation","href":"/guides/text-generation"},{"title":"Prompt Caching","href":"/api-reference/text-prompt-caching"},{"title":"Tool Use \u0026 Interleaved Thinking","description":"MiniMax-M3.1-Flash is an Agentic Model with exceptional Tool Use capabilities.","href":"/guides/text-m3-function-call"},{"title":"Server Tools","sidebarTitle":"Server Tools","tag":"Beta","href":"/guides/server-tools"},{"group":"Tech Blog","pages":[{"title":"Aligning to What? Rethinking Agent Generalization in MiniMax M2","sidebarTitle":"Agent Generalization in MiniMax M2","description":null,"href":"/guides/text-m2-agent-generalization"},{"title":"Why Did MiniMax M2 End Up as a Full Attention Model?","sidebarTitle":"MiniMax M2: Full Attention Model","href":"/guides/text-m2-full-attention"},{"title":"What makes good reasoning data","href":"/guides/text-m2-reasoning"}]}]},{"group":"Video","pages":[{"title":"Video Generation","href":"/guides/video-generation"},{"title":"H3 Feature Highlights","href":"/guides/video-prompt"}]},{"group":"Image","pages":[{"title":"Image Generation Guide","href":"/guides/image-generation"}]},{"group":"Speech","pages":[{"title":"Speech-to-Text","href":"/guides/speech-to-text"},{"title":"Voice Clone","href":"/guides/speech-voice-clone"},{"title":"Synchronous Text-to-Speech Guide (WebSocket)","href":"/guides/speech-t2a-websocket"},{"title":"Async Long TTS Guide","href":"/guides/speech-t2a-async"},{"title":"System Voice ID List","mode":"wide","href":"/faq/system-voice-id"}]},{"group":"MCP","pages":[{"title":"Introduction to the Model Context Protocol (MCP)","href":"/guides/mcp-guide"},{"title":"M Plan MCP Guide","href":"/guides/token-plan-mcp-guide"}]},{"group":"Local \u0026 Self-hosted","pages":[{"title":"Run and self-host MiniMax Open Models","href":"/guides/local-deploy"},{"title":"Self-host MiniMax-M3.1-Flash","href":"/guides/local-deploy-m3-1-flash"},{"title":"Self-host MiniMax-M3","href":"/guides/local-deploy-m3"},{"title":"Deploy MiniMax-M2.7","href":"/guides/local-deploy-m2-7"},{"title":"Self-host MiniMax Music 3","href":"/guides/local-deploy-music-3"},{"title":"Run and self-host MiniMax H3","href":"/guides/local-deploy-h3"}]}]},{"group":"FAQs","pages":[{"title":"Model List","href":"/faq/models"},{"title":"About APIs","href":"/faq/about-apis"},{"title":"About Account","href":"/faq/about-account"},{"title":"Contact Us","href":"/faq/contact-us"}]},{"group":"Terms \u0026 Policy","pages":[{"title":"Terms of Service","url":"https://platform.minimax.io/protocol/terms-of-service","href":"/guides/terms-of-service"},{"title":"Privacy Policy","url":"https://platform.minimax.io/protocol/privacy-policy","href":"/guides/privacy-policy"},{"title":"Transparency","href":"/guides/transparency"}]}]},{"tab":"API","pages":[{"title":"API","href":"/api-reference/api-overview"}]},{"tab":"M Plan","pages":[{"title":"M Plan","href":"/m-plan/intro"}]},{"tab":"Pricing","pages":[{"title":"Pricing","href":"/pricing/overview"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes/models"}]},{"tab":"Developer Program","href":"https://platform.minimax.io/activity/contact-us-en"}]},"basePath":"","title":"Server Tools - MiniMax API Docs","deploymentId":"dpl_53YqbBPsHdrqSGqXiWPGU7csRVod","buildId":"dpl_53YqbBPsHdrqSGqXiWPGU7csRVod","dynamics":["10e4515597"],"chunks":["BannerMarkdown-Dk-T3rBp.js","dist-DYCPzQwJ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}