react_get_pattern
Retrieve a React or Next.js pattern by name, including a full code example and the corresponding anti-pattern to avoid common mistakes.
Instructions
Get a React/Next.js pattern with full code example and anti-pattern
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": "react_get_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Pattern name (e.g. 'rsc-default', 'state-hierarchy', 'zustand-store', 'suspense-boundary', 'nextjs-metadata', 'composition-pattern', 'component-template') |