parse_api_spec
Reads a local OpenAPI/Swagger file, detects JSON or YAML, extracts routes and methods, and strips verbose text to reduce LLM token usage by up to 70%.
Instructions
Reads a local OpenAPI/Swagger file (JSON or YAML), auto-detects format, and selectively extracts routes and methods. Strips verbose descriptions to save up to 70% of LLM tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |