get_example
Retrieve a specific PrimeReact code example by component name and section ID, with an optional basic or options API variant.
Instructions
Get a specific code example by PrimeReact component and section
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": {
"component": "<component>",
"section": "<section>"
},
"name": "get_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | Yes | Section ID (e.g., 'basic', 'controlled', 'template') | |
| variant | No | Example variant: 'basic' for composition API, 'options' for options API (default: 'basic') | |
| component | Yes | Component name |