get-component-doc
Fetches detailed NutUI-React component documentation by component name and target environment, including API, props, and example code for H5 or mini-program development.
Instructions
通过组件名称,获取 NutUI(NutUI-React) 特定组件的详细文档 适用场景:
用户询问如何使用特定组件
用户需要查看该组件的 api、props 属性,示例代码等
参数说明:isH5(是否H5页面,true:H5页面,false:非H5页面(小程序等)),componentName(组件名称)
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": {
"isH5": "<isH5>",
"componentName": "<componentName>"
},
"name": "get-component-doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isH5 | Yes | 是否H5页面(true:H5页面,false:非H5页面(小程序等)) | |
| componentName | Yes | 组件名称。例如:Button,Form,Input等 |