fgui_insert_list
Creates a List under the current FairyGUI document root component with configurable layout, default item component, and initial items; optionally saves and verifies the result.
Instructions
在当前文档根组件下创建 List,支持布局、默认条目组件和初始条目(0.8.25+)。
default_item 与条目 url 必须引用组件;每项省略 url 时使用 default_item。 items 最多 1000 项,可写 url/title/icon/name/selectedTitle/selectedIcon,图标须引用图片。 x/y/width/height 向零截断,尺寸须大于 0;间距须为整数。 支持保存、XML 条目回读与关闭重开验证。不进 Agent 撤销栈,未保存可 discard。 save 保存整个文档;external_reload 要求 save=true 且 verify=true。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fgui_insert_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | ||
| save | No | ||
| align | No | left | |
| items | No | ||
| width | No | ||
| height | No | ||
| layout | No | single_column | |
| verify | No | ||
| v_align | No | top | |
| line_gap | No | ||
| overflow | No | scroll | |
| column_gap | No | ||
| default_item | No | ||
| auto_item_size | No | ||
| selection_mode | No | single | |
| external_reload | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||