format_json
Reformat and pretty-print raw JSON text using a specified indentation level to improve readability and structure.
Instructions
Pretty-print (reformat) a JSON string with the given indentation.
Args: json_text: Raw JSON text to parse and reformat. indent: Number of spaces per indent level (0-8).
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_text": "<json_text>"
},
"name": "format_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indent | No | ||
| json_text | Yes |