openclaw - 💡(How to fix) Fix Support Xiaomi MiMo native web_search tool type [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#75255Fetched 2026-05-01 05:36:09
View on GitHub
Comments
2
Participants
2
Timeline
12
Reactions
2
Author
Timeline (top)
mentioned ×5subscribed ×5commented ×2

Xiaomi MiMo API provides a native web_search tool type that performs web searches at the provider level. Currently, OpenClaw does not pass this tool type when making API calls to the Xiaomi provider, so the feature is unused.

Root Cause

Xiaomi MiMo API provides a native web_search tool type that performs web searches at the provider level. Currently, OpenClaw does not pass this tool type when making API calls to the Xiaomi provider, so the feature is unused.

Code Example

{
  "tools": [
    {
      "type": "web_search",
      "force_search": true,
      "max_keyword": 5,
      "limit": 10,
      "user_location": {
        "type": "approximate",
        "country": "Spain",
        "region": "Madrid"
      }
    }
  ]
}
RAW_BUFFERClick to expand / collapse

Feature Request

Summary

Xiaomi MiMo API provides a native web_search tool type that performs web searches at the provider level. Currently, OpenClaw does not pass this tool type when making API calls to the Xiaomi provider, so the feature is unused.

Xiaomi web_search API

The Xiaomi MiMo API supports a special tool type web_search in the tools array:

{
  "tools": [
    {
      "type": "web_search",
      "force_search": true,
      "max_keyword": 5,
      "limit": 10,
      "user_location": {
        "type": "approximate",
        "country": "Spain",
        "region": "Madrid"
      }
    }
  ]
}

Parameters:

  • force_search (boolean, default false): Whether to force search or let the model decide
  • max_keyword (integer, 1-50, default 5): Max keywords per search
  • limit (integer, 1-50, default 5): Max results per search
  • user_location (object): Location context for results

Response: The model returns annotations with URL citations (title, url, summary, site_name, publish_time).

Documentation

https://platform.xiaomimimo.com/docs/en-US/api/chat/openai-api

Use Case

This would allow the Xiaomi model to perform real-time web searches natively without external APIs (SerpAPI, Serper.dev, etc.), reducing cost and latency for search-dependent workflows like news monitoring and research.

Proposed Implementation

  • Add a config option under the Xiaomi provider to enable native web search (e.g. webSearch: true)
  • When enabled, OpenClaw passes {"type": "web_search"} in the tools array alongside regular function tools
  • Optionally expose force_search, max_keyword, limit, and user_location as configurable parameters

Related

extent analysis

TL;DR

To utilize the Xiaomi MiMo API's native web search feature, add a configuration option to enable web search and pass the web_search tool type in the API calls.

Guidance

  • Review the proposed implementation and consider adding a config option under the Xiaomi provider to enable native web search.
  • When enabled, ensure OpenClaw passes {"type": "web_search"} in the tools array alongside regular function tools.
  • Optionally, expose force_search, max_keyword, limit, and user_location as configurable parameters to customize the web search behavior.
  • Verify the implementation by checking the API requests and responses to ensure the web_search tool type is being passed correctly.

Example

{
  "tools": [
    {
      "type": "web_search",
      "force_search": true,
      "max_keyword": 5,
      "limit": 10,
      "user_location": {
        "type": "approximate",
        "country": "Spain",
        "region": "Madrid"
      }
    }
  ]
}

Notes

The implementation should be compatible with the listed models supporting web search: mimo-v2.5-pro, mimo-v2.5, mimo-v2-pro, mimo-v2-omni, mimo-v2-flash.

Recommendation

Apply workaround by adding the proposed configuration option and passing the web_search tool type in the API calls, as this will allow utilization of the native web search feature without relying on external APIs.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Support Xiaomi MiMo native web_search tool type [2 comments, 2 participants]