Getting all woocommerce products from REST API call in plugin

I was close to the answer here, but held back by being unfamiliar with how global WordPress can be, and how that can be used to extend plugins. All I needed to do was wrap the plugin logic in a check for the presence of Woocommerce:

if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
  // Stuff goes here
}

…and set the parameters for the search:

$args = array(
    'limit' => -1,
    'category' => array($category_slug),
    'tag' => array($tag_slug));
    $products = wc_get_products( $args );