← 返回 Skills 市场
derick001

API Endpoint Tester

作者 Derick · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
494
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install api-endpoint-tester
功能描述
CLI tool to test REST API endpoints with various HTTP methods, headers, and payloads.
使用说明 (SKILL.md)

API Endpoint Tester

What This Does

A simple CLI tool to send HTTP requests to REST API endpoints and validate responses. Supports GET, POST, PUT, DELETE, PATCH methods with custom headers and request bodies (JSON or form data).

When To Use

  • You need to test API endpoints manually or in scripts
  • You want to validate HTTP status codes and response formats
  • You're debugging API integrations and need quick requests
  • You need to check if an endpoint is reachable and responding correctly

Usage

Basic GET request: python3 scripts/main.py run --url "https://api.example.com/users" --method GET

POST with JSON body: python3 scripts/main.py run --url "https://api.example.com/users" --method POST --body '{"name": "John", "email": "[email protected]"}'

With custom headers: python3 scripts/main.py run --url "https://api.example.com/users" --method GET --headers '{"Authorization": "Bearer token123"}'

Examples

Example 1: Simple GET request

python3 scripts/main.py run --url "https://jsonplaceholder.typicode.com/posts/1" --method GET

Output:

{
  "status": "success",
  "status_code": 200,
  "headers": {
    "content-type": "application/json; charset=utf-8"
  },
  "body": {
    "userId": 1,
    "id": 1,
    "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
    "body": "quia et suscipit\
suscipit recusandae consequuntur expedita et cum\
reprehenderit molestiae ut ut quas totam\
nostrum rerum est autem sunt rem eveniet architecto"
  },
  "response_time_ms": 245
}

Example 2: POST with validation

python3 scripts/main.py run --url "https://jsonplaceholder.typicode.com/posts" --method POST --body '{"title": "foo", "body": "bar", "userId": 1}' --expected-status 201

Requirements

  • Python 3.x
  • requests library (install via pip if not available)

Limitations

  • This is a CLI tool, not an auto-integration plugin
  • Does not support WebSocket or streaming endpoints
  • Limited to HTTP/HTTPS protocols (no gRPC, GraphQL, etc.)
  • No built-in authentication beyond headers
  • Does not save test suites or history (single request at a time)
  • Timeouts default to 10 seconds
安全使用建议
This package appears to do what it says: a small CLI that issues HTTP(S) requests. Before installing or running it, consider: (1) the source/homepage is not provided — if you need long-term trust, prefer code from a known maintainer or repo; (2) the tool will send whatever headers and body you pass, so do not pass sensitive API keys or tokens unless you intend them to be transmitted to the target endpoint; (3) it can reach arbitrary network endpoints — run it in an environment where network access is acceptable; (4) the tool requires the Python 'requests' library (pip install requests). If you want extra assurance, review the provided scripts/main.py (included) and run it in an isolated environment or sandbox.
功能分析
Type: OpenClaw Skill Name: api-endpoint-tester Version: 1.0.1 The skill provides a CLI tool for testing REST API endpoints, which is aligned with its stated purpose. The `scripts/main.py` code uses the standard `requests` library for HTTP communication and includes a critical security control to prevent arbitrary file writes by ensuring that any specified `--output-file` path remains strictly within the skill's designated directory. There are no indicators of intentional data exfiltration, unauthorized command execution, persistence mechanisms, or prompt injection attempts in the code or documentation. While the tool can be misused by a malicious actor (e.g., for SSRF or sending sensitive data to malicious endpoints), this is a capability inherent to any HTTP client and not a design flaw or malicious intent within the skill itself.
能力评估
Purpose & Capability
The name/description (API Endpoint Tester) match the included CLI script and README. Required binary (python3) and the requests package are appropriate and proportional for the stated purpose. Minor metadata mismatch: SKILL.md lists version 1.0.0 while registry shows 1.0.1, but this is an implementation/versioning inconsistency rather than a security issue.
Instruction Scope
SKILL.md and README instruct the agent/user to run the included CLI which issues HTTP(S) requests to arbitrary URLs with user-provided headers/body. The runtime instructions and the script stay within that scope; there are no instructions to read unrelated files, environment variables, or to send data to other endpoints. Note: because the tool accepts arbitrary headers/bodies, a user could accidentally send secrets if provided.
Install Mechanism
There is no install spec (instruction-only), and the package relies on the widely used Python 'requests' library. SKILL.md and README advise installing requests via pip; no downloads from unknown hosts or archive extraction are present.
Credentials
The skill requests no environment variables or credentials. That is proportionate. However, the tool allows callers to supply Authorization and other headers; users should avoid passing secrets or long-lived tokens into requests unless they intend to transmit them to the target endpoint.
Persistence & Privilege
The skill is not always-enabled and does not request persistent system-wide privileges. Autonomous model invocation is allowed (default) but this is expected for skills and is not combined with other concerning privileges. The script restricts output-file writes to the skill directory, limiting its ability to write arbitrary files elsewhere.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install api-endpoint-tester
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /api-endpoint-tester 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
No changes detected in this release. Version number updated only.
v1.0.0
Initial release of API Endpoint Tester. - CLI tool to test REST API endpoints using GET, POST, PUT, DELETE, and PATCH methods. - Supports custom headers and request bodies (JSON or form data). - Validates HTTP status codes and response formats. - Provides response details including status, headers, body, and response time. - Requires Python 3 and the requests library.
元数据
Slug api-endpoint-tester
版本 1.0.1
许可证
累计安装 1
当前安装数 1
历史版本数 2
常见问题

API Endpoint Tester 是什么?

CLI tool to test REST API endpoints with various HTTP methods, headers, and payloads. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 494 次。

如何安装 API Endpoint Tester?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install api-endpoint-tester」即可一键安装,无需额外配置。

API Endpoint Tester 是免费的吗?

是的,API Endpoint Tester 完全免费(开源免费),可自由下载、安装和使用。

API Endpoint Tester 支持哪些平台?

API Endpoint Tester 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 API Endpoint Tester?

由 Derick(@derick001)开发并维护,当前版本 v1.0.1。

💬 留言讨论