Get Design Pattern
get_design_patternRetrieve a complete design pattern record by name or alias, including intent, tradeoffs, participants, and per-language implementations, to guide pattern selection and implementation.
Instructions
Get the full JSON of a single design pattern by its name or a resolved alias (e.g. 'singleton', 'borg'). Returns the complete record: intent, problem, context, benefits, tradeoffs, quality_attributes, participants, use cases, related patterns, principles, pitfalls, sources, and the joined per-language implementations with their variants. Raises ERR_013 when the pattern is unknown.
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": {
"name": "<name>"
},
"name": "get_design_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _ctx | No | ||
| name | Yes | Pattern name or alias, e.g. 'singleton', 'borg' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||