fgui_set_list_items
Batch replace items in an existing FairyGUI List with up to 1000 entries, setting url, title, icon, name, selectedTitle, and selectedIcon; omitted fields clear, and [] empties the list.
Instructions
整批替换已有 List 的条目(0.8.26+);数组顺序即条目顺序,[] 清空。
最多 1000 项,支持 url/title/icon/name/selectedTitle/selectedIcon;省略的字段清空。 省略 default_item 保留默认组件,空串清除它。条目的空/省略 url 继承最终默认组件。 先校验全部输入;限当前根组件下未锁定的 List,须退出时间轴与组内编辑。 不进 Agent 撤销栈;默认不保存,未保存可 discard,save 保存整个文档。 原生应用失败尝试恢复原条目并回报 rolledBack;保存/验证失败不自动回滚。 external_reload 要求 save=True 且 verify=True。
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": {
"items": "<items>"
},
"name": "fgui_set_list_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| items | Yes | ||
| verify | No | ||
| object_id | No | ||
| object_name | No | ||
| object_path | No | ||
| default_item | No | ||
| external_reload | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||