跳到正文
TakoAPI
返回技能列表

pmctl

由 wbingli 提供

Web & Frontend Development
391下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Browse and inspect Postman collections, requests, and environments from the terminal using pmctl.

描述

该技能的功能

pmctl wraps the Postman API to let you browse collections, inspect requests, and resolve environment variables from the terminal. It shows request details including method, URL, headers, body, and query params, and resolves {{variable}} placeholders to real values. No Postman GUI needed.

Instead of launching the Postman GUI to look up a request's headers or body, pmctl returns the same data instantly from the terminal with pipeable JSON output.

何时使用

  • Looking up an endpoint's method and URL without opening Postman
  • Resolving environment variables to get a real base URL
  • Building a curl command from a saved Postman request
  • Fuzzy-searching for requests across a large collection
  • Switching between personal and work Postman accounts

示例工作流

输入

User asks: What headers and body does the 'create User' request use in the QA environment?

智能体
  1. 1

    Runs pmctl requests show 'create User' -c 'My API' --json to fetch request details

  2. 2

    Extracts method, URL, headers, and body from JSON output using jq

  3. 3

    Runs pmctl environments show 'QA' --json to list environment variables

  4. 4

    Resolves the {{base-url}} placeholder by matching the key in environment values

  5. 5

    Returns the full request with real URL, headers, and body

输出

Full request details with resolved URL (e.g., https://api.example.com/v1/users), headers, and JSON body ready for use in a curl command

前置要求

  • Postman account
  • Postman API key (generate at go.postman.co/settings/me/api-keys)
  • pmctl CLI (pip install pmctl)

安装

clawhub install wbingli/pmctl

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

链接