Get Component Code
get_component_codeRetrieve real source code for any Material 3 component with variants and examples. Choose your framework to get exact code for your app.
Instructions
Retrieve real source code of specific Material 3 component with variants and examples
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": {
"componentName": "<componentName>"
},
"name": "get_component_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant | No | Variant name (e.g., 'filled', 'outlined', 'elevated') | |
| framework | No | Target framework (default: 'flutter'). Supported: 'web', 'flutter'. React and Angular coming soon. | flutter |
| componentName | Yes | Component name (e.g., 'button', 'card') | |
| includeExamples | No | ||
| includeDependencies | No |