veto_openapi_gen
Generates OpenAPI 3.1 YAML spec from Express, FastAPI, Hono, or Fastify route files, optionally writing 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "veto_openapi_gen"
}
}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. |