Use this skill when:
- an AI agent needs current web evidence
- an AI agent needs current X evidence
- the caller wants JSON-first output with citations
- the caller needs explicit control over domains, handles, dates, or depth
Environment:
- requires
XAI_API_KEY - also reads optional
.env.localand.envfrom the caller's current working directory
Behavior:
- JSON-first by default
- citations are preserved in normalized output
- text mode is available for manual inspection
- image understanding is enabled for web and X search
- video understanding is enabled for X search
Run:
node {baseDir}/scripts/grok-search.mjs "query"node {baseDir}/scripts/grok-search.mjs "query" --mode xnode {baseDir}/scripts/grok-search.mjs "query" --format textnode {baseDir}/scripts/selftest.mjs
References:
- see
references/xai-search-capabilities.mdfor the supported search surface