Minify Code Tool
minify_codeMinify or beautify JS, CSS, HTML, SVG, JSON or XML text. Set type=auto to sniff the language. The code is only parsed and re-printed — never executed and never stored. Rate limit: 30 calls/min per IP.
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": {
"code": "<code>",
"type": "<type>"
},
"name": "minify_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source code to transform. | |
| mode | No | Default minify. | |
| type | Yes | Source language, or 'auto' to sniff. | |
| keep_license | No | Preserve /*! ... */ license comments when minifying. |