ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

swagger-skill

智能 Swagger API 查询和调用工具。通过自然语言指令直接查询接口详情、调用 API,无需繁琐的交互步骤。

Why use this skill?

Seamlessly query, search, and call Swagger or OpenAPI endpoints using natural language with the swagger-skill for OpenClaw. Streamline your API workflows today.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/minusgod/swagger-skill
Or

What This Skill Does

The swagger-skill is a powerful and intelligent API integration tool for OpenClaw. It allows you to interact with RESTful services by bridging the gap between your natural language instructions and formal API specifications. By automatically parsing Swagger 2.0 and OpenAPI 3.0 documents, the skill creates a structured index of your available endpoints. You can query, search, and execute API calls without needing to manually inspect JSON schemas or write boilerplate request code. It supports complex authentication patterns, including Token-based (Bearer) and Cookie-based headers, and handles multipart/form-data for file uploads, making it a comprehensive utility for backend interaction and testing.

Installation

Installation is streamlined through the OpenClaw ecosystem. You can install this skill directly by running the following command in your terminal:

clawhub install openclaw/skills/skills/minusgod/swagger-skill

Upon initial invocation, the skill will automatically detect and install necessary dependencies, such as axios and form-data, and configure your package.json with the required type: module setting. No complex manual setup is required.

Use Cases

  • Automated Testing: Quickly trigger API endpoints with varying payloads to verify system responses without writing custom test suites.
  • Dynamic Integration: Connect your agent to internal tools, microservices, or third-party APIs by simply providing the documentation URL.
  • Data Retrieval: Use natural language to ask the agent to 'Fetch the last 5 logs' or 'Update the user settings', and have the agent identify and call the correct endpoint in the background.
  • Headless API Exploration: Use the interactive CLI tool to explore large enterprise API ecosystems without needing to navigate through Swagger UI web browsers.

Example Prompts

  • "Load the Swagger doc from http://api.myservice.com/v2/docs and find the endpoint for listing users."
  • "Using the user management service, create a new user with the name John Doe and email [email protected]."
  • "Search for an API that allows me to upload a file and call it with my current document file."

Tips & Limitations

  • Authentication First: Always ensure your tokens or cookies are set before attempting to fetch sensitive API documentation.
  • Performance: While the skill uses a Map structure for O(1) detail lookups, very large Swagger files may take a moment to parse during the initial load.
  • Scope: Ensure the environment where OpenClaw is running has network access to the API server specified, especially if working with local development environments or private VPNs.
  • Strict Schemas: The skill relies on well-formed Swagger/OpenAPI files; if your API documentation is missing mandatory fields, the intelligent parser may struggle to map natural language to the correct arguments.

Metadata

Author@minusgod
Stars1401
Views0
Updated2026-02-24
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-minusgod-swagger-skill": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#api-integration#swagger#openapi#automation#developer-tools
Safety Score: 3/5

Flags: network-access, external-api