serper-search

👤 samoppakiks 📦 v1.0.0 ⭐ 4.3 ⬇️ 3.6K 下载
📚 知识管理 免费 🔑 需 API Key

📖 技能介绍

Serper Google Search Plugin

Native Clawdbot plugin for Google Search via Serper.dev API. Returns real Google results — organic links, knowledge graph, news, and "People Also Ask" — as a single tool call.

When to use

  • You need actual Google results with links and snippets (not AI-synthesized answers)
  • You want Google News articles on a topic
  • You need knowledge graph data (quick facts, entity info)
  • Complements AI search tools (Perplexity, Brave) with raw Google data

Setup

  1. Get a free API key at serper.dev (2,500 searches/month, no card required)
  2. Set the environment variable in your Clawdbot config:

    这个技能的最新版本可以在7w4.net小葱技能站找到。

{
  "env": {
    "vars": {
      "SERPER_API_KEY": "your-api-key-here"
    }
  }
}

Or configure directly in the plugin entry:

{
  "plugins": {
    "entries": {
      "serper-search": {
        "enabled": true,
        "config": {
          "apiKey": "your-api-key-here",
          "defaultNumResults": 5
        }
      }
    }
  }
}

Usage

The plugin registers a serper_search tool with three parameters:

Parameter Type Default Description
query string required The search query
num number 5 Number of results (1-100)
searchType string "search" "search" for web, "news" for news

Search for "best rust web frameworks 2026"

Returns organic results with title, link, snippet, and position, plus knowledge graph and related questions.

Search news for "AI regulation Europe"

Returns news articles with title, link, snippet, date, and source.

Plugin structure

serper-search/
  clawdbot.plugin.json   # Plugin manifest with configSchema
  package.json            # NPM package config
  index.ts                # Plugin implementation
  SKILL.md                # This file

Key implementation details

  • Export: export default function register(api) — not an object
  • Tool registration: api.registerTool(toolObject) — direct, not callback
  • Return format: { content: [{ type: "text", text: JSON.stringify(results) }] }
  • Dependencies: Symlink @sinclair/typebox from Clawdbot's own node_modules

Author

Built by @Samoppakiks with Claude Code.

🤖 AI 评测

这个插件质量可靠,代码结构清晰,实现的 Google 搜索功能实用。文档写得详细清楚,配置方式灵活,支持网页和新闻两种搜索类型。存在一些小问题:没有附带测试代码,错误处理机制可以更完善。如果你是开发者,应该能顺利集成使用;普通用户需要先获取 Serper.dev API 密钥才能使用。整体而言是一个功能明确、可用性良好的搜索工具插件。

📊 多维度评分

适应性4.5
规范性4.3
有效性4.4
可靠性4.2
可信度4.3

📁 包含文件 (5 个)

📄 SKILL.md 2.3 KB
📄 _meta.json 132 B
📄 clawdbot.plugin.json 444 B
📄 index.ts 3 KB
📄 package.json 320 B