xAI Grok Plugin: Web Search Fails due to Deprecated API #949

Open
opened 2026-02-16 10:21:05 -05:00 by yindo · 4 comments
Owner

Originally created by @cgi-library on GitHub (Jan 26, 2026).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.4

Plugin version

0.0.15

Cloud or Self Hosted

Self Hosted (Docker), Cloud

Steps to reproduce

Set up a basic configuration with Start, LLM, and Answer only.
Open Grok's model settings and enable “Live Search Parameters”.
When you ask any random question, the following error message appears.

✔️ Error log

Run failed: req_id: xxxx PluginInvokeError: {"args":{"description":"[models] Error: API request failed with status code 410: {\"error\":\"Live search is deprecated. Please switch to the Agent Tools API: https://docs.x.ai/docs/guides/tools/overview\"}"},"error_type":"InvokeError","message":"[models] Error: API request failed with status code 410: {\"error\":\"Live search is deprecated. Please switch to the Agent Tools API: https://docs.x.ai/docs/guides/tools/overview\"}"}

Originally created by @cgi-library on GitHub (Jan 26, 2026). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.11.4 ### Plugin version 0.0.15 ### Cloud or Self Hosted Self Hosted (Docker), Cloud ### Steps to reproduce Set up a basic configuration with Start, LLM, and Answer only. Open Grok's model settings and enable “Live Search Parameters”. When you ask any random question, the following error message appears. ### ✔️ Error log `Run failed: req_id: xxxx PluginInvokeError: {"args":{"description":"[models] Error: API request failed with status code 410: {\"error\":\"Live search is deprecated. Please switch to the Agent Tools API: https://docs.x.ai/docs/guides/tools/overview\"}"},"error_type":"InvokeError","message":"[models] Error: API request failed with status code 410: {\"error\":\"Live search is deprecated. Please switch to the Agent Tools API: https://docs.x.ai/docs/guides/tools/overview\"}"}`
yindo added the bug label 2026-02-16 10:21:05 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 26, 2026):

Hi @cgi-library! I'm Dosu and I’m helping the dify-official-plugins team.

The Grok Plugin web search fails because it still tries to use the deprecated live search API, which now returns a 410 error. The recommended fix is to update the plugin to use the Agent Tools API instead, as described in the official documentation: x.ai Agent Tools API guide.

Currently, there is no Grok Plugin implementation or migration to the Agent Tools API in the dify-official-plugins repository, so there’s no code to patch yet. If you plan to implement or update the plugin, you’ll need to switch from the old API to the Agent Tools API, which may involve updating authentication, endpoints, and request parameters. For example, Dify’s migration guide suggests replacing "functions" with "tools" and "function_call" with "tool_choice" in your payloads, which is conceptually similar to what you’ll need for the new API (see example).

Keep an eye on the repository for future updates, or consider contributing a new plugin implementation based on the Agent Tools API if you need a solution right away.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Jan 26, 2026): <!-- Greeting --> Hi @cgi-library! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> The Grok Plugin web search fails because it still tries to use the deprecated live search API, which now returns a 410 error. The recommended fix is to update the plugin to use the Agent Tools API instead, as described in the official documentation: [x.ai Agent Tools API guide](https://docs.x.ai/docs/guides/tools/overview). Currently, there is no Grok Plugin implementation or migration to the Agent Tools API in the dify-official-plugins repository, so there’s no code to patch yet. If you plan to implement or update the plugin, you’ll need to switch from the old API to the Agent Tools API, which may involve updating authentication, endpoints, and request parameters. For example, Dify’s migration guide suggests replacing `"functions"` with `"tools"` and `"function_call"` with `"tool_choice"` in your payloads, which is conceptually similar to what you’ll need for the new API ([see example](https://github.com/langgenius/dify/issues/20162)). Keep an eye on the repository for future updates, or consider contributing a new plugin implementation based on the Agent Tools API if you need a solution right away. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/3873592a-bda3-436e-ae02-884642d5eafa?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/3873592a-bda3-436e-ae02-884642d5eafa?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/3873592a-bda3-436e-ae02-884642d5eafa?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/3873592a-bda3-436e-ae02-884642d5eafa?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3873592a-bda3-436e-ae02-884642d5eafa?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/3873592a-bda3-436e-ae02-884642d5eafa?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3873592a-bda3-436e-ae02-884642d5eafa?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20Grok%20Plugin%20web%20search%20fails%20because%20it%20still%20tries%20to%20use%20the%20deprecated%20live%20search%20API%2C%20which%20now%20returns%20a%20410%20error.%20The%20recommended%20fix%20is%20to%20update%20the%20plugin%20to%20use%20the%20Agent%20Tools%20API%20instead%2C%20as%20described%20in%20the%20official%20documentation%3A%20%5Bx.ai%20Agent%20Tools%20API%20guide%5D%28https%3A//docs.x.ai/docs/guides/tools/overview%29.%0A%0ACurrently%2C%20there%20is%20no%20Grok%20Plugin%20implementation%20or%20migration%20to%20the%20Agent%20Tools%20API%20in%20the%20dify-official-plugins%20repository%2C%20so%20there%E2%80%99s%20no%20code%20to%20patch%20yet.%20If%20you%20plan%20to%20implement%20or%20update%20the%20plugin%2C%20you%E2%80%99ll%20need%20to%20switch%20from%20the%20old%20API%20to%20the%20Agent%20Tools%20API%2C%20which%20may%20involve%20updating%20authentication%2C%20endpoints%2C%20and%20request%20parameters.%20For%20example%2C%20Dify%E2%80%99s%20migration%20guide%20suggests%20replacing%20%60%22functions%22%60%20with%20%60%22tools%22%60%20and%20%60%22function_call%22%60%20with%20%60%22tool_choice%22%60%20in%20your%20payloads%2C%20which%20is%20conceptually%20similar%20to%20what%20you%E2%80%99ll%20need%20for%20the%20new%20API%20%28%5Bsee%20example%5D%28https%3A//github.com/langgenius/dify/issues/20162%29%29.%0A%0AKeep%20an%20eye%20on%20the%20repository%20for%20future%20updates%2C%20or%20consider%20contributing%20a%20new%20plugin%20implementation%20based%20on%20the%20Agent%20Tools%20API%20if%20you%20need%20a%20solution%20right%20away.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/2493)
Author
Owner

@hlog2e commented on GitHub (Jan 27, 2026):

This seems to be related to this issue. https://github.com/langchain-ai/langchain/issues/33961

@hlog2e commented on GitHub (Jan 27, 2026): This seems to be related to this issue. https://github.com/langchain-ai/langchain/issues/33961
Author
Owner

@cgi-library commented on GitHub (Jan 27, 2026):

I suspect that the commit f7ee2a7, which add search_parameters for Live Search, may be related.

@cgi-library commented on GitHub (Jan 27, 2026): I suspect that the commit f7ee2a7, which add `search_parameters` for Live Search, may be related.
Author
Owner

@crazywoola commented on GitHub (Feb 3, 2026):

Hi @cgi-library, thanks for opening this issue.

Why this is being closed

Dify issue tracking requires English-only issue title and description for consistent collaboration.

Next steps

Please open a new issue in English and include clear details so maintainers can help efficiently.

Thanks for understanding and for your support.

@crazywoola commented on GitHub (Feb 3, 2026): Hi @cgi-library, thanks for opening this issue. ### Why this is being closed Dify issue tracking requires English-only issue title and description for consistent collaboration. ### Next steps Please open a new issue in English and include clear details so maintainers can help efficiently. Thanks for understanding and for your support.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#949