Sync API from its spec
specway_sync_apiRe-reads an API's OpenAPI spec from the URL it was imported from and applies every change at once: new endpoints are added, changed ones are replaced from the spec, and endpoints no longer in the spec are removed from the docs. The changes go live, and a changelog entry is written when anything changed. Endpoints hidden from the docs stay hidden. Returns how many endpoints were added, changed and removed, with up to 50 of each listed. Running it again when the spec has not changed changes nothing. Only works for an API imported from a URL (source_url in specway_list_apis); the spec is fetched from that URL on the internet.
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": {
"api_id": "<api_id>"
},
"name": "specway_sync_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_id | Yes | An api_id from specway_list_apis. Opaque. |