Format, Validate & Query JSON
format_validate_jsonValidates, pretty-prints, minifies, or recursively key-sorts JSON input, reports structural depth/size stats, and optionally extracts a value via dot/bracket path (e.g. "users[0].name").
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>"
},
"name": "format_validate_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Formatting mode (default "pretty"). | |
| path | No | Optional dot/bracket lookup path, e.g. "$.meta.version" or "items[0].title". | |
| input | Yes | Raw JSON string. | |
| indent | No | Indentation spaces for pretty/sort_keys mode (default 2). |