AgentSkillsCN

camera-skill

控制 Android 相机——获取相机信息、拍摄照片,以及访问相机的各项功能。

SKILL.md
--- frontmatter
name: camera-skill
description: Control Android camera - get camera info, take photos, and access camera capabilities.
allowed-tools: camera_control
metadata:
  author: machina
  version: "1.0"
  category: android
  icon: "📷"
  color: "#EC4899"

Camera Control Tool

Control camera on Android device.

How It Works

This skill provides instructions for the Camera Control tool node. Connect the Camera Control node to Zeenie's input-tools handle to enable camera control.

camera_control Tool

Access camera and capture photos.

Schema Fields

FieldTypeRequiredDescription
actionstringYesAction to perform (see below)
parametersobjectNoAdditional parameters

Actions

ActionDescription
statusGet camera info and capabilities
captureTake a photo

Examples

Get camera info:

json
{
  "action": "status"
}

Take a photo:

json
{
  "action": "capture"
}

Capture with front camera:

json
{
  "action": "capture",
  "parameters": {
    "camera": "front"
  }
}

Response Formats

Status response:

json
{
  "success": true,
  "service": "camera_control",
  "action": "status",
  "data": {
    "cameras": [
      {
        "id": "0",
        "facing": "back",
        "megapixels": 48,
        "has_flash": true,
        "supports_video": true
      },
      {
        "id": "1",
        "facing": "front",
        "megapixels": 12,
        "has_flash": false,
        "supports_video": true
      }
    ],
    "flash_available": true
  }
}

Capture response:

json
{
  "success": true,
  "service": "camera_control",
  "action": "capture",
  "data": {
    "photo_path": "/storage/emulated/0/DCIM/Camera/IMG_20250130_120000.jpg",
    "camera_used": "back",
    "resolution": "4000x3000",
    "timestamp": "2025-01-30T12:00:00Z"
  }
}

Response Fields

FieldDescription
camerasList of available cameras
facing"back" or "front"
megapixelsCamera resolution
has_flashFlash available
photo_pathPath to captured photo

Use Cases

Use CaseActionDescription
Check camerasstatusGet camera capabilities
Take photocaptureCapture image
Selfiecapture (front)Use front camera
DocumentcaptureCapture document/scene

Common Workflows

Quick photo capture

  1. Optionally check camera status
  2. Capture photo
  3. Photo saved to device gallery

Automated documentation

  1. Trigger (time/event based)
  2. Capture photo
  3. Process/send photo

Setup Requirements

  1. Connect the Camera Control node to Zeenie's input-tools handle
  2. Android device must be paired
  3. Camera permission must be granted
  4. Storage permission for saving photos