Minify an HTML fragment
minify-htmlRemove comments and compact whitespace in HTML fragments. Use for small, controlled HTML snippets, not full document compilation. Returns an HTML string; preserves pre, textarea, script and style contents. Regression-test rendered output.
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": {
"html": "<html>"
},
"name": "minify-html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Original HTML source as text, up to 4096 characters. |