Skip to main content

Overview

/grok-x supports six distinct modes by combining Grok’s native tools. Each mode activates different capabilities:
ModeTools activatedBest for
Defaultx_searchGeneral X research
--webx_search + web_searchCross-platform verification
--analyzex_search + code_interpreterTrend stats, frequency analysis, engagement
--extract SCHEMAx_search + structured outputTyped JSON extraction
--imagesAdds enable_image_understandingCharts, screenshots, memes in posts
--videosAdds enable_video_understandingVideos in posts (X Search exclusive)
All modes can be combined with date filters (--from, --to) and account filters (--handles, --exclude).

Mode Reference


Combining Multiple Modes

Web + Images

Cross-platform research with visual content analysis:
/grok-x "SpaceX Starship latest" --web --images --from 2025-02-01 --citations

Analyze + Images

Quantitative analysis with visual understanding:
/grok-x "Tesla discussion" --analyze --videos

Extract + Web

Structured extraction with cross-platform verification:
/grok-x "AI safety discourse on X" --extract narrative --web

Constraints

The following combinations are not allowed due to xAI API limitations:
  • --analyze + --extract — Choose one or the other
  • --handles + --exclude — Cannot filter and exclude simultaneously
  • --videos only works with x_search, not web_search alone

Next Steps

Model Selection

Learn when to use --fast, --deep, or the default model for different query types

Build docs developers (and LLMs) love