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.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "/search",
"query": {
"q": "cats",
"page": 2
},
"hostname": "example.com",
"protocol": "https"
},
"name": "build_url"
}
}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). |