{ "trajectory_id": "task_01591602_reference", "world_id": "task_01591602", "task_id": "task_01591602", "source": "ground_truth", "records": [ { "kind": "tool_exchange", "call": { "call_id": "call_1", "turn_id": "turn_1", "command": { "target": "session", "function": "get_device_tools", "parameters": { "device_id": "alarm_1" } } }, "result": { "call_id": "call_1", "turn_id": "turn_1", "sequence": 1, "status": "success", "code": "[PASS]", "data": { "device_id": "alarm_1", "tools": [ { "function": "add_alarm", "description": "Add an alarm with the supplied hour, minute, label, weekdays, and optional enabled state. The system generates and returns a new stable string ID without changing existing records. Hour must be 0 through 23, minute must be 0 through 59, the label must contain 1 through 80 characters, and weekdays must contain no duplicate values outside 1 through 7. An empty weekdays list represents a one-time configuration. Invalid arguments leave the collection unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "hour": { "type": "integer", "minimum": 0, "maximum": 23, "examples": [ 7, 12, 21 ] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59, "examples": [ 0, 15, 45 ] }, "label": { "type": "string", "minLength": 1, "maxLength": 80, "examples": [ "Morning", "School pickup", "Medication" ] }, "weekdays": { "type": "array", "minItems": 0, "uniqueItems": true, "items": { "type": "integer", "minimum": 1, "maximum": 7 }, "examples": [ [], [ 1, 2, 3, 4, 5 ], [ 6, 7 ] ] }, "enabled": { "type": "boolean", "default": false, "examples": [ true, false ] } }, "required": [ "hour", "minute", "label", "weekdays" ], "additionalProperties": false }, "reads": [ "alarms" ], "writes": [ "alarms" ], "semantics": { "kind": "collection_add", "property": "alarms", "fields": { "hour": { "parameter": "hour" }, "minute": { "parameter": "minute" }, "label": { "parameter": "label" }, "weekdays": { "parameter": "weekdays" }, "enabled": { "parameter": "enabled" } }, "response_key": "alarm_id", "preconditions": {} } }, { "function": "get_alarm", "description": "Return the complete alarm record identified by alarm_id without changing state. The operation fails if the alarm ID does not exist.", "mutation": false, "parameters_schema": { "type": "object", "properties": { "alarm_id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "examples": [ "alarm_1", "alarm_2" ] } }, "required": [ "alarm_id" ], "additionalProperties": false }, "reads": [ "alarms" ], "writes": [], "semantics": { "kind": "collection_read", "property": "alarms", "id_parameter": "alarm_id", "response_key": "alarm", "preconditions": { "alarms": { "contains_key": { "parameter": "alarm_id" } } } } }, { "function": "update_alarm", "description": "Partially update an existing alarm. At least one of hour, minute, label, or weekdays must be supplied in addition to alarm_id. Omitted fields retain their previous values, enabled state is unchanged, and unrelated records are preserved. An empty weekdays list represents a one-time configuration. An unknown ID or any invalid supplied value leaves the collection unchanged.", "mutation": true, "parameters_schema": { "type": "object", "minProperties": 2, "properties": { "alarm_id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "examples": [ "alarm_1", "alarm_2" ] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23, "examples": [ 6, 14, 22 ] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59, "examples": [ 0, 30, 55 ] }, "label": { "type": "string", "minLength": 1, "maxLength": 80, "examples": [ "Early meeting", "Medication" ] }, "weekdays": { "type": "array", "minItems": 0, "uniqueItems": true, "items": { "type": "integer", "minimum": 1, "maximum": 7 }, "examples": [ [], [ 1, 3, 5 ] ] } }, "required": [ "alarm_id" ], "additionalProperties": false }, "reads": [ "alarms" ], "writes": [ "alarms" ], "semantics": { "kind": "collection_update", "property": "alarms", "id_parameter": "alarm_id", "fields": { "hour": { "parameter": "hour" }, "minute": { "parameter": "minute" }, "label": { "parameter": "label" }, "weekdays": { "parameter": "weekdays" } }, "response_key": "updated_alarm", "preconditions": { "alarms": { "contains_key": { "parameter": "alarm_id" } } } } }, { "function": "remove_alarm", "description": "Delete the alarm identified by alarm_id while preserving every unrelated alarm record. An unknown ID causes the operation to fail without changing the collection.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "alarm_id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "examples": [ "alarm_1", "alarm_2" ] } }, "required": [ "alarm_id" ], "additionalProperties": false }, "reads": [ "alarms" ], "writes": [ "alarms" ], "semantics": { "kind": "collection_delete", "property": "alarms", "id_parameter": "alarm_id", "response_key": "removed_alarm_id", "preconditions": { "alarms": { "contains_key": { "parameter": "alarm_id" } } } } }, { "function": "enable_alarm", "description": "Set enabled to true for the alarm identified by alarm_id. All other fields and unrelated records remain unchanged. An unknown ID leaves the collection unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "alarm_id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "examples": [ "alarm_1", "alarm_2" ] } }, "required": [ "alarm_id" ], "additionalProperties": false }, "reads": [ "alarms" ], "writes": [ "alarms" ], "semantics": { "kind": "collection_update", "property": "alarms", "id_parameter": "alarm_id", "fields": { "enabled": { "value": true } }, "response_key": "enabled_alarm", "preconditions": { "alarms": { "contains_key": { "parameter": "alarm_id" } } } } }, { "function": "disable_alarm", "description": "Set enabled to false for the alarm identified by alarm_id. All other fields and unrelated records remain unchanged. An unknown ID leaves the collection unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "alarm_id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "examples": [ "alarm_1", "alarm_2" ] } }, "required": [ "alarm_id" ], "additionalProperties": false }, "reads": [ "alarms" ], "writes": [ "alarms" ], "semantics": { "kind": "collection_update", "property": "alarms", "id_parameter": "alarm_id", "fields": { "enabled": { "value": false } }, "response_key": "disabled_alarm", "preconditions": { "alarms": { "contains_key": { "parameter": "alarm_id" } } } } } ] }, "mutation_committed": false, "audit_sequence": 1 } }, { "kind": "tool_exchange", "call": { "call_id": "call_2", "turn_id": "turn_1", "command": { "target": "session", "function": "get_device_tools", "parameters": { "device_id": "bluetooth_1" } } }, "result": { "call_id": "call_2", "turn_id": "turn_1", "sequence": 2, "status": "success", "code": "[PASS]", "data": { "device_id": "bluetooth_1", "tools": [ { "function": "get_enabled", "description": "Return whether Bluetooth is currently enabled.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "enabled" ], "writes": [], "semantics": { "kind": "read", "property": "enabled", "response_key": "enabled", "preconditions": {} } }, { "function": "set_enabled", "description": "Enable or disable Bluetooth. Enabling is rejected when radio_allowed is false. Disabling immediately removes every active connection while preserving all pairing records. Invalid or blocked requests leave all state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "The desired Bluetooth enabled state.", "examples": [ true, false ] } }, "required": [ "enabled" ], "additionalProperties": false }, "reads": [ "radio_allowed", "active_connections" ], "writes": [ "enabled", "active_connections" ], "semantics": { "kind": "set", "property": "enabled", "parameter": "enabled", "preconditions": {} } }, { "function": "get_radio_allowed", "description": "Return whether the effective airplane-mode policy currently permits Bluetooth radio use.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "radio_allowed" ], "writes": [], "semantics": { "kind": "read", "property": "radio_allowed", "response_key": "radio_allowed", "preconditions": {} } }, { "function": "scan", "description": "Return the deterministic simulated nearby-device dictionary. Bluetooth must be enabled and permitted by airplane-mode policy. Scanning does not pair or connect any device and does not change state.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "enabled", "radio_allowed", "nearby_devices" ], "writes": [], "semantics": { "kind": "read", "property": "nearby_devices", "response_key": "nearby_devices", "preconditions": { "enabled": true, "radio_allowed": true } } }, { "function": "get_paired_devices", "description": "Return all persistent Bluetooth pairing records keyed by stable device ID. Pairing records remain available when Bluetooth is disabled.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "paired_devices" ], "writes": [], "semantics": { "kind": "read", "property": "paired_devices", "response_key": "paired_devices", "preconditions": {} } }, { "function": "get_active_connections", "description": "Return all active Bluetooth connection records keyed by paired device ID.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "active_connections" ], "writes": [], "semantics": { "kind": "read", "property": "active_connections", "response_key": "active_connections", "preconditions": {} } }, { "function": "get_supported_profiles", "description": "Return the read-only dictionary of Bluetooth profiles supported by this simulated phone.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "supported_profiles" ], "writes": [], "semantics": { "kind": "read", "property": "supported_profiles", "response_key": "supported_profiles", "preconditions": {} } }, { "function": "get_connection_capacity", "description": "Return the read-only maximum number of simultaneous connected device records supported by this simulation.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "connection_capacity" ], "writes": [], "semantics": { "kind": "read", "property": "connection_capacity", "response_key": "connection_capacity", "preconditions": {} } }, { "function": "request_pairing", "description": "Request pairing with a simulated nearby device. Bluetooth must be enabled and permitted, and device_id must identify a nearby device. A record whose pairing_confirmation is denied causes a deterministic rejection and no state change. An accepted request creates or preserves the pairing under the same stable device ID without connecting it or changing unrelated records.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "device_id": { "type": "string", "description": "Stable ID of an existing simulated nearby device.", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128, "examples": [ "headphones_1", "keyboard_1", "speaker_denied" ] } }, "required": [ "device_id" ], "additionalProperties": false }, "reads": [ "enabled", "radio_allowed", "nearby_devices", "paired_devices" ], "writes": [ "paired_devices" ], "semantics": { "kind": "custom", "reason": "Pairing must preserve the nearby device's stable ID, copy selected record fields, and conditionally reject the request according to that record's deterministic confirmation outcome.", "preconditions": { "enabled": true, "radio_allowed": true, "nearby_devices": { "contains_key": { "parameter": "device_id" } } } } }, { "function": "unpair", "description": "Remove one existing pairing record by stable device ID and remove that device's active connection if present. Every unrelated pairing and connection record is preserved. An unknown ID is rejected without changing state.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "device_id": { "type": "string", "description": "Stable ID of an existing paired device.", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128, "examples": [ "headphones_1", "keyboard_1" ] } }, "required": [ "device_id" ], "additionalProperties": false }, "reads": [ "paired_devices", "active_connections" ], "writes": [ "paired_devices", "active_connections" ], "semantics": { "kind": "custom", "reason": "Unpairing atomically deletes the selected pairing and conditionally deletes the matching active connection while preserving all unrelated records.", "preconditions": { "paired_devices": { "contains_key": { "parameter": "device_id" } } } } }, { "function": "connect", "description": "Connect one paired device using a supported profile. Bluetooth must be enabled and permitted. The device must be paired, the profile must be supported by both the phone and that device, and the active connected-device count must remain within connection_capacity. Repeating the same device and profile is idempotent. A failed request leaves every connection unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "device_id": { "type": "string", "description": "Stable ID of an existing paired device.", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128, "examples": [ "headphones_1", "keyboard_1" ] }, "profile": { "type": "string", "description": "Bluetooth profile to activate for the connection.", "enum": [ "audio", "input" ], "examples": [ "audio", "input" ] } }, "required": [ "device_id", "profile" ], "additionalProperties": false }, "reads": [ "enabled", "radio_allowed", "paired_devices", "active_connections", "supported_profiles", "connection_capacity" ], "writes": [ "active_connections" ], "semantics": { "kind": "custom", "reason": "Connection creation must validate phone and device profile support, enforce capacity across the active connection collection, and store the result under the paired device's stable ID.", "preconditions": { "enabled": true, "radio_allowed": true, "paired_devices": { "contains_key": { "parameter": "device_id" } }, "supported_profiles": { "contains_key": { "parameter": "profile" } } } } }, { "function": "disconnect", "description": "Disconnect one actively connected device by stable device ID. The pairing record and every unrelated connection are preserved. An unknown active connection ID is rejected without changing state.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "device_id": { "type": "string", "description": "Stable ID of an actively connected device.", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128, "examples": [ "headphones_1", "keyboard_1" ] } }, "required": [ "device_id" ], "additionalProperties": false }, "reads": [ "active_connections" ], "writes": [ "active_connections" ], "semantics": { "kind": "collection_delete", "property": "active_connections", "id_parameter": "device_id", "preconditions": { "active_connections": { "contains_key": { "parameter": "device_id" } } } } } ] }, "mutation_committed": false, "audit_sequence": 2 } }, { "kind": "tool_exchange", "call": { "call_id": "call_3", "turn_id": "turn_1", "command": { "target": "session", "function": "get_device_tools", "parameters": { "device_id": "display_1" } } }, "result": { "call_id": "call_3", "turn_id": "turn_1", "sequence": 3, "status": "success", "code": "[PASS]", "data": { "device_id": "display_1", "tools": [ { "function": "get_brightness", "description": "Return the configured display brightness percentage without changing any setting.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "brightness" ], "writes": [], "semantics": { "kind": "read", "property": "brightness", "response_key": "brightness", "preconditions": {} } }, { "function": "set_brightness", "description": "Set display brightness to a whole-number percentage from 0 through 100. Invalid values are rejected and leave all settings unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "integer", "minimum": 0, "maximum": 100, "multipleOf": 1, "examples": [ 0, 25, 50, 100 ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "brightness" ], "semantics": { "kind": "set", "property": "brightness", "parameter": "value", "preconditions": {} } }, { "function": "get_automatic_brightness", "description": "Return whether automatic brightness adjustment is enabled without changing any setting.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "automatic_brightness" ], "writes": [], "semantics": { "kind": "read", "property": "automatic_brightness", "response_key": "automatic_brightness", "preconditions": {} } }, { "function": "set_automatic_brightness", "description": "Enable or disable automatic brightness adjustment. This changes only the automatic brightness setting.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "boolean", "examples": [ true, false ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "automatic_brightness" ], "semantics": { "kind": "set", "property": "automatic_brightness", "parameter": "value", "preconditions": {} } }, { "function": "get_dark_mode", "description": "Return whether dark mode is enabled without changing any setting.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "dark_mode" ], "writes": [], "semantics": { "kind": "read", "property": "dark_mode", "response_key": "dark_mode", "preconditions": {} } }, { "function": "set_dark_mode", "description": "Enable or disable dark mode. This changes only the dark mode setting.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "boolean", "examples": [ true, false ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "dark_mode" ], "semantics": { "kind": "set", "property": "dark_mode", "parameter": "value", "preconditions": {} } }, { "function": "get_screen_off_timeout_minutes", "description": "Return the configured screen-off timeout as one of the supported minute values: 1, 2, 5, or 10.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "screen_off_timeout_minutes" ], "writes": [], "semantics": { "kind": "read", "property": "screen_off_timeout_minutes", "response_key": "screen_off_timeout_minutes", "preconditions": {} } }, { "function": "set_screen_off_timeout_minutes", "description": "Set the screen-off timeout to exactly 1, 2, 5, or 10 minutes. Unsupported values are rejected and leave all settings unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "string", "enum": [ "1", "2", "5", "10" ], "examples": [ "1", "2", "5", "10" ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "screen_off_timeout_minutes" ], "semantics": { "kind": "set", "property": "screen_off_timeout_minutes", "parameter": "value", "preconditions": {} } } ] }, "mutation_committed": false, "audit_sequence": 3 } }, { "kind": "tool_exchange", "call": { "call_id": "call_4", "turn_id": "turn_1", "command": { "target": "session", "function": "get_device_tools", "parameters": { "device_id": "focus_1" } } }, "result": { "call_id": "call_4", "turn_id": "turn_1", "sequence": 4, "status": "success", "code": "[PASS]", "data": { "device_id": "focus_1", "tools": [ { "function": "add_rule", "description": "Add a focus rule and return its new stable synthetic ID. The name is user data. Priority is fixed for the lifetime of the rule and is used only to resolve simultaneous scheduled rules. Timezone must be a valid IANA time-zone identifier available to the simulation. Invalid input creates no record. After insertion, the effective policy is immediately reevaluated.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80, "examples": [ "Project deadline", "Quiet evenings" ] }, "enabled": { "type": "boolean", "description": "Whether the rule is eligible for manual activation and scheduled selection." }, "priority": { "type": "integer", "minimum": 0, "maximum": 100, "multipleOf": 1, "description": "Immutable conflict priority; larger values win." }, "allowed_applications": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true, "maxItems": 64 }, "allowed_categories": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 64 }, "uniqueItems": true, "maxItems": 32 }, "allowed_contacts": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true, "maxItems": 64 }, "allow_repeat_callers": { "type": "boolean" }, "schedule_enabled": { "type": "boolean" }, "start_time": { "type": "string", "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$", "examples": [ "09:00", "22:30" ] }, "end_time": { "type": "string", "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$", "examples": [ "17:00", "07:00" ] }, "timezone": { "type": "string", "minLength": 1, "maxLength": 64, "examples": [ "UTC", "Europe/London", "Asia/Tokyo" ] }, "repeat_days": { "type": "array", "items": { "type": "string", "enum": [ "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday" ] }, "minItems": 1, "maxItems": 7, "uniqueItems": true } }, "required": [ "name", "enabled", "priority", "allowed_applications", "allowed_categories", "allowed_contacts", "allow_repeat_callers", "schedule_enabled", "start_time", "end_time", "timezone", "repeat_days" ], "additionalProperties": false }, "reads": [ "rules", "manual_override_rule_id" ], "writes": [ "rules", "effective_rule_id", "effective_source", "effective_policy" ], "semantics": { "kind": "collection_add", "property": "rules", "response_key": "rule_id", "fields": { "name": { "parameter": "name" }, "enabled": { "parameter": "enabled" }, "priority": { "parameter": "priority" }, "allowed_applications": { "parameter": "allowed_applications" }, "allowed_categories": { "parameter": "allowed_categories" }, "allowed_contacts": { "parameter": "allowed_contacts" }, "allow_repeat_callers": { "parameter": "allow_repeat_callers" }, "schedule_enabled": { "parameter": "schedule_enabled" }, "start_time": { "parameter": "start_time" }, "end_time": { "parameter": "end_time" }, "timezone": { "parameter": "timezone" }, "repeat_days": { "parameter": "repeat_days" } }, "preconditions": {} } }, { "function": "get_rule", "description": "Return one focus rule by stable ID without changing focus state. An unknown ID is rejected.", "mutation": false, "parameters_schema": { "type": "object", "properties": { "rule_id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128, "examples": [ "rule_1" ] } }, "required": [ "rule_id" ], "additionalProperties": false }, "reads": [ "rules" ], "writes": [], "semantics": { "kind": "collection_read", "property": "rules", "id_parameter": "rule_id", "response_key": "rule", "preconditions": { "rules": { "contains_key": { "parameter": "rule_id" } } } } }, { "function": "update_rule", "description": "Partially update an existing focus rule. Omitted fields remain unchanged, and immutable priority cannot be changed. Disabling the manually selected rule causes immediate reevaluation to clear that override and select the current scheduled rule, if any. Timezone must be a valid supported IANA identifier. Invalid input or an unknown ID leaves all state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "rule_id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128 }, "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "enabled": { "type": "boolean" }, "allowed_applications": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true, "maxItems": 64 }, "allowed_categories": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 64 }, "uniqueItems": true, "maxItems": 32 }, "allowed_contacts": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true, "maxItems": 64 }, "allow_repeat_callers": { "type": "boolean" }, "schedule_enabled": { "type": "boolean" }, "start_time": { "type": "string", "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" }, "end_time": { "type": "string", "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" }, "timezone": { "type": "string", "minLength": 1, "maxLength": 64, "examples": [ "UTC", "America/New_York" ] }, "repeat_days": { "type": "array", "items": { "type": "string", "enum": [ "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday" ] }, "minItems": 1, "maxItems": 7, "uniqueItems": true } }, "required": [ "rule_id" ], "additionalProperties": false }, "reads": [ "rules", "manual_override_rule_id" ], "writes": [ "rules", "manual_override_rule_id", "effective_rule_id", "effective_source", "effective_policy" ], "semantics": { "kind": "collection_update", "property": "rules", "id_parameter": "rule_id", "fields": { "name": { "parameter": "name" }, "enabled": { "parameter": "enabled" }, "allowed_applications": { "parameter": "allowed_applications" }, "allowed_categories": { "parameter": "allowed_categories" }, "allowed_contacts": { "parameter": "allowed_contacts" }, "allow_repeat_callers": { "parameter": "allow_repeat_callers" }, "schedule_enabled": { "parameter": "schedule_enabled" }, "start_time": { "parameter": "start_time" }, "end_time": { "parameter": "end_time" }, "timezone": { "parameter": "timezone" }, "repeat_days": { "parameter": "repeat_days" } }, "preconditions": { "rules": { "contains_key": { "parameter": "rule_id" } } } } }, { "function": "delete_rule", "description": "Delete an existing focus rule while preserving every other rule. If the deleted rule supplied the manual override or effective policy, immediate reevaluation clears that reference and selects the current scheduled winner, if any.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "rule_id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128 } }, "required": [ "rule_id" ], "additionalProperties": false }, "reads": [ "rules", "manual_override_rule_id" ], "writes": [ "rules", "manual_override_rule_id", "effective_rule_id", "effective_source", "effective_policy" ], "semantics": { "kind": "collection_delete", "property": "rules", "id_parameter": "rule_id", "preconditions": { "rules": { "contains_key": { "parameter": "rule_id" } } } } }, { "function": "activate_rule_manually", "description": "Manually activate an existing enabled rule. The selected rule immediately overrides every scheduled rule until the override is cleared. An unknown or disabled rule is rejected and leaves all state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "rule_id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128 } }, "required": [ "rule_id" ], "additionalProperties": false }, "reads": [ "rules", "manual_override_rule_id" ], "writes": [ "manual_override_rule_id", "effective_rule_id", "effective_source", "effective_policy" ], "semantics": { "kind": "update", "fields": { "manual_override_rule_id": { "parameter": "rule_id" } }, "preconditions": { "rules": { "contains_key": { "parameter": "rule_id" } } } } }, { "function": "clear_manual_override", "description": "End the current manual override by clearing its rule ID. The operation is idempotent when no override exists, and the effective policy is immediately reevaluated from the current wall-clock schedules.", "mutation": true, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "rules", "manual_override_rule_id" ], "writes": [ "manual_override_rule_id", "effective_rule_id", "effective_source", "effective_policy" ], "semantics": { "kind": "update", "fields": { "manual_override_rule_id": { "value": "" } }, "preconditions": {} } }, { "function": "get_manual_override_rule_id", "description": "Return the stable ID selected as the manual override, or an empty string when no manual override exists.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "manual_override_rule_id" ], "writes": [], "semantics": { "kind": "read", "property": "manual_override_rule_id", "response_key": "manual_override_rule_id", "preconditions": {} } }, { "function": "get_effective_rule_id", "description": "Return the stable ID of the rule currently supplying the effective policy, or an empty string if no rule is active.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "effective_rule_id" ], "writes": [], "semantics": { "kind": "read", "property": "effective_rule_id", "response_key": "effective_rule_id", "preconditions": {} } }, { "function": "get_effective_source", "description": "Return whether the effective focus policy comes from a manual override, a schedule, or no active rule.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "effective_source" ], "writes": [], "semantics": { "kind": "read", "property": "effective_source", "response_key": "effective_source", "preconditions": {} } }, { "function": "get_effective_policy", "description": "Return the currently resolved interruption exceptions. The returned dictionary is empty when no focus rule is active.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "effective_policy" ], "writes": [], "semantics": { "kind": "read", "property": "effective_policy", "response_key": "effective_policy", "preconditions": {} } } ] }, "mutation_committed": false, "audit_sequence": 4 } }, { "kind": "tool_exchange", "call": { "call_id": "call_5", "turn_id": "turn_1", "command": { "target": "session", "function": "get_device_tools", "parameters": { "device_id": "sound_1" } } }, "result": { "call_id": "call_5", "turn_id": "turn_1", "sequence": 5, "status": "success", "code": "[PASS]", "data": { "device_id": "sound_1", "tools": [ { "function": "get_media_volume", "description": "Return the independent media volume percentage.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "media_volume" ], "writes": [], "semantics": { "kind": "read", "property": "media_volume", "response_key": "media_volume", "preconditions": {} } }, { "function": "set_media_volume", "description": "Set media volume to a whole percentage from 0 through 100. No other volume stream changes. Invalid values leave all state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "integer", "minimum": 0, "maximum": 100, "multipleOf": 1, "examples": [ 0, 50, 100 ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "media_volume" ], "semantics": { "kind": "set", "property": "media_volume", "parameter": "value", "preconditions": {} } }, { "function": "get_ringtone_volume", "description": "Return the independent ringtone volume percentage.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "ringtone_volume" ], "writes": [], "semantics": { "kind": "read", "property": "ringtone_volume", "response_key": "ringtone_volume", "preconditions": {} } }, { "function": "set_ringtone_volume", "description": "Set ringtone volume to a whole percentage from 0 through 100. Notification, media, and alarm volumes remain unchanged. Invalid values leave all state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "integer", "minimum": 0, "maximum": 100, "multipleOf": 1, "examples": [ 0, 70, 100 ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "ringtone_volume" ], "semantics": { "kind": "set", "property": "ringtone_volume", "parameter": "value", "preconditions": {} } }, { "function": "get_notification_volume", "description": "Return the independent notification volume percentage.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "notification_volume" ], "writes": [], "semantics": { "kind": "read", "property": "notification_volume", "response_key": "notification_volume", "preconditions": {} } }, { "function": "set_notification_volume", "description": "Set notification volume to a whole percentage from 0 through 100. Ringtone, media, and alarm volumes remain unchanged. Invalid values leave all state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "integer", "minimum": 0, "maximum": 100, "multipleOf": 1, "examples": [ 0, 70, 100 ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "notification_volume" ], "semantics": { "kind": "set", "property": "notification_volume", "parameter": "value", "preconditions": {} } }, { "function": "get_alarm_volume", "description": "Return the independent alarm volume percentage.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "alarm_volume" ], "writes": [], "semantics": { "kind": "read", "property": "alarm_volume", "response_key": "alarm_volume", "preconditions": {} } }, { "function": "set_alarm_volume", "description": "Set alarm volume to a whole percentage from 0 through 100. Media, ringtone, and notification volumes remain unchanged. Invalid values leave all state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "integer", "minimum": 0, "maximum": 100, "multipleOf": 1, "examples": [ 0, 80, 100 ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "alarm_volume" ], "semantics": { "kind": "set", "property": "alarm_volume", "parameter": "value", "preconditions": {} } }, { "function": "get_ringer_mode", "description": "Return the current ringer mode without changing stored stream volumes.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "ringer_mode" ], "writes": [], "semantics": { "kind": "read", "property": "ringer_mode", "response_key": "ringer_mode", "preconditions": {} } }, { "function": "set_ringer_mode", "description": "Set ringer mode to normal, vibrate, or silent. The operation preserves all stream volumes, sound selections, and the incoming-call vibration preference. Invalid modes leave state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "string", "enum": [ "normal", "vibrate", "silent" ], "examples": [ "normal", "vibrate", "silent" ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "ringer_mode" ], "semantics": { "kind": "set", "property": "ringer_mode", "parameter": "value", "preconditions": {} } }, { "function": "get_incoming_call_vibration", "description": "Return the current incoming-call vibration preference.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "incoming_call_vibration" ], "writes": [], "semantics": { "kind": "read", "property": "incoming_call_vibration", "response_key": "incoming_call_vibration", "preconditions": {} } }, { "function": "set_incoming_call_vibration", "description": "Set the incoming-call vibration preference to never, vibrate_mode, or always. This does not change ringer mode or any volume. Invalid values leave state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "string", "enum": [ "never", "vibrate_mode", "always" ], "examples": [ "never", "vibrate_mode", "always" ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "incoming_call_vibration" ], "semantics": { "kind": "set", "property": "incoming_call_vibration", "parameter": "value", "preconditions": {} } }, { "function": "get_ringtone", "description": "Return the selected local synthetic ringtone resource.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "ringtone" ], "writes": [], "semantics": { "kind": "read", "property": "ringtone", "response_key": "ringtone", "preconditions": {} } }, { "function": "set_ringtone", "description": "Select classic_ring, digital_ring, gentle_ring, or none as the local synthetic ringtone. The operation does not change ringtone volume or ringer mode. Invalid values leave state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "string", "enum": [ "classic_ring", "digital_ring", "gentle_ring", "none" ], "examples": [ "classic_ring", "gentle_ring", "none" ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "ringtone" ], "semantics": { "kind": "set", "property": "ringtone", "parameter": "value", "preconditions": {} } }, { "function": "get_notification_sound", "description": "Return the selected local synthetic notification-sound resource.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "notification_sound" ], "writes": [], "semantics": { "kind": "read", "property": "notification_sound", "response_key": "notification_sound", "preconditions": {} } }, { "function": "set_notification_sound", "description": "Select chime, pop, soft_bell, or none as the local synthetic notification sound. The operation does not change notification volume. Invalid values leave state unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "value": { "type": "string", "enum": [ "chime", "pop", "soft_bell", "none" ], "examples": [ "chime", "soft_bell", "none" ] } }, "required": [ "value" ], "additionalProperties": false }, "reads": [], "writes": [ "notification_sound" ], "semantics": { "kind": "set", "property": "notification_sound", "parameter": "value", "preconditions": {} } }, { "function": "get_available_output", "description": "Return one currently connected, available audio-output record by route ID. Unknown or unavailable IDs are rejected without changing state.", "mutation": false, "parameters_schema": { "type": "object", "properties": { "output_id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128, "examples": [ "speaker", "earpiece" ] } }, "required": [ "output_id" ], "additionalProperties": false }, "reads": [ "available_outputs" ], "writes": [], "semantics": { "kind": "collection_read", "property": "available_outputs", "id_parameter": "output_id", "response_key": "output", "preconditions": { "available_outputs": { "contains_key": { "parameter": "output_id" } } } } }, { "function": "get_output_route", "description": "Return the ID of the currently selected audio output route.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "output_route" ], "writes": [], "semantics": { "kind": "read", "property": "output_route", "response_key": "output_route", "preconditions": {} } }, { "function": "select_output_route", "description": "Select an output route that is present in available_outputs. This resolves routing immediately but does not connect or disconnect any Bluetooth or other external device. Unknown or unavailable IDs leave the current route unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "output_id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$", "maxLength": 128, "examples": [ "speaker", "earpiece" ] } }, "required": [ "output_id" ], "additionalProperties": false }, "reads": [ "available_outputs" ], "writes": [ "output_route" ], "semantics": { "kind": "update", "fields": { "output_route": { "parameter": "output_id" } }, "preconditions": { "available_outputs": { "contains_key": { "parameter": "output_id" } } } } } ] }, "mutation_committed": false, "audit_sequence": 5 } }, { "kind": "tool_exchange", "call": { "call_id": "call_6", "turn_id": "turn_1", "command": { "target": "session", "function": "get_device_tools", "parameters": { "device_id": "stopwatch_1" } } }, "result": { "call_id": "call_6", "turn_id": "turn_1", "sequence": 6, "status": "success", "code": "[PASS]", "data": { "device_id": "stopwatch_1", "tools": [ { "function": "get_status", "description": "Return the current stopwatch status without changing state.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "status" ], "writes": [], "semantics": { "kind": "read", "property": "status", "response_key": "status", "preconditions": {} } }, { "function": "get_elapsed_minutes", "description": "Return the total number of whole minutes accumulated by the stopwatch without changing state.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "elapsed_minutes" ], "writes": [], "semantics": { "kind": "read", "property": "elapsed_minutes", "response_key": "elapsed_minutes", "preconditions": {} } }, { "function": "start", "description": "Start the stopwatch from idle while preserving its current elapsed-minute value. The operation fails without changing state unless the stopwatch is idle.", "mutation": true, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "status" ], "writes": [ "status" ], "semantics": { "kind": "update", "fields": { "status": { "value": "running" } }, "preconditions": { "status": "idle" } } }, { "function": "pause", "description": "Pause a running stopwatch while retaining elapsed time. The operation fails without changing state unless the stopwatch is running.", "mutation": true, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "status" ], "writes": [ "status" ], "semantics": { "kind": "update", "fields": { "status": { "value": "paused" } }, "preconditions": { "status": "running" } } }, { "function": "resume", "description": "Resume a paused stopwatch without resetting its elapsed time. The operation fails without changing state unless the stopwatch is paused.", "mutation": true, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "status" ], "writes": [ "status" ], "semantics": { "kind": "update", "fields": { "status": { "value": "running" } }, "preconditions": { "status": "paused" } } }, { "function": "reset", "description": "Reset the stopwatch from any state by setting its status to idle and clearing elapsed time to zero.", "mutation": true, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [], "writes": [ "status", "elapsed_minutes" ], "semantics": { "kind": "update", "fields": { "status": { "value": "idle" }, "elapsed_minutes": { "value": 0 } }, "preconditions": {} } } ] }, "mutation_committed": false, "audit_sequence": 6 } }, { "kind": "tool_exchange", "call": { "call_id": "call_7", "turn_id": "turn_1", "command": { "target": "session", "function": "get_device_tools", "parameters": { "device_id": "system_settings_1" } } }, "result": { "call_id": "call_7", "turn_id": "turn_1", "sequence": 7, "status": "success", "code": "[PASS]", "data": { "device_id": "system_settings_1", "tools": [ { "function": "get_available_language", "description": "Return the read-only configuration record for an available language. An unknown language identifier is rejected without changing state.", "mutation": false, "parameters_schema": { "type": "object", "properties": { "language": { "type": "string", "pattern": "^[A-Za-z]{2,3}-[A-Za-z]{2}$", "maxLength": 16, "examples": [ "en-US", "es-ES", "zh-CN" ] } }, "required": [ "language" ], "additionalProperties": false }, "reads": [ "available_languages" ], "writes": [], "semantics": { "kind": "collection_read", "property": "available_languages", "id_parameter": "language", "response_key": "language" } }, { "function": "get_system_language", "description": "Return the current system language identifier without changing any preference.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "system_language" ], "writes": [], "semantics": { "kind": "read", "property": "system_language", "response_key": "system_language", "preconditions": {} } }, { "function": "set_system_language", "description": "Set the system language to an identifier in available_languages. Applications whose language preference is system follow the new value without rewriting their records. Unsupported identifiers are rejected and leave all preferences unchanged.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "language": { "type": "string", "enum": [ "en-US", "es-ES", "zh-CN" ], "examples": [ "en-US", "es-ES", "zh-CN" ] } }, "required": [ "language" ], "additionalProperties": false }, "reads": [ "available_languages" ], "writes": [ "system_language" ], "semantics": { "kind": "set", "property": "system_language", "parameter": "language", "preconditions": { "available_languages": { "contains_key": { "parameter": "language" } } } } }, { "function": "get_application_supported_languages", "description": "Return the read-only supported-language record for a specified application. An unknown application ID is rejected without changing state.", "mutation": false, "parameters_schema": { "type": "object", "properties": { "application_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$", "maxLength": 64, "examples": [ "browser", "maps" ] } }, "required": [ "application_id" ], "additionalProperties": false }, "reads": [ "application_supported_languages" ], "writes": [], "semantics": { "kind": "collection_read", "property": "application_supported_languages", "id_parameter": "application_id", "response_key": "supported_languages" } }, { "function": "get_application_language", "description": "Return the language preference record for a specified application. A stored value of system means the application follows system_language.", "mutation": false, "parameters_schema": { "type": "object", "properties": { "application_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$", "maxLength": 64, "examples": [ "browser", "maps" ] } }, "required": [ "application_id" ], "additionalProperties": false }, "reads": [ "application_languages" ], "writes": [], "semantics": { "kind": "collection_read", "property": "application_languages", "id_parameter": "application_id", "response_key": "application_language" } }, { "function": "set_application_language", "description": "Set one existing application's language preference while preserving every other application record. The value system makes the application follow system_language. Any explicit language must appear in that application's application_supported_languages record. Unknown applications or unsupported explicit languages are rejected before any state change.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "application_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$", "maxLength": 64, "examples": [ "browser", "maps" ] }, "language": { "type": "string", "enum": [ "system", "en-US", "es-ES", "zh-CN" ], "examples": [ "system", "en-US", "es-ES" ] } }, "required": [ "application_id", "language" ], "additionalProperties": false }, "reads": [ "application_supported_languages", "application_languages" ], "writes": [ "application_languages" ], "semantics": { "kind": "collection_update", "property": "application_languages", "id_parameter": "application_id", "fields": { "language": { "parameter": "language" } }, "preconditions": { "application_languages": { "contains_key": { "parameter": "application_id" } } } } }, { "function": "get_automatic_time", "description": "Return whether phone date and time are synchronized to the local simulated time source.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "automatic_time" ], "writes": [], "semantics": { "kind": "read", "property": "automatic_time", "response_key": "automatic_time", "preconditions": {} } }, { "function": "set_automatic_time", "description": "Enable or disable automatic date and time synchronization. Enabling uses the local simulated time source and resets wall_clock_offset_minutes to zero. Disabling preserves the current offset. No network access occurs, and the world monotonic clock is never changed.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "enabled": { "type": "boolean", "examples": [ true, false ] } }, "required": [ "enabled" ], "additionalProperties": false }, "reads": [], "writes": [ "automatic_time", "wall_clock_offset_minutes" ], "semantics": { "kind": "set", "property": "automatic_time", "parameter": "enabled", "preconditions": {} } }, { "function": "get_wall_clock_offset_minutes", "description": "Return the phone wall-clock adjustment in whole minutes relative to the local simulated time source. This value does not affect monotonic Timer or Stopwatch progress.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "wall_clock_offset_minutes" ], "writes": [], "semantics": { "kind": "read", "property": "wall_clock_offset_minutes", "response_key": "wall_clock_offset_minutes", "preconditions": {} } }, { "function": "set_manual_datetime", "description": "Set the phone's manual date and time as a whole-minute offset from the local simulated time source. The offset must be between -525600 and 525600 minutes, and automatic_time must be disabled. Invalid input or an enabled automatic-time setting leaves all state unchanged. This operation never modifies the world monotonic clock.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "wall_clock_offset_minutes": { "type": "integer", "minimum": -525600, "maximum": 525600, "multipleOf": 1, "examples": [ -60, 0, 120, 1440 ] } }, "required": [ "wall_clock_offset_minutes" ], "additionalProperties": false }, "reads": [ "automatic_time" ], "writes": [ "wall_clock_offset_minutes" ], "semantics": { "kind": "set", "property": "wall_clock_offset_minutes", "parameter": "wall_clock_offset_minutes", "preconditions": { "automatic_time": false } } }, { "function": "get_automatic_time_zone", "description": "Return whether the phone time zone follows the local simulated time-zone source.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "automatic_time_zone" ], "writes": [], "semantics": { "kind": "read", "property": "automatic_time_zone", "response_key": "automatic_time_zone", "preconditions": {} } }, { "function": "set_automatic_time_zone", "description": "Enable or disable automatic time-zone selection. Enabling selects UTC from the deterministic local simulated source. Disabling preserves the current time zone. No network access occurs.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "enabled": { "type": "boolean", "examples": [ true, false ] } }, "required": [ "enabled" ], "additionalProperties": false }, "reads": [], "writes": [ "automatic_time_zone", "time_zone" ], "semantics": { "kind": "set", "property": "automatic_time_zone", "parameter": "enabled", "preconditions": {} } }, { "function": "get_time_zone", "description": "Return the phone time-zone identifier without changing its wall clock or monotonic time.", "mutation": false, "parameters_schema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false }, "reads": [ "time_zone" ], "writes": [], "semantics": { "kind": "read", "property": "time_zone", "response_key": "time_zone", "preconditions": {} } }, { "function": "set_manual_time_zone", "description": "Set the phone time zone to one of UTC, America/New_York, Europe/Madrid, or Asia/Shanghai. Automatic time-zone selection must be disabled. Invalid identifiers or an enabled automatic-time-zone setting leave all state unchanged. The change affects wall-clock interpretation only and never changes monotonic time.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "time_zone": { "type": "string", "enum": [ "UTC", "America/New_York", "Europe/Madrid", "Asia/Shanghai" ], "examples": [ "UTC", "America/New_York", "Europe/Madrid", "Asia/Shanghai" ] } }, "required": [ "time_zone" ], "additionalProperties": false }, "reads": [ "automatic_time_zone" ], "writes": [ "time_zone" ], "semantics": { "kind": "set", "property": "time_zone", "parameter": "time_zone", "preconditions": { "automatic_time_zone": false } } }, { "function": "get_role_candidates", "description": "Return the read-only eligible application candidates for a specified default role. An unknown role ID is rejected without changing state.", "mutation": false, "parameters_schema": { "type": "object", "properties": { "role_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$", "maxLength": 64, "examples": [ "browser", "maps" ] } }, "required": [ "role_id" ], "additionalProperties": false }, "reads": [ "role_candidates" ], "writes": [], "semantics": { "kind": "collection_read", "property": "role_candidates", "id_parameter": "role_id", "response_key": "role_candidates" } }, { "function": "get_default_application_role", "description": "Return the current default application record for a specified role. An unknown role ID is rejected without changing state.", "mutation": false, "parameters_schema": { "type": "object", "properties": { "role_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$", "maxLength": 64, "examples": [ "browser", "maps" ] } }, "required": [ "role_id" ], "additionalProperties": false }, "reads": [ "default_application_roles" ], "writes": [], "semantics": { "kind": "collection_read", "property": "default_application_roles", "id_parameter": "role_id", "response_key": "default_application_role" } }, { "function": "change_default_application_role", "description": "Resolve a simulated request to change one default application role. The role must exist and application_id must be listed in that role's read-only candidate record. When user_confirmed is true, only that role's application_id is changed and all other role records are preserved. When user_confirmed is false, the request is treated as denied and the original role setting is preserved. Invalid role or candidate input is rejected before any state change.", "mutation": true, "parameters_schema": { "type": "object", "properties": { "role_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$", "maxLength": 64, "examples": [ "browser", "maps" ] }, "application_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$", "maxLength": 64, "examples": [ "browser_beta", "maps_offline" ] }, "user_confirmed": { "type": "boolean", "description": "The deterministic result of simulated user confirmation.", "examples": [ true, false ] } }, "required": [ "role_id", "application_id", "user_confirmed" ], "additionalProperties": false }, "reads": [ "role_candidates", "default_application_roles" ], "writes": [ "default_application_roles" ], "semantics": { "kind": "custom", "reason": "The operation conditionally updates one collection record only after validating a candidate in a separate nested configuration record and resolving simulated user confirmation; denial must succeed without changing the collection." } } ] }, "mutation_committed": false, "audit_sequence": 7 } }, { "kind": "turn_boundary", "boundary": { "turn_id": "turn_1", "apply_after_turn": true } }, { "kind": "tool_exchange", "call": { "call_id": "call_8", "turn_id": "turn_2", "command": { "target": "focus_1", "function": "get_manual_override_rule_id", "parameters": {} } }, "result": { "call_id": "call_8", "turn_id": "turn_2", "sequence": 8, "status": "success", "code": "[PASS]", "data": { "manual_override_rule_id": "" }, "mutation_committed": false, "audit_sequence": 9 } }, { "kind": "tool_exchange", "call": { "call_id": "call_9", "turn_id": "turn_2", "command": { "target": "session", "function": "submit_answer", "parameters": { "value": "" } } }, "result": { "call_id": "call_9", "turn_id": "turn_2", "sequence": 9, "status": "success", "code": "[PASS]", "data": { "accepted": true, "index": 0 }, "mutation_committed": false, "audit_sequence": 10 } }, { "kind": "tool_exchange", "call": { "call_id": "call_10", "turn_id": "turn_2", "command": { "target": "system_settings_1", "function": "get_wall_clock_offset_minutes", "parameters": {} } }, "result": { "call_id": "call_10", "turn_id": "turn_2", "sequence": 10, "status": "success", "code": "[PASS]", "data": { "wall_clock_offset_minutes": 0 }, "mutation_committed": false, "audit_sequence": 11 } }, { "kind": "tool_exchange", "call": { "call_id": "call_11", "turn_id": "turn_2", "command": { "target": "session", "function": "submit_answer", "parameters": { "value": 0 } } }, "result": { "call_id": "call_11", "turn_id": "turn_2", "sequence": 11, "status": "success", "code": "[PASS]", "data": { "accepted": true, "index": 1 }, "mutation_committed": false, "audit_sequence": 12 } }, { "kind": "tool_exchange", "call": { "call_id": "call_12", "turn_id": "turn_2", "command": { "target": "bluetooth_1", "function": "get_paired_devices", "parameters": {} } }, "result": { "call_id": "call_12", "turn_id": "turn_2", "sequence": 12, "status": "success", "code": "[PASS]", "data": { "paired_devices": {} }, "mutation_committed": false, "audit_sequence": 13 } }, { "kind": "tool_exchange", "call": { "call_id": "call_13", "turn_id": "turn_2", "command": { "target": "session", "function": "submit_answer", "parameters": { "value": {} } } }, "result": { "call_id": "call_13", "turn_id": "turn_2", "sequence": 13, "status": "success", "code": "[PASS]", "data": { "accepted": true, "index": 2 }, "mutation_committed": false, "audit_sequence": 14 } }, { "kind": "tool_exchange", "call": { "call_id": "call_14", "turn_id": "turn_2", "command": { "target": "display_1", "function": "set_brightness", "parameters": { "value": 42 } } }, "result": { "call_id": "call_14", "turn_id": "turn_2", "sequence": 14, "status": "success", "code": "[PASS]", "data": {}, "mutation_committed": true, "audit_sequence": 15 } }, { "kind": "tool_exchange", "call": { "call_id": "call_15", "turn_id": "turn_2", "command": { "target": "alarm_1", "function": "get_alarm", "parameters": { "alarm_id": "alarm_2" } } }, "result": { "call_id": "call_15", "turn_id": "turn_2", "sequence": 15, "status": "success", "code": "[PASS]", "data": { "alarm": { "hour": 9, "minute": 0, "label": "Weekend", "enabled": false, "weekdays": [ 6, 7 ] } }, "mutation_committed": false, "audit_sequence": 16 } }, { "kind": "tool_exchange", "call": { "call_id": "call_16", "turn_id": "turn_2", "command": { "target": "session", "function": "submit_answer", "parameters": { "value": { "hour": 9, "minute": 0, "label": "Weekend", "enabled": false, "weekdays": [ 6, 7 ] } } } }, "result": { "call_id": "call_16", "turn_id": "turn_2", "sequence": 16, "status": "success", "code": "[PASS]", "data": { "accepted": true, "index": 3 }, "mutation_committed": false, "audit_sequence": 17 } }, { "kind": "tool_exchange", "call": { "call_id": "call_17", "turn_id": "turn_2", "command": { "target": "stopwatch_1", "function": "get_status", "parameters": {} } }, "result": { "call_id": "call_17", "turn_id": "turn_2", "sequence": 17, "status": "success", "code": "[PASS]", "data": { "status": "idle" }, "mutation_committed": false, "audit_sequence": 18 } }, { "kind": "tool_exchange", "call": { "call_id": "call_18", "turn_id": "turn_2", "command": { "target": "session", "function": "submit_answer", "parameters": { "value": "idle" } } }, "result": { "call_id": "call_18", "turn_id": "turn_2", "sequence": 18, "status": "success", "code": "[PASS]", "data": { "accepted": true, "index": 4 }, "mutation_committed": false, "audit_sequence": 19 } }, { "kind": "tool_exchange", "call": { "call_id": "call_19", "turn_id": "turn_2", "command": { "target": "sound_1", "function": "get_available_output", "parameters": { "output_id": "earpiece" } } }, "result": { "call_id": "call_19", "turn_id": "turn_2", "sequence": 19, "status": "success", "code": "[PASS]", "data": { "output": { "label": "Built-in earpiece", "kind": "earpiece" } }, "mutation_committed": false, "audit_sequence": 20 } }, { "kind": "tool_exchange", "call": { "call_id": "call_20", "turn_id": "turn_2", "command": { "target": "session", "function": "submit_answer", "parameters": { "value": { "label": "Built-in earpiece", "kind": "earpiece" } } } }, "result": { "call_id": "call_20", "turn_id": "turn_2", "sequence": 20, "status": "success", "code": "[PASS]", "data": { "accepted": true, "index": 5 }, "mutation_committed": false, "audit_sequence": 21 } }, { "kind": "tool_exchange", "call": { "call_id": "call_21", "turn_id": "turn_2", "command": { "target": "session", "function": "finish", "parameters": {} } }, "result": { "call_id": "call_21", "turn_id": "turn_2", "sequence": 21, "status": "success", "code": "[PASS]", "data": { "finished": true }, "mutation_committed": false, "audit_sequence": 22 } }, { "kind": "termination", "termination": { "reason": "session_finish", "turn_id": "turn_2", "turn_index": 2, "elapsed_minutes": 0, "limits": { "max_turns": 2, "max_elapsed_minutes": null } } } ] }