create_cop_node
Create a COP node under a Copernicus parent, ensuring the parent is editable and the node type exists in the Cop registry. Optionally set a node name, all within one undo group.
Instructions
在 Copernicus parent 下创建节点(add-cops-tools,MUTATING)。
校验 parent 可编辑且 child category 为 "Cop",node_type 必须在 Cop
registry 中存在;单 undo group。``node_name`` 可选。
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": {
"ctx": "<ctx>",
"parent_path": "<parent_path>",
"node_type": "<node_type>"
},
"name": "create_cop_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| node_name | No | ||
| node_type | Yes | ||
| parent_path | Yes |