360 Secure SkillHub
360 安全技能中心

Moark Web Search

该技能核心是通过/web-search API搜索网页、图片、视频等网络内容,支持结果摘要、时间范围过滤、结果数量设置。典型场景包括信息查找、近期内容发现、专项搜索。需安装requests依赖,通过脚本传入查询词等参数(或配置环境变量提供密钥),输出含结果的JSON,优先返回网页内容,无结果时如实告知。

fchange
fchange
热度 42.12
最近更新 2026-05-11 17:35:51
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add moark-web-search
Metadata
name
moark-web-search
description
Search web content such as webpages, images, and videos using the /web-search API with an Access Token.
metadata
{"openclaw":{"emoji":"🔎","requires":{"env":["GITEEAI_API_KEY"]},"primaryEnv":"GITEEAI_API_KEY"}}

Web Search

This skill allows users to search web content through the /web-search API. It is suitable for information lookup, recent content discovery, webpage search, image search, and video search.

Usage

Ensure you have installed the required dependency (pip install requests). Use the bundled script to perform the search.

python {baseDir}/scripts/perform_web_search.py \
  --query "阿里巴巴2024年的ESG报告" \
  --summary true \
  --freshness noLimit \
  --count 10 \
  --api-key YOUR_API_KEY

Options

  • --query - Search keywords or a natural language question.
  • --summary - Whether to include summaries in the results. Accepts true or false. Default is true.
  • --freshness - Time filter. Options: noLimit, oneDay, oneWeek, oneMonth, oneYear.
  • --count - Number of results to return. Default is 10.
  • --api-key - API key used in the Authorization: Bearer header. If omitted, read from GITEEAI_API_KEY.

Workflow

  1. Execute perform_web_search.py with the user parameters.
  2. Parse the script output and find the line starting with SEARCH_RESULTS_JSON:.
  3. Extract the JSON payload from that line.
  4. Summarize the most relevant results for the user, prioritizing webPages.value.

Notes

  • The response language should be consistent with the user's question.
  • Prefer webPages.value unless the user explicitly asks for images or videos.
  • If the user asks for recent information, set --freshness accordingly.
  • If the API returns no results, say that directly instead of fabricating answers.
  • If GITEEAI_API_KEY is missing, the user must provide --api-key.
  • The script prints SEARCH_RESULTS_JSON: in the output. Always parse that line.