Skip to main content

Droost: Install Modules

droost_module_install Write (gated)

Module: Droost core

Enables modules through the real installer (dependencies resolved, hooks fired). Follow with droost_cache_rebuild so new plugins register. Gated — enabling code changes what the site can do.

Example call
{
    "tool": "droost_module_install",
    "arguments": {
        "modules": [
            "media_library"
        ]
    }
}
Example response — captured live on this site
{
    "success": false,
    "message": "This tool is disabled. Enable it with: drush config:set droost.settings allow_destructive true (or via Admin → Configuration → Development → Droost), then reload the MCP server in your editor — the running server caches this flag at startup and will keep refusing until it is restarted. (To disable later, use --input-format=yaml false so the value is stored as a real boolean.)",
    "data": null
}

Installs (enables) one or more modules and their dependencies (equivalent to "drush pm:install"). Disabled by default; requires droost.settings.allow_destructive.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "modules": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Module machine names to install, e.g. [\"token\", \"pathauto\"]."
        }
    },
    "required": [
        "modules"
    ]
}