def create_set_state_payload(context: str, state: int):
    """Create and return "setState" dictionary to send to the Plugin Manager.

    Args:
        context (str): An opaque value identifying the instance's action you want to modify.
        state (int): A 0-based integer value representing the state of an action with multiple states.

    Returns:
        dict: Dictionary with payload to set the plugin action state.
    """
    return {
        "event": "setState",
        "context": context,
        "payload": {
            "state": state
        }
    }