Skip to content

Instantly share code, notes, and snippets.

@KhaledHawwas
Created March 1, 2026 21:26
Show Gist options
  • Select an option

  • Save KhaledHawwas/c6bd634b8bba193a74abd8552e88353e to your computer and use it in GitHub Desktop.

Select an option

Save KhaledHawwas/c6bd634b8bba193a74abd8552e88353e to your computer and use it in GitHub Desktop.
search skill for openclaw
name search_crawleo
description Searches the web using Crawleo. Use this when the user asks for real-time information or specific web searches.

Crawleo Search Skill

This skill uses a Python script to fetch search results. It returns a clean, numbered list of results.

Use Case

Use this tool when you need to look up information on the internet that isn't in your local training data.

How to use

# From within OpenClaw
search_crawleo "Who is Elon Musk?"

AI INSTRUCTION: The search results are deeply nested. You must look inside data.pages["1"].search_results to find the information you need. Each result in that array contains a title, link, snippet, and source. Ignore other metadata like time_used.

Skill Definition

{
  "name": "search_crawleo",
  "description": "Run a web search. Results are located in data.pages['1'].search_results.",
  "parameters": {
    "type": "object",
    "properties": {
      "query": { "type": "string", "description": "The search query" },
      "max_pages": { "type": "number", "default": 1 }
    },
    "required": ["query"]
  },
  "response": {
    "type": "object",
    "properties": {
      "status": { "type": "string" },
      "data": { "$ref": "#/definitions/SearchData" }
    }
  },
  "definitions": {
    "SearchData": {
      "type": "object",
      "properties": {
        "query": { "type": "string" },
        "pages": { 
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "search_results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "title": { "type": "string" },
                    "link": { "type": "string" },
                    "snippet": { "type": "string" },
                    "source": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "execution": {
    "method": "GET",
    "url": "[https://api.crawleo.dev/search](https://api.crawleo.dev/search)",
    "headers": {
      "Accept": "application/json",
      "x-api-key": "YOUR_API_KEY"
    },
    "queryParams": {
      "query": "{{parameters.query}}",
      "max_pages": "{{parameters.max_pages}}",
      "device": "desktop",
      "setLang": "en",
      "markdown": "true"
    },
    "responseBody": "$output"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment