json_format
Format, minify, or validate JSON strings to fix readability issues or confirm syntax. Specify indentation spaces for clean output.
Instructions
Format, minify, or validate JSON strings
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": {
"text": "<text>"
},
"name": "json_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | JSON string to process | |
| action | No | Action to perform (default: format) | |
| indent | No | Number of spaces for indentation (default: 2) |