Build Url
build_urlBuild a URL string from components. Provide at least hostname (and optionally protocol, port, path, hash) plus a query object of key/value pairs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | Optional fragment (without "#"). | |
| path | No | Path, e.g. "/search" (default "/"). | |
| port | No | Optional port. | |
| query | No | Query parameters as an object, e.g. {"q":"cats","page":2}. | |
| hostname | Yes | Host, e.g. "example.com". | |
| protocol | No | e.g. "https" (default). |