cloudsways-search

Search the web using Cloudsways SmartSearch API. Returns highly relevant results with dynamic summaries, snippets, and optional full-text content. Use when you need up-to-date information, news, or deep research data.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cloudsways-search" with this command: npx skills add prismheart/cloudsway-search-tob-test

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

HeaderTypeValueDescription
AuthorizationStringBearer {AK}Input value uses your assigned AccessKey.
pragmaStringno-cacheEntering no-cache returns results without caching, making each request independent; omitting this caches results for the same query term for 10 minutes.

Request Parameters

ParameterRequiredTypeDefaultDescription
qYString-User search query term; cannot be empty.
countNShort10Number of search results included. Enum values: 10, 20, 30, 40, 50.
freshnessNStringnullFilter search results by time periods: Day (Past 24 hours), Week, Month.
offsetNShort0Zero-based offset indicating the number of search results to skip. Use with count to paginate.
enableContentNboolfalseControls whether full text (content) extraction is enabled: true or false.
contentTypeNStringTEXTFull text return format. Optional values: HTML, MARKDOWN, TEXT.
contentTimeoutNFloat3.0Full text read timeout. Maximum supported is 10 seconds. For low latency, set to 0.1.
mainTextNboolfalseUsed 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:

FieldLatencyRelevanceDescription
snippetLowestGoodA short text summary describing the webpage content. Best for general queries and fast browsing.
mainTextMediumHighestDynamic summary fragments most relevant to the query term extracted from the body text. Smarter than the snippet.
contentHigherHighWebpage 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}"
      }
    }
  }
}

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

yuqing-bitable-and-label

Incrementally sync data from XiaoAi API to Feishu Bitable and optionally auto-label records with machine-based type and sentiment annotations.

Registry SourceRecently Updated
General

张律师综合套装

张律师法律AI中台 - 中国首个开源法律AI技能库,涵盖刑事辩护、民商事诉讼、合同审查全流程

Registry SourceRecently Updated
General

刑事辩护

刑事辩护全流程AI助手 - 6大阶段21个模板,从接案到执行全覆盖

Registry SourceRecently Updated