Microsoft MakeCode

[Minecraft API] How should I execute commands ingame?

I’m using the Minecraft API to try and make a modloader.

How should I go about executing a command? The docs are very vague.
Current code:

def execute(target, position, *, command):
    return(request(f"/executeasother?").text)

What parameters do I need to add? And is there a better documentation than this one?