format_json
Format JSON strings by applying proper indentation and customizable spacing for improved readability.
Instructions
Format and prettify JSON with proper indentation. Example: {"a":1,"b":2} → formatted JSON with customizable spacing
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 | Number of spaces for indentation |