docs_add_swagger
Import API documentation from a Swagger UI page by detecting its OpenAPI spec URL automatically. Use when given URLs like /swagger or /api-docs.
Instructions
Import documentation from a Swagger UI page. Automatically detects the OpenAPI spec URL by trying common patterns. Use this when you have a Swagger UI URL like /swagger or /api-docs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "docs_add_swagger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The Swagger UI page URL (e.g., "https://api.example.com/swagger") | |
| name | No | Optional: display name for the API documentation | |
| sourceId | No | Optional: custom source ID (auto-generated from API title if not provided) | |
| description | No | Optional: description for the source |