Skip to content

Self-improving AI Employees for everyone

1.8 KB
Raw Blame

Camera Control (cameraControl)

Field Value
Category android / media
Backend handler plugin server/nodes/android/camera_control/__init__.py; dispatch via BaseNode.execute() -> shared AndroidServiceBase.invoke (@Operation("invoke"))
Tests server/tests/nodes/test_android.py
Skill (if any) server/skills/android_agent/camera-skill/SKILL.md
Direct agent tool connectable to any agent's input-tools

Purpose

Camera inspection and capture: enumerate cameras, describe capabilities, take photos.

Backend service mapping

Field Value
SERVICE_ID_MAP[cameraControl] camera_control
Default action camera_info

Parameters

Shared parameter set only.

Logic Flow (node-specific slice)

flowchart TD
  A[Dispatch] --> B[service_id = 'camera_control']
  B --> C{action}
  C -- camera_info --> D[POST /api/camera_control]
  C -- take_photo --> D
  C -- capabilities --> D
  D --> E[Flatten data: cameras, photo_path, capabilities]

Edge cases & known limits

  • take_photo requires the CAMERA runtime permission on the device; the device-side service returns success=false with the permission error if missing.
  • Photo paths returned by the device are relative to the device's filesystem, not the host.
  • Shared edge cases only otherwise.

Related