format_json
Format and validate JSON strings with customizable indentation and optional key sorting.
Instructions
Format and validate JSON
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 | JSON string to format | |
| indent | No | Indentation spaces | |
| sortKeys | No | Sort object keys |