{
  "schemaVersion": "1.0",
  "item": {
    "slug": "xai-search",
    "name": "xAI Search",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/aydencook03/xai-search",
    "canonicalUrl": "https://clawhub.ai/aydencook03/xai-search",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/xai-search",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=xai-search",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/xai-search.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/xai-search"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/xai-search",
    "agentPageUrl": "https://openagent3.xyz/skills/xai-search/agent",
    "manifestUrl": "https://openagent3.xyz/skills/xai-search/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/xai-search/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "xAI Search (Grok API)",
        "body": "Use xAI's agentic search to query X/Twitter and the web in real-time. This leverages Grok's web_search and x_search tools.\n\nDocs: https://docs.x.ai/docs/"
      },
      {
        "title": "Requirements",
        "body": "XAI_API_KEY environment variable\nPython 3 + xai-sdk: pip install xai-sdk"
      },
      {
        "title": "Web Search",
        "body": "curl -s https://api.x.ai/v1/chat/completions \\\n  -H \"Authorization: Bearer $XAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"grok-3-fast\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"YOUR QUERY HERE\"}],\n    \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"web_search\"}}]\n  }' | jq -r '.choices[0].message.content'"
      },
      {
        "title": "X/Twitter Search",
        "body": "curl -s https://api.x.ai/v1/chat/completions \\\n  -H \"Authorization: Bearer $XAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"grok-3-fast\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"YOUR QUERY HERE\"}],\n    \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"x_search\"}}]\n  }' | jq -r '.choices[0].message.content'"
      },
      {
        "title": "Combined (Web + X)",
        "body": "curl -s https://api.x.ai/v1/chat/completions \\\n  -H \"Authorization: Bearer $XAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"grok-3-fast\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"YOUR QUERY HERE\"}],\n    \"tools\": [\n      {\"type\": \"function\", \"function\": {\"name\": \"web_search\"}},\n      {\"type\": \"function\", \"function\": {\"name\": \"x_search\"}}\n    ]\n  }' | jq -r '.choices[0].message.content'"
      },
      {
        "title": "Helper Script",
        "body": "For convenience, use the xai-search.py script in the scripts/ folder:\n\n# Web search (adjust path to your skill location)\npython ~/.clawdbot/skills/xai-search/scripts/xai-search.py web \"latest news about AI\"\n\n# X/Twitter search  \npython ~/.clawdbot/skills/xai-search/scripts/xai-search.py x \"what are people saying about Clawdbot\"\n\n# Both\npython ~/.clawdbot/skills/xai-search/scripts/xai-search.py both \"current events today\""
      },
      {
        "title": "Models",
        "body": "grok-3-fast — fast, good for quick searches\ngrok-4-1-fast — reasoning model, better for complex queries"
      },
      {
        "title": "X Search Filters",
        "body": "You can filter X searches by:\n\nallowed_x_handles / excluded_x_handles — limit to specific accounts\nfrom_date / to_date — date range (ISO8601 format)\nenable_image_understanding — analyze images in posts\nenable_video_understanding — analyze videos in posts"
      },
      {
        "title": "Web Search Filters",
        "body": "allowed_domains / excluded_domains — limit to specific sites\nenable_image_understanding — analyze images on pages"
      },
      {
        "title": "Tips",
        "body": "For breaking news: use X search\nFor factual/research queries: use web search or both\nFor sentiment/opinions: use X search\nThe model will make multiple search calls if needed (agentic)"
      }
    ],
    "body": "xAI Search (Grok API)\n\nUse xAI's agentic search to query X/Twitter and the web in real-time. This leverages Grok's web_search and x_search tools.\n\nDocs: https://docs.x.ai/docs/\n\nRequirements\nXAI_API_KEY environment variable\nPython 3 + xai-sdk: pip install xai-sdk\nQuick Usage (curl)\nWeb Search\ncurl -s https://api.x.ai/v1/chat/completions \\\n  -H \"Authorization: Bearer $XAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"grok-3-fast\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"YOUR QUERY HERE\"}],\n    \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"web_search\"}}]\n  }' | jq -r '.choices[0].message.content'\n\nX/Twitter Search\ncurl -s https://api.x.ai/v1/chat/completions \\\n  -H \"Authorization: Bearer $XAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"grok-3-fast\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"YOUR QUERY HERE\"}],\n    \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"x_search\"}}]\n  }' | jq -r '.choices[0].message.content'\n\nCombined (Web + X)\ncurl -s https://api.x.ai/v1/chat/completions \\\n  -H \"Authorization: Bearer $XAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"grok-3-fast\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"YOUR QUERY HERE\"}],\n    \"tools\": [\n      {\"type\": \"function\", \"function\": {\"name\": \"web_search\"}},\n      {\"type\": \"function\", \"function\": {\"name\": \"x_search\"}}\n    ]\n  }' | jq -r '.choices[0].message.content'\n\nHelper Script\n\nFor convenience, use the xai-search.py script in the scripts/ folder:\n\n# Web search (adjust path to your skill location)\npython ~/.clawdbot/skills/xai-search/scripts/xai-search.py web \"latest news about AI\"\n\n# X/Twitter search  \npython ~/.clawdbot/skills/xai-search/scripts/xai-search.py x \"what are people saying about Clawdbot\"\n\n# Both\npython ~/.clawdbot/skills/xai-search/scripts/xai-search.py both \"current events today\"\n\nModels\ngrok-3-fast — fast, good for quick searches\ngrok-4-1-fast — reasoning model, better for complex queries\nX Search Filters\n\nYou can filter X searches by:\n\nallowed_x_handles / excluded_x_handles — limit to specific accounts\nfrom_date / to_date — date range (ISO8601 format)\nenable_image_understanding — analyze images in posts\nenable_video_understanding — analyze videos in posts\nWeb Search Filters\nallowed_domains / excluded_domains — limit to specific sites\nenable_image_understanding — analyze images on pages\nTips\nFor breaking news: use X search\nFor factual/research queries: use web search or both\nFor sentiment/opinions: use X search\nThe model will make multiple search calls if needed (agentic)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/aydencook03/xai-search",
    "publisherUrl": "https://clawhub.ai/aydencook03/xai-search",
    "owner": "aydencook03",
    "version": "1.0.4",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/xai-search",
    "downloadUrl": "https://openagent3.xyz/downloads/xai-search",
    "agentUrl": "https://openagent3.xyz/skills/xai-search/agent",
    "manifestUrl": "https://openagent3.xyz/skills/xai-search/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/xai-search/agent.md"
  }
}