url_decode
Decode percent-encoded URL components back to their original strings. Handles %XX sequences and +-as-space for query parameters and form data. Returns decoded string or error for malformed input.
Instructions
Decode a percent-encoded URL component back to its original string. Use to read query parameters, path segments, or form-encoded values containing %XX sequences; accepts both +-as-space (form encoding) and %20 representations. Pure local decode via decodeURIComponent with no network calls. Returns the decoded string on success. On failure (malformed %XX sequence or invalid UTF-8), returns an error message describing the problem.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "<input>"
},
"name": "url_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Percent-encoded string to decode, e.g. "hello%20world" or "a%3Db%26c%3Dd". Pass only the encoded component, not a full URL. |