component_details
Retrieve detailed documentation for React components, including properties, events, usage rules, and accessibility requirements to ensure proper implementation.
Instructions
获取 my-design 组件的详细文档,包括:Props(属性)、Events(事件)、核心规则(AI 生成代码时必读的约束)、Behavior(交互行为)、When to use(适用场景)、Accessibility(无障碍要求)。这是生成代码前必须调用的工具,用于确认组件 API 和使用约束。
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_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentName | Yes | 组件名称,如 Button、Input、Table。支持别名(如 Btn)。 | |
| sections | No | 要获取的章节列表。可选值:props、events、rules(核心规则)、behavior、when-to-use、accessibility、all(全部)。默认返回 props + rules。 |