360 Secure SkillHub
360 安全技能中心

Moark Web Search

该 Skill 提供 Python 脚本,调用外部 /web-search 接口执行关键词或自然语言检索,覆盖网页、图片和视频,可设置是否返回摘要、时间范围和结果数量。脚本输出 SEARCH_RESULTS_JSON 行,由调用方解析后优先汇总网页结果;需使用 GITEEAI_API_KEY 或通过参数传入访问令牌。

fchange
fchange
热度 42.14
最近更新 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.