← 返回
开发者工具 Key 中文

serper-search

Fetches real Google search or news results with links, snippets, knowledge graph data, and related questions via the Serper.dev API.
通过 Serper.dev API 获取包含链接、摘要、知识图谱数据和相关问题的真实 Google 搜索或新闻结果。
samoppakiks samoppakiks 来源
开发者工具 clawhub v1.0.0 1 版本 99968 Key: 需要
★ 2
Stars
📥 3,081
下载
💾 200
安装
1
版本
#latest

概述

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:
{
  "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:

ParameterTypeDefaultDescription
---------------------------------------
querystringrequiredThe search query
numnumber5Number of results (1-100)
searchTypestring"search""search" for web, "news" for news

Web search

> Search for "best rust web frameworks 2026"

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

News search

> 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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 19:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

FearBot 🫣

samoppakiks
基于CBT的焦虑、抑郁、压力及创伤治疗。采用贝克模型提供结构化认知行为疗法,并结合GAD-7、PHQ-9、DASS-21、PCL-5等临床评估量表。包含危机检测、思维记录、鉴别诊断和疗程追踪功能。可通过“therapy mode”、“fea
★ 5 📥 2,267
knowledge-management

web-tools-guide

user_ec205dbb
MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se
★ 56 📥 152,730
knowledge-management

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 437 📥 104,206