What problem does it solve?
This Skill enables applications to perform web searches and retrieve current information using the z-ai-web-dev-sdk. It returns structured search results that include URLs, snippets, host names, dates, and other metadata, enabling dynamic content discovery and up-to-date information retrieval.
Core Features & Use Cases
- CLI-driven searches for quick information retrieval and testing.
- SDK-based programmatic web_search invocations in production apps.
- Structured result shape: SearchFunctionResultItem with fields url, name, snippet, host_name, rank, date, favicon.
- Use cases include real-time news gathering, research, content discovery, and competitive analysis.
Quick Start
Use the web search skill to perform a simple query via CLI: z-ai function --name "web_search" --args '{"query": "artificial intelligence"}'
Or integrate into your app with the SDK: const zai = await ZAI.create(); const results = await zai.functions.invoke('web_search', { query: 'machine learning', num: 5 });
Save results to a JSON file: z-ai function -n web_search -a '{"query": "climate change", "num": 5}' -o results.json