process_json
Prettify, validate, or minify JSON strings for debugging, formatting API responses, or checking syntax.
Instructions
Prettify, validate, or minify a JSON string.
Use this for debugging, formatting API responses, cleaning up configuration
files, or verifying that a string is valid JSON.
Parameters:
json_string — The JSON string to process (required). Pass the raw JSON text.
mode — Operation: "prettify" (indent + sort keys), "validate"
(check syntax only), or "minify" (compact, no whitespace)
(default: "prettify").
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": "process_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_string | Yes | ||
| mode | No | prettify |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |