Skip to main content
POST
/
camera
/
focus
focus camera on a specific entity
curl --request POST \
  --url http://localhost:3917/camera/focus \
  --header 'Content-Type: application/json' \
  --data '{
  "entity_id": 1
}'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

entity_id to frame. The camera targets the entity and pulls to a clamped 5–20 unit distance along the current view direction.

The body is of type any.

Response

200 - application/json

Camera focused on the entity; ok is false with a message when entity_id is missing or the entity is not found.

ok
boolean
required
message
string | null