360 Secure SkillHub
360 安全技能中心

coze-web-search

这是基于coze-coding-dev-sdk的命令行搜索工具,核心功能含网页/图片搜索、AI摘要,支持按1天/周/月的时间范围筛选,可指定或排除特定站点,自定义结果数量。典型场景包括查找编程教程、近期AI资讯、特定主题图片等。输入为带参数的命令行指令,输出支持文本、Markdown、JSON三种格式。

hanxueyuan
hanxueyuan
热度 77.14
最近更新 2026-05-11 09:43:32
分类:搜索依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:研究 / 摘要总结

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add coze-web-search
Metadata
name
coze-web-search
description
Search the web using coze-coding-dev-sdk. Supports web search, image search, AI summaries, time filters, and site restrictions.
homepage
https://www.coze.com
metadata
{"openclaw":{"emoji":"🔍","requires":{"bins":["npx"]}}}

Coze Web Search

Search the web using coze-coding-dev-sdk. Returns structured results with URLs, snippets, and AI summaries.

Quick Start

Basic Search

npx ts-node {baseDir}/scripts/search.ts -q "Python programming"

With Time Filter

npx ts-node {baseDir}/scripts/search.ts \
  -q "AI news" \
  --time-range 1w \
  --count 15

Site-Specific Search

npx ts-node {baseDir}/scripts/search.ts \
  -q "Python tutorials" \
  --sites "python.org,github.com,stackoverflow.com"

Image Search

npx ts-node {baseDir}/scripts/search.ts \
  -q "mountain landscape" \
  --type image \
  --count 20

Output as Markdown

npx ts-node {baseDir}/scripts/search.ts \
  -q "machine learning" \
  --format markdown

Script Options

Option Description
-q, --query <text> Search query (required)
--type <type> web or image (default: web)
--count <n> Number of results (default: 10)
--time-range <range> 1d, 1w, 1m (web only)
--sites <domains> Comma-separated domains to include
--block-hosts <domains> Comma-separated domains to exclude
--no-summary Disable AI summary
--need-content Include full page content
--format <fmt> json, text, markdown (default: text)

Time Range

Value Description
1d Last 24 hours
1w Last week
1m Last month

Output Formats

Text (default)

============================================================
AI SUMMARY
============================================================
Python is a high-level programming language...

============================================================
SEARCH RESULTS (10 items)
============================================================

[1] Python.org
    URL: https://www.python.org
    Source: Python Software Foundation
    The official home of the Python Programming Language...

Markdown

Formatted with headers, links, and collapsible content sections.

JSON

Raw API response.

Notes

  • Use --time-range for recent content
  • Use --sites to limit to trusted sources
  • Use --need-content sparingly (increases response size)