veto_openapi_gen
Reads Express, FastAPI, Hono, or Fastify route files and creates an OpenAPI 3.1 specification YAML. Returns the spec as a string and can optionally write it to openapi.yaml.
Instructions
Reads Express/FastAPI/Hono/Fastify route files and generates an OpenAPI 3.1 spec YAML. Returns the spec as a string and optionally writes it to openapi.yaml.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Single route file to parse (optional). | |
| framework | No | Framework hint: 'express','fastapi','hono','fastify', or 'auto' (default). | |
| write_file | No | Write openapi.yaml to project root (optional). | |
| project_dir | No | Scan all route files in project (optional). | |
| agent_response | No | Phase 2 response from the host AI (JSON). Pass this back when prompted by the server to complete the agentic loop. |