json_prettify
Format JSON text with configurable indentation or minify it to reduce size, making structured data easier to read or compact for storage and transfer.
Instructions
Prettify or minify JSON text.
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_prettify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON text to format. | |
| indent | No | Indent spaces (default 2). | |
| minify | No | Minify instead of prettify (default false). |