Trim big JSON (free)
trim_json[FREE] Shrink a JSON document for LLM context: drop null/empty values, truncate long arrays and strings (with counts), limit depth, optional key allowlist. Reports estimated tokens saved. Limit 120/hour per IP.
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": "trim_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_text | Yes | JSON text | |
| keep_keys | No | Only keep these keys (and the parents of them) | |
| max_array | No | Items kept per array, default 10 | |
| max_depth | No | default 6 | |
| max_string | No | Chars kept per string, default 300 |