I built pi-openapi-tools — a Pi extension that reads an OpenAPI/Swagger spec and dynamically registers one callable tool per API operation.
Instead of hand-writing wrappers for every endpoint, you point Pi at a spec URL and immediately start using generated tools.
npm: pi-openapi-tools on npm
Pi package: pi-openapi-tools on Pi
GitHub: Repository
Why I built this
Most API-agent integrations still require too much manual glue code:
mapping endpoints to functions
defining parameter schemas
maintaining naming consistency
wiring auth/token handling
repeating the process for every API
That slows experimentation and makes agent tooling fragile.
I wanted a runtime-first workflow:
spec → generated tools → live API calls
What the extension does
Given an OpenAPI or Swagger spec URL, pi-openapi-tools:
Generates one Pi tool per operation
Supports Swagger 2.0 and OpenAPI 3.x
Builds structured parameter schemas automatically
Resolves request bodies by media/content type
Handles path, query, and header…