API Tester for Openclaw

A lightweight, dependency-free HTTP client for performing structured REST API requests within Openclaw Skills.

wanng-ide
v1.0.0
Feb 15, 2026
6
8.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install api-tester

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install api-tester using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is API Tester?

The API Tester is a streamlined utility designed for developers who need to interact with external web services without the overhead of heavy external libraries. Integrated directly into the Openclaw Skills ecosystem, it provides a reliable interface for executing GET, POST, PUT, and DELETE requests using standard Node.js modules.

This skill ensures that your AI agents can perform health checks, fetch real-time data, or submit payloads to third-party integrations seamlessly. By providing a consistent return format and built-in JSON handling, it simplifies the process of building complex, data-driven workflows within Openclaw Skills.

API Tester Use Cases

  • Testing RESTful API endpoints for response status and payload accuracy.
  • Automating health checks for web services and cloud infrastructure.
  • Fetching dynamic content from external data sources during AI agent execution.
  • Sending automated notifications via webhooks to platforms like Slack, Discord, or Teams.
  • Interacting with internal microservices during a development lifecycle.

How API Tester Works

  1. The user imports the API Tester module within an Openclaw Skills environment using the standard require syntax.
  2. A request is initiated by calling the request function, passing the HTTP method, target URL, and optional headers or body payloads.
  3. The skill utilizes native Node.js http and https modules to establish a secure connection to the remote server.
  4. Payloads are automatically serialized into JSON for the request, and response data is parsed if the Content-Type matches.
  5. The skill returns a structured Promise resolving to an object containing the status code, headers, and body for further logic processing.

API Tester Setup

To integrate this skill into your Openclaw Skills setup, ensure the api-tester directory is correctly placed in your skills path. Since it uses native modules, no npm install is required. Use the following code to initialize the client:

const api = require('skills/api-tester');

API Tester Data Schema & Taxonomy

The skill returns a standardized JSON object for every request to maintain consistency across Openclaw Skills implementations:

Field Type Description
status Number The HTTP response status code (e.g., 200, 404, 500).
headers Object Key-value pairs representing the response headers.
data Object/String The parsed JSON object if applicable, otherwise a raw string.
raw String The full, unparsed response body content.
error String A descriptive error message if the request failed or timed out.

API Tester Advanced Features

  • Zero-dependency architecture utilizing native Node.js libraries for maximum compatibility and security.
  • Automatic Content-Type detection for seamless JSON stringification of request bodies.
  • Built-in 10-second timeout configuration to prevent agent hanging during network latency.
  • Fail-safe error handling that returns structured objects instead of throwing exceptions, ensuring continuous operation for Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*