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.
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. |