set_viewport_camera
Sets the SceneViewer viewport camera to the specified camera node path. Requires an existing camera node; invalid paths return camera_not_found.
Instructions
设置 SceneViewer viewport camera(add-viewport-control-tools,NO_UNDO)。
``camera_path`` 必须是已存在节点;无效返 ``camera_not_found``。
仅 UI/view 写,**不**进 undo group。响应过 server 端
``apply_response_cap``。
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>",
"camera_path": "<camera_path>"
},
"name": "set_viewport_camera"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| camera_path | Yes |