Change an OpenAPI doc
edit_openapiChanges an OpenAPI doc read at "base" and publishes the next version; answers what changed, what breaks, new errors. Layout and comments stay. All ops apply or none; an op on something changed since base is refused.
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": {
"doc": "<doc>",
"base": "<base>",
"ops": "<ops>"
},
"name": "edit_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | The doc's link or its code. | |
| ops | Yes | JSON Patch ops, or {"op": "operation", "at": "POST /v1/refunds", "set": {…}}, {"op": "schema", "name": "Refund", "props": {…}}, {"op": "param", "at": "…", "add": {…}}, {"op": "deprecate", "at": "…"}; "remove" removes. | |
| base | Yes | The version you read: version in get. | |
| note | No | Why, in a few words. Shown in History. | |
| dryRun | No | Work it out and answer, saving nothing. |