Download data/valid/Home/task_486981ad/reference_trajectory.json from JamesZhutheThird/SynthDCB: direct link, hf CLI and curl.
- Browser
- Download file 35.9 kB
-
https://huggingface.co/datasets/JamesZhutheThird/SynthDCB/resolve/main/data/valid/Home/task_486981ad/reference_trajectory.json
- Command line
-
hf download hf://datasets/JamesZhutheThird/SynthDCB/data/valid/Home/task_486981ad/reference_trajectory.json
-
curl -L -o reference_trajectory.json https://huggingface.co/datasets/JamesZhutheThird/SynthDCB/resolve/main/data/valid/Home/task_486981ad/reference_trajectory.json
35.9 kB
{
"trajectory_id": "task_486981ad_reference",
"world_id": "task_486981ad",
"task_id": "task_486981ad",
"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": "color_lamp_4"
}
}
},
"result": {
"call_id": "call_1",
"turn_id": "turn_1",
"sequence": 1,
"status": "success",
"code": "[PASS]",
"data": {
"device_id": "color_lamp_4",
"tools": [
{
"function": "get_brightness",
"description": "Return the configured brightness percentage. The lamp must be powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"brightness"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "brightness",
"response_key": "brightness",
"preconditions": {
"power": true
}
}
},
{
"function": "set_brightness",
"description": "Set brightness to an integer percentage from 0 through 100. The lamp must be powered on.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Target brightness percentage."
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"brightness"
],
"writes": [
"brightness"
],
"semantics": {
"kind": "set",
"property": "brightness",
"parameter": "value",
"preconditions": {
"power": true
}
}
},
{
"function": "increase_brightness",
"description": "Increase brightness by the requested number of percentage points.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of percentage points to increase brightness."
}
},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"brightness"
],
"writes": [
"brightness"
],
"semantics": {
"kind": "custom",
"reason": "Increase brightness by the supplied percentage-point amount and cap the result at 100.",
"preconditions": {
"power": true
}
}
},
{
"function": "decrease_brightness",
"description": "Decrease brightness by the requested number of percentage points.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of percentage points to decrease brightness."
}
},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"brightness"
],
"writes": [
"brightness"
],
"semantics": {
"kind": "custom",
"reason": "Decrease brightness by the supplied percentage-point amount and floor the result at 0.",
"preconditions": {
"power": true
}
}
},
{
"function": "get_color_temperature",
"description": "Return the configured color temperature in kelvin.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"light_mode",
"color_temperature"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "color_temperature",
"response_key": "color_temperature",
"preconditions": {
"power": true,
"light_mode": "white"
}
}
},
{
"function": "set_color_temperature",
"description": "Set color temperature in white-light mode.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1000,
"maximum": 6500,
"multipleOf": 100,
"description": "Target color temperature in kelvin."
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"light_mode",
"color_temperature"
],
"writes": [
"color_temperature"
],
"semantics": {
"kind": "set",
"property": "color_temperature",
"parameter": "value",
"preconditions": {
"power": true,
"light_mode": "white"
}
}
},
{
"function": "increase_color_temperature",
"description": "Increase color temperature by 100 K steps.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of 100 K steps."
}
},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"light_mode",
"color_temperature"
],
"writes": [
"color_temperature"
],
"semantics": {
"kind": "custom",
"reason": "Increase color temperature by the supplied number of 100 K steps and cap the result at 6500 K.",
"preconditions": {
"power": true,
"light_mode": "white"
}
}
},
{
"function": "decrease_color_temperature",
"description": "Decrease color temperature by 100 K steps.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of 100 K steps."
}
},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"light_mode",
"color_temperature"
],
"writes": [
"color_temperature"
],
"semantics": {
"kind": "custom",
"reason": "Decrease color temperature by the supplied number of 100 K steps and floor the result at 1000 K.",
"preconditions": {
"power": true,
"light_mode": "white"
}
}
},
{
"function": "get_power",
"description": "Get the current power state.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "power",
"response_key": "power"
}
},
{
"function": "set_power",
"description": "Set power and update access for active dependent properties.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "boolean"
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power"
],
"writes": [
"power"
],
"semantics": {
"kind": "set",
"property": "power",
"parameter": "value"
}
},
{
"function": "get_light_mode",
"description": "Return the current light mode. The lamp must be powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"light_mode"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "light_mode",
"response_key": "light_mode",
"preconditions": {
"power": true
}
}
},
{
"function": "set_light_mode",
"description": "Set the light mode to white or color. The lamp must be powered on.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"white",
"color"
],
"description": "Target light mode."
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"light_mode"
],
"writes": [
"light_mode"
],
"semantics": {
"kind": "set",
"property": "light_mode",
"parameter": "value",
"preconditions": {
"power": true
}
}
},
{
"function": "get_color",
"description": "Return the configured global hexadecimal RGB color.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"light_mode",
"color"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "color",
"response_key": "color",
"preconditions": {
"power": true,
"light_mode": "color"
}
}
},
{
"function": "set_color",
"description": "Set the global light color to a six-digit hexadecimal RGB value.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$",
"maxLength": 7,
"description": "Target RGB color, for example #FF8800.",
"examples": [
"#FF0000",
"#00FF00",
"#0000FF"
]
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"light_mode",
"color"
],
"writes": [
"color"
],
"semantics": {
"kind": "set",
"property": "color",
"parameter": "value",
"preconditions": {
"power": true,
"light_mode": "color"
}
}
},
{
"function": "set_color_channel",
"description": "Set one RGB channel to an integer from 0 through 255.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"channel": {
"type": "string",
"enum": [
"red",
"green",
"blue"
],
"description": "RGB channel to change."
},
"value": {
"type": "integer",
"minimum": 0,
"maximum": 255,
"description": "Target intensity for the selected channel."
}
},
"required": [
"channel",
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"light_mode",
"color"
],
"writes": [
"color"
],
"semantics": {
"kind": "custom",
"reason": "Update exactly one selected RGB channel while preserving the other two channels.",
"preconditions": {
"power": true,
"light_mode": "color"
}
}
}
]
},
"mutation_committed": false,
"audit_sequence": 1
}
},
{
"kind": "turn_boundary",
"boundary": {
"turn_id": "turn_1",
"apply_after_turn": true
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_2",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "balcony"
}
}
},
"result": {
"call_id": "call_2",
"turn_id": "turn_2",
"sequence": 2,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "balcony",
"type": "balcony",
"virtual": false,
"properties": {
"temperature": 30,
"humidity": 40,
"illuminance": 50,
"noise": 65,
"air_quality": 300
},
"metadata": {
"description": "Generated balcony 9",
"generation_index": 9,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 3
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_3",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "bathroom"
}
}
},
"result": {
"call_id": "call_3",
"turn_id": "turn_2",
"sequence": 3,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "bathroom",
"type": "bathroom",
"virtual": false,
"properties": {
"temperature": 11,
"humidity": 50,
"illuminance": 50,
"noise": 65,
"air_quality": 75
},
"metadata": {
"description": "Generated bathroom 4",
"generation_index": 4,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 4
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_4",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "bedroom"
}
}
},
"result": {
"call_id": "call_4",
"turn_id": "turn_2",
"sequence": 4,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "bedroom",
"type": "bedroom",
"virtual": false,
"properties": {
"temperature": 26,
"humidity": 50,
"illuminance": 500,
"noise": 35,
"air_quality": 25
},
"metadata": {
"description": "Generated bedroom 3",
"generation_index": 3,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 5
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_5",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "entryway"
}
}
},
"result": {
"call_id": "call_5",
"turn_id": "turn_2",
"sequence": 5,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "entryway",
"type": "entryway",
"virtual": false,
"properties": {
"temperature": 28,
"humidity": 20,
"illuminance": 100,
"noise": 35,
"air_quality": 200
},
"metadata": {
"description": "Generated entryway 1",
"generation_index": 1,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 6
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_6",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "laundry_room"
}
}
},
"result": {
"call_id": "call_6",
"turn_id": "turn_2",
"sequence": 6,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "laundry_room",
"type": "laundry_room",
"virtual": false,
"properties": {
"temperature": 14,
"humidity": 70,
"illuminance": 200,
"noise": 35,
"air_quality": 200
},
"metadata": {
"description": "Generated laundry room 7",
"generation_index": 7,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 7
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_7",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "living_room"
}
}
},
"result": {
"call_id": "call_7",
"turn_id": "turn_2",
"sequence": 7,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "living_room",
"type": "living_room",
"virtual": false,
"properties": {
"temperature": 25,
"humidity": 50,
"illuminance": 1000,
"noise": 65,
"air_quality": 50
},
"metadata": {
"description": "Generated living room 2",
"generation_index": 2,
"floor": 1,
"occupants": [
"Sam"
]
}
},
"mutation_committed": false,
"audit_sequence": 8
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_8",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "storage_room"
}
}
},
"result": {
"call_id": "call_8",
"turn_id": "turn_2",
"sequence": 8,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "storage_room",
"type": "storage_room",
"virtual": false,
"properties": {
"temperature": 13,
"humidity": 20,
"illuminance": 800,
"noise": 25,
"air_quality": 50
},
"metadata": {
"description": "Generated storage room 8",
"generation_index": 8,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 9
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_9",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "study_room"
}
}
},
"result": {
"call_id": "call_9",
"turn_id": "turn_2",
"sequence": 9,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "study_room",
"type": "study_room",
"virtual": false,
"properties": {
"temperature": 30,
"humidity": 70,
"illuminance": 100,
"noise": 65,
"air_quality": 150
},
"metadata": {
"description": "Generated study room 6",
"generation_index": 6,
"floor": 1,
"occupants": [
"Lily"
]
}
},
"mutation_committed": false,
"audit_sequence": 10
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_10",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "submit_answer",
"parameters": {
"value": [
"balcony",
"study_room"
]
}
}
},
"result": {
"call_id": "call_10",
"turn_id": "turn_2",
"sequence": 10,
"status": "success",
"code": "[PASS]",
"data": {
"accepted": true,
"index": 0
},
"mutation_committed": false,
"audit_sequence": 11
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_11",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "balcony"
}
}
},
"result": {
"call_id": "call_11",
"turn_id": "turn_2",
"sequence": 11,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "balcony",
"type": "balcony",
"virtual": false,
"properties": {
"temperature": 30,
"humidity": 40,
"illuminance": 50,
"noise": 65,
"air_quality": 300
},
"metadata": {
"description": "Generated balcony 9",
"generation_index": 9,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 12
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_12",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "bathroom"
}
}
},
"result": {
"call_id": "call_12",
"turn_id": "turn_2",
"sequence": 12,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "bathroom",
"type": "bathroom",
"virtual": false,
"properties": {
"temperature": 11,
"humidity": 50,
"illuminance": 50,
"noise": 65,
"air_quality": 75
},
"metadata": {
"description": "Generated bathroom 4",
"generation_index": 4,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 13
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_13",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "bedroom"
}
}
},
"result": {
"call_id": "call_13",
"turn_id": "turn_2",
"sequence": 13,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "bedroom",
"type": "bedroom",
"virtual": false,
"properties": {
"temperature": 26,
"humidity": 50,
"illuminance": 500,
"noise": 35,
"air_quality": 25
},
"metadata": {
"description": "Generated bedroom 3",
"generation_index": 3,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 14
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_14",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "entryway"
}
}
},
"result": {
"call_id": "call_14",
"turn_id": "turn_2",
"sequence": 14,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "entryway",
"type": "entryway",
"virtual": false,
"properties": {
"temperature": 28,
"humidity": 20,
"illuminance": 100,
"noise": 35,
"air_quality": 200
},
"metadata": {
"description": "Generated entryway 1",
"generation_index": 1,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 15
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_15",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "kitchen"
}
}
},
"result": {
"call_id": "call_15",
"turn_id": "turn_2",
"sequence": 15,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "kitchen",
"type": "kitchen",
"virtual": false,
"properties": {
"temperature": 30,
"humidity": 50,
"illuminance": 0,
"noise": 65,
"air_quality": 75
},
"metadata": {
"description": "Generated kitchen 5",
"generation_index": 5,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 16
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_16",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "laundry_room"
}
}
},
"result": {
"call_id": "call_16",
"turn_id": "turn_2",
"sequence": 16,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "laundry_room",
"type": "laundry_room",
"virtual": false,
"properties": {
"temperature": 14,
"humidity": 70,
"illuminance": 200,
"noise": 35,
"air_quality": 200
},
"metadata": {
"description": "Generated laundry room 7",
"generation_index": 7,
"floor": 1,
"occupants": []
}
},
"mutation_committed": false,
"audit_sequence": 17
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_17",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "get_space_state",
"parameters": {
"space_id": "storage_room"
}
}
},
"result": {
"call_id": "call_17",
"turn_id": "turn_2",
"sequence": 17,
"status": "success",
"code": "[PASS]",
"data": {
"space_id": "storage_room",
"type": "storage_room",
"virtual": false,
"properties": {
"temperature": 13,
"humidity": 20,
"illuminance": 800,
"noise": 25,
"air_quality": 50
},
"metadata": {
"description": "Generated storage room 8",
"generation_index": 8,
"floor": 1,
"occupants": []
}
},
"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": [
"balcony",
"bathroom",
"kitchen",
"storage_room"
]
}
}
},
"result": {
"call_id": "call_18",
"turn_id": "turn_2",
"sequence": 18,
"status": "success",
"code": "[PASS]",
"data": {
"accepted": true,
"index": 1
},
"mutation_committed": false,
"audit_sequence": 19
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_19",
"turn_id": "turn_2",
"command": {
"target": "color_lamp_4",
"function": "set_power",
"parameters": {
"value": true
}
}
},
"result": {
"call_id": "call_19",
"turn_id": "turn_2",
"sequence": 19,
"status": "success",
"code": "[PASS]",
"data": {},
"mutation_committed": true,
"audit_sequence": 20
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_20",
"turn_id": "turn_2",
"command": {
"target": "color_lamp_4",
"function": "set_brightness",
"parameters": {
"value": 60
}
}
},
"result": {
"call_id": "call_20",
"turn_id": "turn_2",
"sequence": 20,
"status": "success",
"code": "[PASS]",
"data": {},
"mutation_committed": true,
"audit_sequence": 21
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_21",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "sleep_time",
"parameters": {
"minutes": 0
}
}
},
"result": {
"call_id": "call_21",
"turn_id": "turn_2",
"sequence": 21,
"status": "success",
"code": "[PASS]",
"data": {
"requested_minutes": 0,
"applied_minutes": 0,
"tick_count": 0,
"limit_reached": false,
"time_state": {
"date": "2026-07-22",
"clock": "14:00",
"elapsed_minutes": 0,
"timezone": "Asia/Shanghai"
}
},
"mutation_committed": false,
"audit_sequence": 22
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_22",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "finish",
"parameters": {}
}
},
"result": {
"call_id": "call_22",
"turn_id": "turn_2",
"sequence": 22,
"status": "success",
"code": "[PASS]",
"data": {
"finished": true
},
"mutation_committed": false,
"audit_sequence": 24
}
},
{
"kind": "termination",
"termination": {
"reason": "session_finish",
"turn_id": "turn_2",
"turn_index": 2,
"elapsed_minutes": 0,
"limits": {
"max_turns": 2,
"max_elapsed_minutes": 60
}
}
}
]
}
{
"trajectory_id": "task_486981ad_reference",
"world_id": "task_486981ad",
"task_id": "task_486981ad",
"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": "color_lamp_4"
}
}
},
"result": {
"call_id": "call_1",
"turn_id": "turn_1",
"sequence": 1,
"status": "success",
"code": "[PASS]",
"data": {
"device_id": "color_lamp_4",
"tools": [
{
"function": "get_brightness",
"description": "Return the configured brightness percentage. The lamp must be powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"brightness"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "brightness",
"response_key": "brightness",
"preconditions": {
"power": true
}
}
},
{
"function": "set_brightness",
"description": "Set brightness to an integer percentage from 0 through 100. The lamp must be powered on.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Target brightness percentage."
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"brightness"
],
"writes": [
"brightness"
],
"semantics": {
"kind": "set",
"property": "brightness",
"parameter": "value",
"preconditions": {
"power": true
}
}
},
{
"function": "increase_brightness",
"description": "Increase brightness by the requested number of percentage points.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of percentage points to increase brightness."
}