format_json
Process JSON strings by formatting, validating, minifying, or prettifying them with configurable indentation options.
Instructions
Format, validate, minify, or prettify 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": {
"input": "<input>",
"action": "<action>"
},
"name": "format_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | JSON string to process | |
| action | Yes | Action to perform | |
| indent | No | Number of spaces for indentation (0-10, default: 2) |