json_process
Format, compress, escape, unescape, or validate JSON strings with optional indentation for formatted output.
Instructions
JSON 格式化/压缩/转义/去除转义/校验。action 可选 format(美化)、compress(压缩)、escape(转义)、unescape(去除转义)、validate(仅校验)
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": "json_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | JSON 字符串 | |
| action | No | 操作类型 | format |
| indent | No | format 时的缩进空格数 |