format_json
Convert raw JSON into pretty-printed or minified output, solving readability and data size needs.
Instructions
Pretty-print or minify 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 | Raw JSON text | |
| mode | No | Output mode, default pretty |