apply_design_pattern
Apply Factory, Strategy, Builder, Observer, etc patterns. Use when: you need a complete pattern implementation from a high-level description. Related: generate_factory, generate_strategy (for specific patterns)
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": {
"pattern": "<pattern>",
"context": "<context>"
},
"name": "apply_design_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | ||
| pattern | Yes | ||
| className | No |