Z.AI Web Search
AI-optimized web search via Z.AI Web Search API. Returns structured results (title, URL, summary) for LLM processing.
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 536 · 2 current installs · 2 all-time installs
byBartosz Pijet@bartoszpijet
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description match the implementation: scripts call Z.AI's web_search API and require ZAI_API_KEY. Required binary (node) is expected and proportional.
Instruction Scope
SKILL.md instructs only running the included node scripts. The extract script fetches arbitrary URLs and strips HTML (intended behavior for extraction). Note: arbitrary URL fetching can reach internal/metadata endpoints if run in an environment with broad network access — this is a normal capability for a URL-extraction tool but worth being aware of.
Install Mechanism
No remote install/downloads or package installs are specified. The skill is instruction+local scripts only (no external archive downloads), minimizing install-time risk.
Credentials
Only ZAI_API_KEY (primary credential) is required, which is appropriate for calling the Z.AI Web Search API. The code also optionally checks Z_AI_API_KEY as a fallback — benign but documented.
Persistence & Privilege
always is false and the skill does not request elevated or cross-skill configuration. It does not persist or modify other skills or agent-wide settings.
Assessment
This skill appears to do what it says: it posts search requests to api.z.ai using ZAI_API_KEY and provides a basic HTML extractor. Before installing, consider: (1) Only provide an API key you control and can rotate; treat it as sensitive. (2) If you run agents in environments with access to internal networks or metadata services, be aware that the extract script can fetch arbitrary URLs — run in a network-restricted/isolated environment if you’re concerned. (3) Source is listed as unknown; if you need higher assurance, verify the publisher (owner ID) or inspect the included scripts yourself (they are short and readable). Rotate or revoke the key if you stop using the skill.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
🔍 Clawdis
Binsnode
EnvZAI_API_KEY
Primary envZAI_API_KEY
SKILL.md
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
-n <count>: Number of results (default: 10, max: 50)--domain <domain>: Limit results to specified domain (e.g.sohu.com,www.example.com)--recency <filter>: Time range –oneDay,oneWeek,oneMonth,oneYear,noLimit(default)--days <n>: Shorthand for recency (1→oneDay, 7→oneWeek, 30→oneMonth, 365→oneYear)
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
ZAI_API_KEYin your environment - Docs: Web Search Guide
Files
4 totalSelect a file
Select a file to preview.
Comments
Loading comments…
