填充文本槽
xiumi_fill_textReplaces a specified text slot in a Xiumi component with new text, supporting line breaks via component ID and zero-based slot index.
Instructions
把某个组件内第 slotIndex 个文本槽替换为指定文字(支持 \n 换行)。文本槽编号从 0 开始,顺序与组件内可见文字一致。
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": {
"compId": "<compId>",
"slotIndex": "<slotIndex>",
"text": "<text>"
},
"name": "xiumi_fill_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 要写入的文字 | |
| compId | Yes | 组件 ID(tn-uuid),来自 xiumi_insert_template 或 xiumi_get_comps | |
| slotIndex | Yes | 文本槽序号,从 0 开始 |