get_viewport_camera
Retrieve the active editor viewport camera's position and rotation as Euler angles in JSON, enabling automation of O3DE editor views.
Instructions
Get the position and rotation of the active editor viewport camera.
Returns JSON with position (3 floats) and rotation (3 Euler
angles in degrees). FOV is not available via the Python bindings.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_viewport_camera"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |