jevguard_prune_state
Prune complex JSON state payloads by removing nulls, empty collections, and whitespace while preventing cyclic reference errors.
Instructions
Sanitizes and prunes complex JSON state payloads by removing nulls, empty collections, collapsing whitespace, and protecting against cyclic references.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | The state payload (dict, list, or primitive) to sanitize and prune. | |
| prune_lists | No | Whether to strip empty values and nulls from lists (default: false). |