camera_add
Add a Camera2D or Camera3D node to a Godot scene, specifying parent path and optionally making it the active camera.
Instructions
Add a camera node to a scene.
Category: Camera
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) parent_node_path: Path to the parent node camera_name: Name for the new camera node camera_type: Type of camera (Camera2D or Camera3D, default: Camera2D) make_current: Whether to make this the current/active camera (default: True)
Returns: Success message or error description
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": {
"project_path": "<project_path>",
"scene_path": "<scene_path>",
"parent_node_path": "<parent_node_path>",
"camera_name": "<camera_name>"
},
"name": "camera_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| parent_node_path | Yes | ||
| camera_name | Yes | ||
| camera_type | No | Camera2D | |
| make_current | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |