← 返回
内容创作 Key 中文

cloudsway-search-tob

Search the web using Cloudsways SmartSearch API. Returns highly relevant results with dynamic summaries, snippets, and optional full-text content. Use when y...
使用 Cloudsways SmartSearch API 搜索网络,返回高度相关的动态摘要、片段和可选的全文内容。适用于...
prismheart
内容创作 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 564
下载
💾 11
安装
1
版本
#latest

概述

Cloudsways SmartSearch Skill

Search the web and extract intelligent fragments or full-text content directly into the LLM context.

Authentication

[cite_start]Authentication is handled via the URL endpoint and an Access Key[cite: 3, 5]. You must set the following environment variables before using the script:

export CLOUDSWAYS_BASE_PATH="your-base-path"
export CLOUDSWAYS_ENDPOINT="your-endpoint"
export CLOUDSWAYS_AK="your-access-key"

Quick Start

Using the Script

If you have configured the script locally, you can call it by passing a JSON object:

./scripts/search.sh '<json>'

Examples:

# Basic search
./scripts/search.sh '{"q": "python async patterns"}'

# Search with time filter and pagination
./scripts/search.sh '{"q": "Apple earnings", "freshness": "Week", "count": 20}'

# Deep research (extracts full content and dynamic key fragments)
./scripts/search.sh '{"q": "Agentic AI architecture", "enableContent": true, "mainText": true}'

Basic Search (cURL)

curl -i --location --request GET 'https://{BasePath}/search/{Endpoint}/smart?q=latest+developments+in+quantum+computing&count=5' \
  --header 'Authorization: Bearer {AK}' \
  --header 'pragma: no-cache'

Advanced Search with Full Content (cURL)

curl -i --location --request GET 'https://{BasePath}/search/{Endpoint}/smart?q=machine+learning+best+practices&count=10&enableContent=true&mainText=true' \
  --header 'Authorization: Bearer {AK}' \
  --header 'pragma: no-cache'

API Reference

Endpoint

GET https://{BasePath}/search/{Endpoint}/smart

Headers

| Header | Type | Value | Description |

|---|---|---|---|

| Authorization | String | Bearer {AK} | Input value uses your assigned AccessKey. |

| pragma | String | no-cache | Entering no-cache returns results without caching, making each request independent; omitting this caches results for the same query term for 10 minutes. |

Request Parameters

| Parameter | Required | Type | Default | Description |

|---|---|---|---|---|

| q | Y | String | - | User search query term; cannot be empty. |

| count | N | Short | 10 | Number of search results included. Enum values: 10, 20, 30, 40, 50. |

| freshness | N | String | null | Filter search results by time periods: Day (Past 24 hours), Week, Month. |

| offset | N | Short | 0 | Zero-based offset indicating the number of search results to skip. Use with count to paginate. |

| enableContent | N | bool | false | Controls whether full text (content) extraction is enabled: true or false. |

| contentType | N | String | TEXT | Full text return format. Optional values: HTML, MARKDOWN, TEXT. |

| contentTimeout | N | Float | 3.0 | Full text read timeout. Maximum supported is 10 seconds. For low latency, set to 0.1. |

| mainText | N | bool | false | Used to return dynamic summary key fragments. Takes effect only when enableContent is true. |

Response Format

{
  "queryContext": {
    "originalQuery": "open ai recent news"
  },
  "webPages": {
    "value": [
      {
        "name": "OpenAI just launched ChatGPT-5.1 Pro...",
        "url": "https://www.example.com/page",
        "datePublished": "2025-07-14T01:15:00.0000000Z",
        "snippet": "ChatGPT is looking to compete with Gemini...",
        "mainText": "Now GPT-5.1 Pro takes a lot of these improvements and makes them smarter...",
        "content": "Full extracted body text goes here...",
        "score": 0.8521444
      }
    ]
  }
}

Content Strategy

Understanding which text field to request is critical for token optimization:

| Field | Latency | Relevance | Description |

|---|---|---|---|

| snippet | Lowest | Good | A short text summary describing the webpage content. Best for general queries and fast browsing. |

| mainText | Medium | Highest | Dynamic summary fragments most relevant to the query term extracted from the body text. Smarter than the snippet. |

| content | Higher | High | Webpage full text information. Best for deep research, but consumes significant context tokens. |

Tips:

  • For standard answers, rely on the default snippet.
  • When you need precise, detailed answers without reading the whole page, use enableContent=true and mainText=true.
  • Always set pragma: no-cache if you are querying real-time news or stock updates.

MCP Client Integration (Alternative)

For environments supporting the Model Context Protocol (MCP), configure your MCP Client using streamable_http:

{
  "mcpServers": {
    "smartsearch": {
      "transport": "streamable_http",
      "url": "https://searchmcp.cloudsway.net/search/{YOUR_SMARTSEARCH_ENDPOINT}/smart",
      "headers": {
        "Authorization": "Bearer {YOUR_SMARTSEARCH_AK}"
      }
    }
  }
}

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 05:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,873

smartsearch

prismheart
执行实时网络搜索,获取最新在线信息、新闻、科研数据和事实核查结果。
★ 0 📥 396
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,494