Grok Search

Use when an AI agent needs Grok-powered web or X search with JSON-first output, citations, domain or handle filters, and optional text rendering for human inspection.

wangnov a371679 5 files · 22.4 KB Updated

File contents

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.local and .env from 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 x
  • node {baseDir}/scripts/grok-search.mjs "query" --format text
  • node {baseDir}/scripts/selftest.mjs

References:

  • see references/xai-search-capabilities.md for the supported search surface

wangnov/grok-search-skill/tree/main/skills/grok-search commit a37167996b

Frequently asked questions

npx skillmds@latest add wangnov/grok-search