web-search

Search the web and return structured results with URLs, snippets, and metadata.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Mhafis99/manajemen-keuangan --skill web-search-mhafis99
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-search
Source: https://github.com/Mhafis99/manajemen-keuangan/tree/main/menejemenkeuanganarsm/skills/web-search
Command: npx skills add https://github.com/Mhafis99/manajemen-keuangan --skill web-search-mhafis99

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires z-ai-web-dev-sdk, and includes scripts (resource) components.

What problem does it solve?

Web applications often need up-to-date information from the internet, and building reliable search capabilities can be time-consuming and error-prone.

Core Features & Use Cases

  • Built-in web search capabilities via the z-ai-web-dev-sdk to retrieve current results with URLs, snippets, and metadata.
  • Supports CLI and SDK usage for quick experiments and production integration, enabling tasks like content discovery, research, and real-time information retrieval.
  • Returns structured results as a SearchFunctionResultItem array, facilitating easy processing and display in apps.

Quick Start

Instantiate the ZAI backend and invoke the web_search function with your query to retrieve current results.

Frequently Asked Questions about web-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add real-time web search to my backend application?

To add real-time web search to a backend application, instantiate the ZAI backend and invoke the web_search function with a query string to retrieve current results. This returns structured data containing URLs, snippets, and metadata for immediate processing.

What metadata is included in structured web search results?

Structured web search results return an array of items containing url, name, snippet, host_name, rank, date, and favicon fields. This metadata allows applications to display comprehensive search outcomes with source attribution and relevance ranking.

Can I limit web search results by recency or number of items?

You can limit web search results by passing optional parameters like num for the number of items and recency_days for time filtering. These parameters allow precise control over the volume and freshness of the retrieved data.

Does the web search SDK support command line interface usage?

The web search SDK supports both CLI and SDK usage for quick experiments and production integration. You can use the command line interface to rapidly test search queries before implementing them in your backend application code.

What is the best way to retrieve up-to-date information from the web in an app?

The best way to retrieve up-to-date information is using a dedicated web search SDK that returns structured results with URLs and snippets. This approach avoids building custom scrapers and provides reliable, formatted data for content discovery.

Do I need the z-ai-web-dev-sdk dependency to perform web searches?

You need the z-ai-web-dev-sdk dependency installed in your backend code to execute web searches. This SDK provides the built-in search function that queries the web and returns the structured SearchFunctionResultItem array.