Package-level declarations

Types

Link copied to clipboard

Provider for the camera module: GetCameraCapabilitiesTool, TakePhotoTool, and CaptureVideoTool. Headless Camera2-based capture; the back camera is preferred when present. Requires camera hardware (the manifest marks the feature non-required).

Link copied to clipboard
class CaptureVideoTool(context: Context) : McpTool

Records an H.264/MP4 video (video only — no audio track) for duration_sec seconds (clamped 1–60, default 10) via Camera2 + MediaRecorder, preferring the back-facing camera, then copies the file into MediaStore under Movies/droid-mcp.

Link copied to clipboard

Enumerates the device's cameras via Camera2 CameraManager, reporting each camera's id, lens facing, flash availability, and maximum JPEG output resolution. Querying characteristics needs no runtime permission; requires camera hardware (the manifest marks the camera feature non-required).

Link copied to clipboard
class TakePhotoTool(context: Context) : McpTool

Captures a still JPEG headlessly (no on-screen preview) via Camera2, preferring the back-facing camera at its maximum JPEG resolution, then saves it to MediaStore under Pictures/droid-mcp.