Grok Search MCP Server supports multiple search types, each optimized for different content sources. The search_type parameter determines which sources are queried and how results are processed.
// Basic mode prompt for web searchcase "web": return basePrompt + `\n\nSearch across general web content including articles, blogs, and informational pages.`;
// Comprehensive mode prompt for web search case "web": return comprehensivePrompt + `\n\nFOCUS: General web content analysis including articles, blogs, and informational sources. Emphasize factual accuracy and diverse source perspectives.`;
// Basic mode prompt for news searchcase "news": return basePrompt + `\n\nFocus on recent news articles and current events. Prioritize the most recent information.`;
// Comprehensive mode prompt for news searchcase "news": return comprehensivePrompt + `\n\nFOCUS: Recent news events, breaking developments, and current affairs. Emphasize timeline analysis, official statements, and evolving situation updates.`;
// Basic mode prompt for Twitter/X searchcase "twitter":case "x": return basePrompt + `\n\nSearch Twitter/X posts and tweets. Include the full tweet text in the snippet field, the author's handle, and tweet URL if available. Focus on recent posts and engagement.`;
// Comprehensive mode prompt for Twitter/X searchcase "twitter":case "x": return comprehensivePrompt + `\n\nFOCUS: Social media analysis including tweet sentiment, trending topics, and public opinion. Include influencer perspectives and viral content analysis.`;
// Comprehensive mode general searchcase "general":default: return comprehensivePrompt + `\n\nFOCUS: Comprehensive analysis across all source types - news, web content, and social media. Provide the most complete picture possible.`;