document_add_header_definition
Add a reusable header definition to an OpenAPI 3.x document. Define headers like X-Rate-Limit for consistent use across endpoints.
Instructions
Add a reusable header definition to the document components (OpenAPI 3.x only)
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>",
"header": "<header>"
},
"name": "document_add_header_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Header definition name (e.g. X-Rate-Limit) | |
| header | Yes | JSON string with the header definition | |
| session | Yes | Session name |