搜索

PythonReactSEOPDF
OpenClaw

web-search

Web search using DuckDuckGo Instant Answer API (no API key required). Use when you need to search the web for information, definitions, calculations, conversions, or quick facts. Also use when user mentions "search", "look up", "find information", "what is", "how to", or "google something". The skill provides instant answers, definitions, abstracts, and related topics without requiring external API credentials.

hahahxx0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install hahahxx/web-search-instant

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Web Search

Free web search using DuckDuckGo's Instant Answer API. No API key required.

Quick Start

# Basic search
cd /home/hxx/clawd/tools && ./web-search.sh "your query"

# Examples
./web-search.sh "what is artificial intelligence"
./web-search.sh "python programming"
./web-search.sh "define recursion"
./web-search.sh "2+2"

Command-Line Options

Core Options
  • -h, --help - Display help message with usage examples
  • --format <format> - Output format: text, markdown, plain (default: text)
    • text: Colored terminal output (default)
    • markdown: Clean markdown format (no ANSI colors)
    • plain: Plain text without colors
  • --no-color - Disable colored output (same as --format plain)
  • --max-related <N> - Control number of related topics to show (default: 5)
  • --quiet - Minimal output mode (just results, no headers/footer)
Output to File

Use shell redirection to save results to file:

# Save to file
./web-search.sh "query" > output.txt

# With markdown format
./web-search.sh --format markdown "query" > results.md

# With no colors for logs
./web-search.sh --no-color "query" > search.log

What It Returns

The tool provides several result types:

  • Answers - Direct answers for calculations, conversions, weather, etc.
  • Abstracts - Wikipedia-style summaries with source and URL
  • Definitions - Word/term definitions
  • Related Topics - Additional relevant results (configurable, 5 default)

Best Practices

  1. Be specific - More specific queries get better instant answers
  2. Try variations - If no results, rephrase your query
  3. Use for facts - Definitions, calculations, quick lookups work best
  4. Check URL - Always provides DuckDuckGo link for full search
  5. Use appropriate format:
    • Terminal output: --format text (colored, default)
    • Documentation: --format markdown > file.md`
    • Logs/piping: --format plain or --no-color

Limitations

  • No full...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/hahahxx/web-search-instant
Version
—
Commit
f74fdc4c01efd7b623da1764ed487b29d7feb7f0
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Web Search Tool

DuckDuckGo Instant Answer API client - free web search without API keys.

API Details

  • Endpoint: https://api.duckduckgo.com/

  • Parameters:

    • q - Search query (URL-encoded)
    • format=json - JSON response
    • no_html=1 - Plain text (no HTML)
    • skip_disambig=0 - Include disambiguation results
  • Documentation: https://duckduckgo.com/api

  • Rate Limits: None documented (be respectful)

Response Structure

{
  "Abstract": "Full text summary",
  "AbstractSource": "Wikipedia",
  "AbstractURL": "https://...",
  "Answer": "Direct answer (e.g., 4 for 2+2)",
  "AnswerType": "calc",
  "Definition": "Term definition",
  "Heading": "Result title",
  "RelatedTopics": [
    {
      "Text": "Topic description",
      "FirstURL": "https://..."
    }
  ]
}

Query Types That Work Well

  1. Calculations: 2+2, sqrt(144), 10% of 500
  2. Definitions: define recursion, what is AI
  3. Conversions: 100 miles to km, 50c to fahrenheit
  4. Facts: population of Tokyo, who won 2024 Olympics
  5. Wikipedia: quantum physics, French Revolution

Query Types That Don't Work Well

  1. Full web searches: Use DuckDuckGo URL provided in output
  2. Recent news: DuckDuckGo focuses on evergreen content
  3. Personal queries: Location-specific, user-specific data
  4. Real-time data: Stock prices, live scores, etc.

Character Encoding

Some abstracts have Unicode issues in basic parsing (non-ASCII characters garbled). Install jq for cleaner output:

sudo apt-get install jq  # Ubuntu/Debian
brew install jq          # macOS

Error Handling

  • Network timeout → Tool retries once, then reports error
  • Empty response → Reports "No results found" with DuckDuckGo URL
  • Invalid JSON → Falls back to basic grep parsing
  • No curl/wget → Error message recommending installation

来源内容

SKILL.md
# Web Search

Free web search using DuckDuckGo's Instant Answer API. No API key required.

## Quick Start

```bash
# Basic search
cd /home/hxx/clawd/tools && ./web-search.sh "your query"

# Examples
./web-search.sh "what is artificial intelligence"
./web-search.sh "python programming"
./web-search.sh "define recursion"
./web-search.sh "2+2"
```

## Command-Line Options

### Core Options
- `-h, --help` - Display help message with usage examples
- `--format <format>` - Output format: `text`, `markdown`, `plain` (default: `text`)
  - `text`: Colored terminal output (default)
  - `markdown`: Clean markdown format (no ANSI colors)
  - `plain`: Plain text without colors
- `--no-color` - Disable colored output (same as `--format plain`)
- `--max-related <N>` - Control number of related topics to show (default: 5)
- `--quiet` - Minimal output mode (just results, no headers/footer)

### Output to File
Use shell redirection to save results to file:

```bash
# Save to file
./web-search.sh "query" > output.txt

# With markdown format
./web-search.sh --format markdown "query" > results.md

# With no colors for logs
./web-search.sh --no-color "query" > search.log
```

## What It Returns

The tool provides several result types:

- **Answers** - Direct answers for calculations, conversions, weather, etc.
- **Abstracts** - Wikipedia-style summaries with source and URL
- **Definitions** - Word/term definitions
- **Related Topics** - Additional relevant results (configurable, 5 default)

## Best Practices

1. **Be specific** - More specific queries get better instant answers
2. **Try variations** - If no results, rephrase your query
3. **Use for facts** - Definitions, calculations, quick lookups work best
4. **Check URL** - Always provides DuckDuckGo link for full search
5. **Use appropriate format**:
   - Terminal output: `--format text` (colored, default)
   - Documentation: `--format markdown` > file.md`
   - Logs/piping: `--format plain` or `--no-color`

## Limitations

- No full...
README
# Web Search Tool

DuckDuckGo Instant Answer API client - free web search without API keys.

## API Details

- **Endpoint**: `https://api.duckduckgo.com/`
- **Parameters**:
  - `q` - Search query (URL-encoded)
  - `format=json` - JSON response
  - `no_html=1` - Plain text (no HTML)
  - `skip_disambig=0` - Include disambiguation results

- **Documentation**: https://duckduckgo.com/api
- **Rate Limits**: None documented (be respectful)

## Response Structure

```json
{
  "Abstract": "Full text summary",
  "AbstractSource": "Wikipedia",
  "AbstractURL": "https://...",
  "Answer": "Direct answer (e.g., 4 for 2+2)",
  "AnswerType": "calc",
  "Definition": "Term definition",
  "Heading": "Result title",
  "RelatedTopics": [
    {
      "Text": "Topic description",
      "FirstURL": "https://..."
    }
  ]
}
```

## Query Types That Work Well

1. **Calculations**: `2+2`, `sqrt(144)`, `10% of 500`
2. **Definitions**: `define recursion`, `what is AI`
3. **Conversions**: `100 miles to km`, `50c to fahrenheit`
4. **Facts**: `population of Tokyo`, `who won 2024 Olympics`
5. **Wikipedia**: `quantum physics`, `French Revolution`

## Query Types That Don't Work Well

1. **Full web searches**: Use DuckDuckGo URL provided in output
2. **Recent news**: DuckDuckGo focuses on evergreen content
3. **Personal queries**: Location-specific, user-specific data
4. **Real-time data**: Stock prices, live scores, etc.

## Character Encoding

Some abstracts have Unicode issues in basic parsing (non-ASCII characters garbled).
Install `jq` for cleaner output:
```bash
sudo apt-get install jq  # Ubuntu/Debian
brew install jq          # macOS
```

## Error Handling

- Network timeout → Tool retries once, then reports error
- Empty response → Reports "No results found" with DuckDuckGo URL
- Invalid JSON → Falls back to basic grep parsing
- No curl/wget → Error message recommending installation

相关技能

OpenClaw

ai-maestro

23blocks-os

AI Agent Orchestrator with Skills System - Give AI Agents superpowers: memory search, code graph queries, agent-to-agent messaging. Manage Claude, Codex or any AI Agent from one dashboard. Move Agents between c...

OpenClaw

registry-broker-skills

hashgraph-online

AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols. Works with Claude, Codex, Cursor, OpenClaw, and any AI assistant.

OpenClaw

skills-manager

rito-w

A cross-platform skills manager for AI IDEs. Search marketplace, download locally, and install to Claude, Cursor, Windsurf, and more with one click.