json_format
Pretty-print a JSON string with configurable indentation, or minify it to reduce size.
Instructions
Format (pretty-print) a JSON string with configurable indentation. Can also minify 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": {
"input": "<input>"
},
"name": "json_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The JSON string to format | |
| indent | No | Number of spaces for indentation (0 = minify, default: 2) |