Passing complex types to a Function via API

We’re building a Function that creates multiple objects based on the input parameters, which will be used through the Foundry API. One parameter is a map of strings to lists of strings (i.e. [key: string]: string[] in TS), but we are not able to use this data type in Actions to call the Function. Our workaround is currently passing this parameter as a JSON-encoded string, which is not an ideal workaround.

Is there a better workaround, for example a way to call the Function directly without an Action?

Function backed actions are just one way to trigger functions, but you can use functions outside of actions.
In workshop for example: docs

Thanks @ojoda! That’s helpful, but in this case we are specifically looking to trigger this Function through an API call. What would be ideal is something like a Query, but allowing Ontology edits. Does that make sense?