validate_vhal_property_request
Determines whether a requested vHAL property exists in Android and recommends using the existing property or creating a VENDOR_ property with proper naming.
Instructions
Validate vHAL property request and recommend using existing Android property or creating VENDOR_ property.
This tool follows Android best practices: check if a property already exists in the latest Android release
(currently Android 16) and either recommend using the existing property or generate a new VENDOR_ property
with proper naming convention.
Args:
property_name: Requested property name (e.g., "SEAT_MASSAGE_INTENSITY")
property_description: Description of what the property does
property_type: Data type (BOOLEAN, INT32, INT64, FLOAT, STRING, BYTES, *_VEC, MIXED) - default: INT32
group: Property group (HVAC, SEAT, LIGHTS, POWER, VENDOR, etc.) - default: VENDOR
access: Access mode (READ, WRITE, READ_WRITE) - default: READ_WRITE
change_mode: Change mode (STATIC, ON_CHANGE, CONTINUOUS) - default: ON_CHANGE
units: Optional units (e.g., "celsius", "rpm")
min_value: Optional minimum value for numeric types
max_value: Optional maximum value for numeric types
areas: Optional list of vehicle areas/zones
enum_values: Optional dict of enum names and values for INT32 enum properties
dependencies: Optional list of dependent property names
sample_rate_hz: Optional sample rate for continuous properties
android_version: Android version to check against (default: android16)
Returns:
Comprehensive validation result with recommendations and implementation guidance
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| areas | No | ||
| group | No | VENDOR | |
| units | No | ||
| access | No | READ_WRITE | |
| max_value | No | ||
| min_value | No | ||
| change_mode | No | ON_CHANGE | |
| enum_values | No | ||
| dependencies | No | ||
| property_name | Yes | ||
| property_type | No | INT32 | |
| sample_rate_hz | No | ||
| android_version | No | ||
| property_description | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |