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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent": "<agent>",
"name_or_gpio": "<name_or_gpio>",
"value": "<value>"
},
"name": "mcp_gpio_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| value | Yes | ||
| duration | No | ||
| name_or_gpio | Yes |