HTML entity encode / decode
html_entitiesEscape the five special HTML characters (optionally all non-ASCII) or decode named and numeric HTML entities back to text. Runs on smart-tools.xyz.
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": {
"text": "<text>"
},
"name": "html_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to encode, or HTML with entities to decode | |
| locale | No | Language for the source_url link (default en) | |
| direction | No | encode (default) or decode | |
| encode_all | No | When encoding, also convert every non-ASCII character to a numeric entity. Default false |