Register actions
For Neuro to be able to interact with the game, you need to register actions to Neuro.
When registering actions to Neuro, send this packet:
{ "command": "actions/register", "game": string, "data": { "actions": [ { "name": string, "description": string, "schema": { [key: string]: any } } // Add more as necessary ] }}data Parameters
Section titled “data Parameters”actions- An array of actions that Neuro can use after receiving the packet. See the section below.
actions Array Object Parameters
Section titled “actions Array Object Parameters”name- The action name. This should be unique between every action you have in your game. It should be all lowercase with words separated by underscores (_).description- A plaintext description of the action for Neuro to understand how to use it.schema- A valid JSON schema for Neuro to fill out when she executes the action. If a schema is not needed, you can omit this field or set it to{}.