list-components
Retrieve available NutUI-React components for mobile H5 or mini-program pages, so AI assistants can choose suitable components and generate accurate page code.
Instructions
当用户请求做成一个新的移动端页面(UI),或实现新的移动端业务页面时,使用 NutUI(NutUI-React) 组件时使用此工具。 此工具仅返回可用的组件列表。 调用此工具后,你必须根据你的业务需求、来选择符合你业务需求的组件,编辑或添加前端页面代码实现 组件列表元素数据结构: `ts export interface ComponentData { // 组件名称 name: string; // 组件文档所在文件夹名称 dirName: string; // 组件描述 description: string; // 何时使用组件 whenToUse: string; }
参数说明:isH5(是否H5页面,true:H5页面,false:非H5页面(小程序等)) `
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>"
},
"name": "list-components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isH5 | Yes | 是否H5页面(true:H5页面,false:非H5页面(小程序等)) |