json_format
Format JSON for readability or minify it to reduce size. Specify action and indent to control output.
Instructions
Format (pretty-print) or 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": {
"json": "<json>"
},
"name": "json_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON string to format or minify | |
| action | No | Action: format or minify (default: format) | |
| indent | No | Indent spaces for format (default: 2) |