format_json
Formats raw JSON strings with configurable indentation and optional key sorting to make the data easier to read.
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": "format_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | Yes | 原始 JSON 字符串 | |
| indent | No | 缩进空格数 | |
| sort_keys | No | 是否对键排序 |