spruthub_call_method
Invoke Sprut.hub JSON-RPC methods with validated parameters by first retrieving the method schema, enabling precise smart home device control.
Instructions
Execute any Sprut.hub JSON-RPC API method. IMPORTANT: You MUST call spruthub_get_method_schema first to understand the exact parameter structure before calling this method. Never guess parameters.
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": {
"methodName": "<methodName>"
},
"name": "spruthub_call_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| methodName | Yes | The method name to call (e.g., "accessory.search", "characteristic.update") | |
| parameters | No | Method parameters exactly as defined in the method schema. MUST call spruthub_get_method_schema first to get the correct parameter structure. Do not guess parameter names or structure. |