Skills z.ai-web-search
AI-optimized web search via Z.AI Web Search API. Returns structured results (title, URL, summary) for LLM processing.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/bartoszpijet/zai-search" ~/.claude/skills/clawdbot-skills-z-ai-web-search && rm -rf "$T"
manifest:
skills/bartoszpijet/zai-search/SKILL.mdsource content
Z.AI Web Search
AI-optimized web search using Z.AI Web Search API. Designed for LLMs – returns structured results with titles, URLs, summaries, site names and favicons.
Search
node {baseDir}/scripts/search.mjs "query" node {baseDir}/scripts/search.mjs "query" -n 15 node {baseDir}/scripts/search.mjs "query" --domain sohu.com node {baseDir}/scripts/search.mjs "query" --recency oneWeek node {baseDir}/scripts/search.mjs "query" --days 7
Options
: Number of results (default: 10, max: 50)-n <count>
: Limit results to specified domain (e.g.--domain <domain>
,sohu.com
)www.example.com
: Time range –--recency <filter>
,oneDay
,oneWeek
,oneMonth
,oneYear
(default)noLimit
: Shorthand for recency (1→oneDay, 7→oneWeek, 30→oneMonth, 365→oneYear)--days <n>
Extract content from URL
node {baseDir}/scripts/extract.mjs "https://example.com/article"
Note: Z.AI does not provide an extract API. This script uses native fetch to retrieve pages and strips HTML for basic text extraction. For richer content, use search results (they include summaries).
Setup
- Get API key at Z.AI Platform
- Set
in your environmentZAI_API_KEY - Docs: Web Search Guide