Encode Html
encode_htmlEncode text to HTML entities. mode "basic" (default) escapes only & < > " '; mode "extended" also converts every non-ASCII character to a numeric entity. Keyless, offline.
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": {
"text": "Hello & welcome to \"my site\""
},
"name": "encode_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "basic" (default) or "extended". | |
| text | Yes | The text to encode. |