set_property
Modify component, decorator, or field properties of existing ELN template components. Specify property key, path, and type to update attributes like placeholder, title, or required.
Instructions
修改已添加组件的属性。可设置任意 x-component-props 或 x-decorator-props 字段。 属性名映射请参考 Skill 文件: formily-schema-guide.md
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": {
"path": "<path>",
"propType": "<propType>",
"key": "<key>"
},
"name": "set_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | 属性名,如 "placeholder", "size", "title", "required" | |
| path | Yes | 组件路径,如 "card1.sampleNo"。可通过 list_components 查询 | |
| value | No | 属性值 | |
| propType | Yes | 属性类别: component=x-component-props, decorator=x-decorator-props, field=字段级属性(title, required 等) |