Skip to Content
Assistant Core

Device tools

How an ESP32 device offers its own tools, such as volume, screen brightness or a camera, to the assistant during a voice session.

A connected device can offer its own capabilities to the assistant while you talk to it: report its status, change the speaker volume or screen brightness, take a photo, restart, or anything else its firmware exposes. You don't set these tools up in the Admin Panel; the firmware declares them.

Two kinds of device tools

KindHow the device declares it
Device MCPThe firmware runs a small MCP server and lists its tools, such as self.get_device_status, self.audio_speaker.set_volume, self.screen.set_brightness, self.camera.take_photo or self.reboot
Device IoTOlder firmware describes properties and actions (turn on or off, set a value, read a state), which become tools

Which tools a device has depends on its board and firmware. Two devices of the same board can differ if they run different firmware.

Requirements

How it works

  1. The device opens a voice session with Assistant Core.
  2. Assistant Core asks the device for its tools (MCP) or reads its descriptors (IoT).
  3. During that session only, the assistant can call those tools alongside its other tools.
  4. When you ask for something matching a tool, for example "turn the volume down", the assistant calls it over the device connection and the device carries it out.

Device tools exist only in that device's voice session. They are not offered in the Web App, the widget or the Developer API, and they run without asking for approval.

Examples

You sayThe assistant calls
"Turn the volume down a bit"self.audio_speaker.set_volume
"Make the screen brighter"self.screen.set_brightness
"What's your battery level?"self.get_device_status
"What do you see?"self.camera.take_photo, on boards with a camera
"Restart yourself"self.reboot

Troubleshooting

If the assistant says it can't do something the device should support:

  • Check that the device is online and attached to the right assistant.
  • Check that its firmware exposes that capability; update the firmware if needed.
  • Restart the device after updating firmware, so it reports its tools again.

Last updated on