component_examples
Retrieve ready-to-use code examples for my-design React components, covering common scenarios like basic usage, loading states, disabled states, and component combinations.
Instructions
获取 my-design 组件的代码示例。返回可直接复制使用的示例代码,覆盖组件的常见使用场景(基础用法、加载状态、禁用状态、组合使用等)。
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": "component_examples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentName | Yes | 组件名称,如 Button、Input、Table。支持别名。 |