document_add_response_definition
Add a reusable response definition to your OpenAPI or AsyncAPI document by specifying name and JSON response.
Instructions
Add a reusable response definition to the document
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": {
"session": "<session>",
"name": "<name>",
"response": "<response>"
},
"name": "document_add_response_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Response definition name (e.g. NotFound, ErrorResponse) | |
| session | Yes | Session name | |
| response | Yes | JSON string with the response definition |