Get the FREE Ultimate OpenClaw Setup Guide →
w

zhipu web search

Scanned

@whyhit2005

npx machina-cli add skill @whyhit2005/zhipu-web-search --openclaw
Files (1)
SKILL.md
4.0 KB

Zhipu Search

Web search via Zhipu AI API, supporting multiple search engines and flexible parameter configuration.

Quick Start

Basic Search

# Use default parameters
search_query = "OpenClaw latest version"
search_engine = "search_std"

Advanced Search (Full Parameters)

search_query = "AI development trends"      # Required, max 70 chars
search_engine = "search_pro"                # Required: search_std/search_pro/search_pro_sogou/search_pro_quark
search_intent = true                        # Optional, default false, enable search intent recognition
count = 20                                  # Optional, default 10, range 1-50
search_domain_filter = "example.com"        # Optional, whitelist domain filter
search_recency_filter = "oneWeek"           # Optional: oneDay/oneWeek/oneMonth/oneYear/noLimit
content_size = "high"                       # Optional: medium/high, control content detail level
request_id = "unique-request-id"            # Optional, unique request identifier
user_id = "user-123456"                     # Optional, end user ID (6-128 chars)

Usage Methods

Method 1: Direct Script Call (Recommended)

python scripts/zhipu_search.py \
  --query "search content" \
  --engine search_pro \
  --count 10

Method 2: Use OpenClaw Tool

System will automatically select appropriate parameters based on needs.

API Parameter Reference

ParameterTypeRequiredDefaultDescription
search_querystring-Search content, recommended ≤70 chars
search_engineenum-search_std/search_pro/search_pro_sogou/search_pro_quark
search_intentboolean-falseEnable search intent recognition
countinteger-10Result count, 1-50
search_domain_filterstring--Whitelist domain filter
search_recency_filterenum-noLimitoneDay/oneWeek/oneMonth/oneYear/noLimit
content_sizeenum--medium/high, control content length
request_idstring--Unique request identifier
user_idstring--End user ID (6-128 chars)

Search Engine Selection Guide

EngineUse Case
search_stdBasic search, regular Q&A
search_proAdvanced search, need more accurate results
search_pro_sogouSogou search, China domestic content
search_pro_quarkQuark search, specific scenarios

Response Structure

{
  "id": "task-id",
  "created": 1704067200,
  "request_id": "request-id",
  "search_intent": [
    {
      "query": "original query",
      "intent": "SEARCH_ALL",
      "keywords": "rewritten keywords"
    }
  ],
  "search_result": [
    {
      "title": "title",
      "content": "content summary",
      "link": "result link",
      "media": "site name",
      "icon": "site icon",
      "refer": "reference number",
      "publish_date": "publish date"
    }
  ]
}

Environment Requirements

  • Environment variable ZHIPU_API_KEY must be configured
  • Python 3.7+
  • requests library

Notes

  1. search_query should be kept within 70 characters
  2. search_pro_sogou count must be 10/20/30/40/50
  3. user_id length must be between 6-128 characters if provided
  4. Search intent recognition increases response time but improves result relevance

Source

git clone https://clawhub.ai/whyhit2005/zhipu-web-searchView on GitHub

Overview

Zhipu Search is a web search tool powered by the Zhipu AI API. It supports multiple engines from basic to advanced, including search_std, search_pro, search_pro_sogou, and search_pro_quark. It lets you filter results by time range or domain and to control how many results you receive and how detailed the results are.

How This Skill Works

It accepts a search_query and a chosen engine (search_std, search_pro, search_pro_sogou, search_pro_quark) and applies optional parameters such as search_intent, count, search_domain_filter, search_recency_filter, and content_size. The tool can be used via direct script calls or the OpenClaw Tool, and returns a structured response with identifiers and a list of results.

When to Use It

  • Need the latest information from the web.
  • Need to use a specific engine like Sogou, Quark, or Zhipu Search.
  • Want to filter results by time range or domain to narrow sources.
  • Need to control how many results you get and how detailed they are.
  • Integrate with automation tools by leveraging optional params such as search_intent, request_id, or user_id.

Quick Start

  1. Step 1: Pick a query and a target engine, for example OpenClaw latest version with search_std.
  2. Step 2: Set optional parameters such as count, time filter, domain filter, and content_size as needed.
  3. Step 3: Run the search and review the structured results.

Best Practices

  • Choose the engine that matches your content target (e.g., use search_pro_sogou for Chinese domestic content).
  • Keep search_query within 70 characters to maximize relevance and performance.
  • Use domain filters to whitelist trusted sources and avoid noise.
  • Apply recency filters (oneDay, oneWeek, etc.) to prioritize fresh data.
  • Respect rate limits and consider caching frequent queries for faster responses.

Example Use Cases

  • Basic search for OpenClaw latest version using search_std with default settings.
  • Advanced search for AI development trends with search_pro, count 20, search_recency_filter oneWeek.
  • Chinese content lookup with search_pro_sogou, domain_filter example.cn, content_size high.
  • Industry report search using search_pro_quark with domain filter www.example.org and recency noLimit.
  • Direct script example: python scripts/zhipu_search.py --query AI trends --engine search_pro --count 10.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers