prettify_json
Prettify (format) a JSON string.
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_string": "<json_string>"
},
"name": "prettify_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indent | No | Indentation spaces | |
| sort_keys | No | Sort keys alphabetically | |
| json_string | Yes | JSON string to prettify |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| valid | No | ||
| prettified | No | ||
| original_length | No | ||
| prettified_length | No |