camera_set_properties
Modify camera properties including zoom, offset, field of view, and clipping planes for 2D or 3D cameras in Godot.
Instructions
Set properties for a camera.
Category: Camera
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) camera_path: Path to the camera node zoom: Zoom level as JSON array [x, y] (Camera2D only) offset: Offset as JSON array [x, y] (Camera2D) or [x, y, z] (Camera3D) fov: Field of view in degrees (Camera3D only, default: 75) near: Near clipping plane distance (Camera3D only, default: 0.05) far: Far clipping plane distance (Camera3D only, default: 4000)
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>",
"camera_path": "<camera_path>"
},
"name": "camera_set_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| camera_path | Yes | ||
| zoom | No | ||
| offset | No | ||
| fov | No | ||
| near | No | ||
| far | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |