Format or minify JSON
json_formatPretty-print or shrink valid JSON.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "json_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Use "pretty" (the default) to indent the JSON, or "minify" to remove all extra spaces. | |
| text | No | The valid JSON text to pretty-print or shrink. | |
| indent | No | Spaces per indent level for pretty mode: 0, 1, 2, 3, 4, or 8. Default 2. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| tool | Yes | ||
| result | Yes |