clone_library_widget
Clones one native control from an .rplib library into a target .rp page, using session chaining or explicit source and output paths.
Instructions
从 .rplib 克隆单个原生控件到目标 .rp 页面。具名调用省略宿主源/输出即使用会话链;原始 args 用 session:true 并省略这两个参数(多源工具保留导入源)。显式路径不推进链。 登记证据 gui-roundtrip,只适用 capabilities.md 的已验样本。CLI: node clone-library-widget.mjs <source.rplib> <target.rp> <output.rp> [--x N --y N --w N --h N]
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": "clone_library_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | ||
| session | No | true 时 args 省略宿主源和输出,由当前链注入;多源工具仍传导入源。 |