Loading comments in ajax – comment-reply function missing $args

I’m loading comments with AJAX.
It all works fine except reply link isn’t being rendered on the page. As I understand, the problem is can’t pass $args. How would I access $args or max_depth outside the callback?

Ajax template :

<?php
    require_once( $_SERVER('DOCUMENT_ROOT') . '/wp-load.php' );

    if (isset($_POST('id')) && $_POST('id')) {
        $comments = get_comments(array('post_id' => $_POST('id')));
        
        foreach ($comments as $comment) {            
            $GLOBALS('comment') = $comment;
        ?>
            <div class="comment">
                <?php comment_text(); ?>
                <div class="comment__reply">
                    <?php 
                    comment_reply_link ( 
                            array_merge( 
                                    $args, 
                                    array( 
                                        'reply_text' => __( 'Répondre ', 'autourdesanimaux' ), 
                                        'depth' => $depth, 
                                        'max_depth' => get_option( 'thread_comments_depth' ) 
                                    ) 
                            ) 
                    );
                    ?>
                </div>
            </div>
        <?php }
    } ?>

This code is not recognized (I am in a custom ajax)

array_merge( 
        $args, 
        array( 
            'reply_text' => __( 'Répondre ', 'autourdesanimaux' ), 
            'depth' => $depth, 
            'max_depth' => get_option( 'thread_comments_depth' ) 
        ) 
) 

Thank you

This post doesn’t explain how to access $args
Load custom formatted comment with AJAX: reply link isn’t rendered?