mcp_gpio_write
Write '0', '1', 'on', 'off', or 'toggle' to a GPIO pin on a remote agent, optionally for a set duration before reverting to its previous state.
Instructions
Write a value to a GPIO pin on agent ('0', '1', 'on', 'off', or 'toggle'). Optional duration in seconds, after which the pin reverts to its previous state. If the pin has a configured 'max' pulse duration, the effective duration is clamped to it - and if no duration is given but 'max' is set, 'max' is used as the duration automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| value | Yes | ||
| duration | No | ||
| name_or_gpio | Yes |