unreal_set_viewport_camera
Position the Unreal editor viewport camera at a specified location and rotation to frame a shot before capturing a screenshot.
Instructions
Move the editor's perspective viewport camera to a specific pose.
Affects only the editor view, not any CameraActor in the level and no saved
project data. Pair with unreal_take_screenshot to capture a chosen angle.
Args: params (ViewportCameraInput): Validated input containing: - location (list[float]): Camera position [X, Y, Z] in cm - rotation (list[float]): Camera orientation [pitch, yaw, roll] degrees
Returns: str: JSON with the camera pose actually applied: { "location": [float, float, float], "rotation": [float, float, float] } On failure: "Error: "
Examples: - Use when: framing a shot before unreal_take_screenshot - Don't use when: you want a camera the level keeps (spawn a CameraActor)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |