set_widget_richtext
Rewrite native RichTextBlock paragraphs and runs to set font, size, line spacing, alignment, native list levels, wrapping, and trimming in an editable RP prototype.
Instructions
整段重写原生 RichTextBlock 的段落与 runs(字体/字号/行距/对齐/原生列表级别/wrapping/trimming 及 run 全量键)。具名调用省略宿主源/输出即使用会话链;原始 args 用 session:true 并省略这两个参数(多源工具保留导入源)。显式路径不推进链。 登记证据 gui-roundtrip,只适用 capabilities.md 的已验样本。CLI: node set-widget-richtext.mjs source.rp new.rp richtext.json
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": {
"args": "<args>"
},
"name": "set_widget_richtext"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | ||
| session | No | true 时 args 省略宿主源和输出,由当前链注入;多源工具仍传导入源。 |