JSON Format
json_formatValidate and reformat a JSON string. Pretty-prints with a chosen indent (default) or minifies to a single line. Invalid JSON returns a parse error naming the position.
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 | The JSON text to validate and reformat. | |
| mode | No | Pretty-print with indentation, or minify to one line. Defaults to pretty. | pretty |
| indent | No | Spaces of indentation when pretty-printing. Ignored when minifying. |