Droost: Absolute URL
droost_url Read-only
Module: Droost coreResolves a path or route (with parameters) to its URL and route metadata — the safe way to build links to things you just created.
Example call
{
"tool": "droost_url",
"arguments": {
"path": "/tools"
}
}
Example response — captured live on this site
{
"success": true,
"message": "Path \"/tools\" → https://droost-site.ddev.site/tools",
"data": {
"path": "/tools",
"url": "https://droost-site.ddev.site/tools"
}
}
Builds an absolute URL from an internal "path" (e.g. "/node/1") or a "route" name plus "parameters". Read-only.
Input schema (JSON Schema)
{
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Internal path beginning with \"/\", e.g. \"/admin/content\"."
},
"route": {
"type": "string",
"description": "Route name, e.g. \"entity.node.canonical\". Takes precedence over \"path\"."
},
"parameters": {
"type": "object",
"description": "Route parameters, e.g. {\"node\": 1}. Used only with \"route\"."
}
}
}
Droost