Tool tree
A React component: define your capabilities once as JSON Schema tools. People get a command palette; AI agents get a WebMCP endpoint — one definition, two ways in.
Implementation
gradeNot graded
gradeNot graded
smarthome_set_brightnessAction
Adjust light brightness in a room
View tool JSON
{
"name": "smarthome_set_brightness",
"kind": "act",
"impl": "imperative",
"description": "Adjust light brightness in a room",
"inputSchema": {
"type": "object",
"properties": {
"room": {
"type": "string",
"description": "Room",
"enum": [
"living-room",
"bedroom",
"kitchen"
]
},
"level": {
"type": "number",
"description": "Brightness level (0-100)",
"minimum": 0,
"maximum": 100
}
},
"required": [
"room",
"level"
]
},
"page": "/smart-home"
}smarthome_set_light_colorAction
Change light color in a room
View tool JSON
{
"name": "smarthome_set_light_color",
"kind": "act",
"impl": "imperative",
"description": "Change light color in a room",
"inputSchema": {
"type": "object",
"properties": {
"room": {
"type": "string",
"description": "Room",
"enum": [
"living-room",
"bedroom",
"kitchen"
]
},
"color": {
"type": "string",
"description": "Light color",
"enum": [
"warm-white",
"cool-white",
"soft-blue",
"amber",
"sunset"
]
}
},
"required": [
"room",
"color"
]
},
"page": "/smart-home"
}smarthome_toggle_lightAction
Turn a light on or off
View tool JSON
{
"name": "smarthome_toggle_light",
"kind": "act",
"impl": "imperative",
"description": "Turn a light on or off",
"inputSchema": {
"type": "object",
"properties": {
"room": {
"type": "string",
"description": "Room",
"enum": [
"living-room",
"bedroom",
"kitchen"
]
},
"state": {
"type": "string",
"description": "On or off",
"enum": [
"on",
"off"
]
}
},
"required": [
"room",
"state"
]
},
"page": "/smart-home"
}smarthome_set_thermostatAction
Adjust temperature and mode
View tool JSON
{
"name": "smarthome_set_thermostat",
"kind": "act",
"impl": "imperative",
"description": "Adjust temperature and mode",
"inputSchema": {
"type": "object",
"properties": {
"temperature": {
"type": "number",
"description": "Temperature (60-85 F)",
"minimum": 60,
"maximum": 85
},
"mode": {
"type": "string",
"description": "HVAC mode",
"enum": [
"heat",
"cool",
"auto",
"off"
]
}
},
"required": [
"temperature",
"mode"
]
},
"page": "/smart-home"
}smarthome_set_blindsAction
Adjust blind position in a room
View tool JSON
{
"name": "smarthome_set_blinds",
"kind": "act",
"impl": "imperative",
"description": "Adjust blind position in a room",
"inputSchema": {
"type": "object",
"properties": {
"room": {
"type": "string",
"description": "Room",
"enum": [
"living-room",
"bedroom",
"kitchen"
]
},
"position": {
"type": "number",
"description": "Position (0=closed, 100=open)",
"minimum": 0,
"maximum": 100
}
},
"required": [
"room",
"position"
]
},
"page": "/smart-home"
}smarthome_play_musicAction
Start playing music by genre
View tool JSON
{
"name": "smarthome_play_music",
"kind": "act",
"impl": "imperative",
"description": "Start playing music by genre",
"inputSchema": {
"type": "object",
"properties": {
"genre": {
"type": "string",
"description": "Music genre",
"enum": [
"ambient",
"jazz",
"classical",
"lo-fi",
"nature-sounds"
]
}
},
"required": [
"genre"
]
},
"page": "/smart-home"
}smarthome_set_volumeAction
Adjust music volume
View tool JSON
{
"name": "smarthome_set_volume",
"kind": "act",
"impl": "imperative",
"description": "Adjust music volume",
"inputSchema": {
"type": "object",
"properties": {
"level": {
"type": "number",
"description": "Volume level (0-100)",
"minimum": 0,
"maximum": 100
}
},
"required": [
"level"
]
},
"page": "/smart-home"
}smarthome_activate_sceneAction
Activate a preset scene
View tool JSON
{
"name": "smarthome_activate_scene",
"kind": "act",
"impl": "imperative",
"description": "Activate a preset scene",
"inputSchema": {
"type": "object",
"properties": {
"scene": {
"type": "string",
"description": "Scene preset",
"enum": [
"movie-night",
"morning-routine",
"dinner-party",
"focus-mode",
"goodnight"
]
}
},
"required": [
"scene"
]
},
"page": "/smart-home"
}