format-json
Format JSON strings by pretty-printing for readability, minifying for compactness, or validating for correctness.
Instructions
Pretty-print, minify, or validate a JSON string.
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": {
"json": "<json>"
},
"name": "format-json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON string | |
| mode | No | Operation (default: pretty) | pretty |