minify_json
Compress a JSON string into a single line by removing all whitespace, with optional key sorting for consistent output.
Instructions
把 JSON 字符串压缩成单行,去掉所有空白字符
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": {
"raw": "<raw>"
},
"name": "minify_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | Yes | 原始 JSON 字符串 | |
| sort_keys | No | 是否对键排序 |