json_formatter
Format, validate, or minify JSON input to get pretty-printed or compact output. Specify indentation for formatting.
Instructions
Format, validate, and minify JSON. Returns pretty-printed JSON or a minified version.
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": "json_formatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON string to format or minify | |
| mode | No | format = pretty-print | minify = compact | validate = check validity only | format |
| indent | No | Indent spaces for format mode |