resonance.mcp.tools.dio_tools¶
resonance.mcp.tools.dio_tools
¶
MCP tools for digital I/O (DIO) channels.
list_dio_channels()
async
¶
List all available DIO channel names.
Returns:
| Type | Description |
|---|---|
dict
|
Response with channels list |
get_dio_states(channels=None)
async
¶
Get current states for DIO channels.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channels
|
list[str] | None
|
List of channel names to get states for. If None or empty, gets all channels. |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
Response with channel states (boolean values) |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If server communication fails |
ValueError
|
If invalid channel names are provided |