GetCameraCapabilitiesTool

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).

Result keys: cameras (list of maps with id, facing (front/back/external/unknown), flash_available, max_resolution like "4032x3024"), count.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult