导出完整 OpenAPI 文档
get-openapi-specFetch OpenAPI 3.x spec in JSON/YAML, optionally extracting sections (paths, schemas, info) and limiting length for large docs.
Instructions
导出完整(或分段)的 OpenAPI 3.x 文档文本,超长自动截断。参数:source 同上;format 输出格式 json/yaml(默认 json);section 导出分段 full/paths/schemas/info(默认 full);max_length 最大返回字符数(默认 50000)。大文档建议用 section 分段获取,或优先使用概览/搜索/详情工具。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 输出格式,默认 json | json |
| source | No | Swagger/OpenAPI 文档的 URL(http/https)或本地文件路径(.json/.yaml/.yml);不传时使用服务端配置的默认文档 | |
| section | No | 导出分段,默认 full | full |
| max_length | No | 最大返回字符数,默认 50000 |