Format Json
format_jsonPretty-print or minify a JSON string. indent sets spaces (default 2); pass 0 to minify to a single line. Keyless, offline.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"json": "{\"name\":\"Alice\",\"email\":\"alice@example.com\"}"
},
"name": "format_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON text. | |
| indent | No | Indent spaces (default 2; 0 = minify). |