set_loc
Sets an object's x/y/z coordinates by writing its spatial node, enabling layout of created objects that otherwise stack at the origin.
Instructions
如未先读操作指南,请先调用 get_guide。设置对象坐标(x/y/z)。通过写入对象 spatial 节点实现,不依赖模型侧 set_loc handler(只装 4 个基础 handler 即可用)。注意:多个对象创建后默认堆叠在原点 (0,0,0),创建后必须用本工具排布位置(如产线按 x=0,5,10,15 一字排开)。
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": {
"object": "<object>",
"x": "<x>",
"y": "<y>",
"z": "<z>"
},
"name": "set_loc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X 坐标 | |
| y | Yes | Y 坐标 | |
| z | Yes | Z 坐标 | |
| object | Yes | 对象名 |