跳到正文
TakoAPI
返回技能列表

api-tester

由 wanng-ide 提供

Browser & Automation
2.1k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Perform structured HTTP/HTTPS requests (GET, POST, PUT, DELETE) with custom headers and JSON body support.

描述

该技能的功能

A dependency-free HTTP client that performs GET, POST, PUT, and DELETE requests with custom headers and JSON body support. It uses Node.js built-in modules, so no packages need to be installed. Returns structured response objects including status code, headers, parsed body, and errors.

Uses only Node.js built-in http and https modules, so there are no packages to install and no dependency conflicts to manage.

何时使用

  • Testing a new REST API endpoint during development
  • Running automated health checks against remote services
  • Posting JSON payloads to a webhook from an agent workflow
  • Verifying that an authentication token works against a live API
  • Fetching data from a third-party API without leaving the agent environment

示例工作流

输入

User asks: Fetch the latest todos from JSONPlaceholder and show me the first three

智能体
  1. 1

    Require the api-tester skill

  2. 2

    Call api.request('GET', 'https://jsonplaceholder.typicode.com/todos') with no extra headers or body

  3. 3

    Receive structured response with status 200 and a parsed JSON array

  4. 4

    Extract and return the first three todo items with their titles and completion status

输出

Three todo objects with id, title, and completed field from the JSONPlaceholder API

安装

clawhub install wanng-ide/api-tester

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接