Skip to main content

Droost: Routes

droost_routes Read-only

Module: Droost core

Route discovery: paths, route names, controllers, and access requirements, filterable by pattern. Use it to find "what serves /tools" or to check a route exists before linking to it.

Example call
{
    "tool": "droost_routes",
    "arguments": {
        "pattern": "tools"
    }
}
Example response — captured live on this site
{
    "success": true,
    "message": "18 route(s) matched of 1100 total; showing 18.",
    "data": {
        "pattern": "tools",
        "total": 1100,
        "matched": 18,
        "returned": 18,
        "routes": [
            {
                "name": "ai.admin_config_tools",
                "path": "/admin/config/ai/tools-automation",
                "methods": [
                    "GET",
                    "POST"
                ],
                "controller": "\\Drupal\\system\\Controller\\SystemController::systemAdminMenuBlockPage",
                "access": {
                    "_permission": "administer ai",
                    "_access_admin_menu_block_page": "TRUE"
                }
            },
            {
                "name": "ai.tools_library",
                "path": "/admin/config/ai/tools",
                "methods": [
                    "GET",
                    "POST"
                ],
                "controller": "\\Drupal\\ai\\Controller\\ToolsLibrary::overview",
                "access": {
                    "_permission": "access ai tools overview"
                }
            },
            {
                "name": "navigation_extra_tools.css_js",
                "path": "/admin/flush/css-js",
                "methods": [
                    "GET",
                    "POST"
                ],
                "controller": "\\Drupal\
… (truncated — run it yourself for the rest)

Lists Drupal routes (name, path, HTTP methods, controller, and access requirements). Optional "pattern" filters by route name or path substring; "limit" caps results. Read-only.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "pattern": {
            "type": "string",
            "description": "Case-insensitive substring matched against route name and path, e.g. \"user.\" or \"/admin\"."
        },
        "limit": {
            "type": "integer",
            "description": "Max routes to return (default 50, max 500)."
        }
    }
}