jevguard_prune_state
Prune complex JSON state by removing nulls, empty collections, and whitespace, while protecting against cyclic reference errors.
Instructions
Sanitizes and prunes complex JSON state payloads by removing nulls, empty collections, collapsing whitespace, and protecting against cyclic references.
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": {
"state": "<state>"
},
"name": "jevguard_prune_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | The state payload dictionary or structure to sanitize and prune. | |
| prune_lists | No | Whether to strip empty values and nulls from lists (default: false). |