If you can not use the MCP or GPT options, e.g if you are using antigravity which supports neither, you can use the API directly and just let the agent figure out what it needs to do.
The URL to the API specification for the agent is at :
[your moodle url]/mod/minilesson/openapi.php
Open up your agent and instruct it to fetch the API spec from the openapi url (above) and then give it either the pre-generated web service user's web service token, or the web service user's username and password.