JSON formatter / minifier
json_formatterValidate and pretty-print or minify JSON, reporting the line and column on a parse error. Runs on smart-tools.xyz.
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": {
"text": "<text>"
},
"name": "json_formatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | JSON text to format | |
| action | No | pretty = indented (default); minify = single line | |
| indent | No | Spaces per level for pretty (default 2), or "tab" for tabs | |
| locale | No | Language for the source_url link (default en) |