fgui_create_component
Creates a new component document in a specified FairyGUI package with configurable size, export, and folder. Opens it without saving; duplicate names are rejected by default.
Instructions
在指定包中新建组件文档;默认打开但不保存,重名时默认拒绝。
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": {
"package_name": "<package_name>",
"component_name": "<component_name>"
},
"name": "fgui_create_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| exported | No | ||
| auto_rename | No | ||
| folder_path | No | ||
| extension_id | No | ||
| package_name | Yes | ||
| component_name | Yes | ||
| create_folders | No | ||
| open_after_create | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||