Skip to content

xai provider not registering x_search / code_execution tools even with valid Grok model #79353

@dbernaltbn

Description

@dbernaltbn

Environment

  • OpenClaw version: 2026.4.27 (also tested after update to 2026.5.5)
  • OS: WSL2 (Ubuntu)
  • Model: grok-4.3 (correct ID from xAI console)

Problem
The xai provider is not registering the x_search and code_execution tools, even after:

  • Correcting the model list in models.json (removed invalid grok-4.3-fast)
  • Full gateway restart (systemctl --user restart openclaw-gateway)
  • Using a valid model (grok-4.3) that exists in the xAI account

After restart, web_search still falls back to SearXNG instead of using the native xai tool.

Logs observed

  • chokidar@^5.0.0 installs correctly on every startup
  • No more model_not_found errors for grok-4.3
  • No errors related to xai provider failing to load
  • Gateway reports normal startup, but x_search tool is never available

Expected behavior
When using a valid Grok model (grok-4.3), the xai provider should register x_search and code_execution tools.

Workaround
Currently using SearXNG + web_fetch as fallback.

Additional info

  • API key is correctly configured
  • Other providers (deepseek, codex) work normally

Can someone confirm if this is a known limitation or if there's additional configuration needed to enable xai tools?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions