EncodeForURI
Encodes strings for safe use in URIs by percent-encoding characters such as spaces, slashes, and colons following SPARQL URI encoding rules.
Instructions
Encodes a string to be URI-safe, following SPARQL's ENCODE_FOR_URI behavior. It encodes characters that are not allowed in URIs, such as spaces, slashes, and colons.
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": "EncodeForURI"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The string to encode for use in a URI. |