get-component-example
Retrieves external example code for a specified NutUI-React component using src, helping you supply usable code samples for component questions or feature implementation.
Instructions
获取外部示例代码,通过 src,获取 NutUI(NutUI-React) 特定组件的外部示例代码 适用场景:
用户询问组件特定的外部代码示例时
用户想要实现某个特定功能时直接告知可使用的代码例子
生成业务页面前,获取类似可用的外部代码示例
参数说明:src(外部代码示例的 src 属性)
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": {
"src": "<src>"
},
"name": "get-component-example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| src | Yes | 外部代码示例的 src 属性 |