{
    "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
    "cli": {
        "usage": "module <name> [destination]",
        "options": {
            "force": {
                "aliases": [
                    "f"
                ]
            },
            "destination": {
                "normalize": true
            },
            "name": {
                "doc": "is the name of the module/folder that will get created in `destination`"
            }
        },
        "inject": [
            "options.name",
            "options.destination"
        ]
    },
    "jsonrpc": {
        "inject": [
            "params.0.name",
            "params.0.destination"
        ]
    },
    "doc": {
        "description": "create a new module with the given name and destination (if present, cwd otherwise)"
    },
    "schema": {
        "inject": [
            {
                "type": "string"
            },
            {
                "type": "string"
            }
        ]
    },
    "mcp": {
        "type": "tool",
        "inject": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                },
                "destination": {
                    "type": "string"
                }
            }
        }
    }
}
