Storefront API @inContext directive from Liquid storefront

How can I use the Storefront API @inContext directive from a Liquid B2B storefront?

I need to query a collection with the current buyer context, but do not want to make the user log in a second time via the customer account API.