counter_parse_and_apply
Parses counter tags from text and applies increment, decrement, reset, delete, and set operations in order, returning final counter states.
Instructions
Parse counter tags from text and apply all operations in order. Supports multiple tag formats: Full syntax: [-counter:ID:+N-] or [-c:ID:+N-] for increment/decrement, [-counter:ID:reset-], [-counter:ID:delete-], [-counter:ID:set:N-]. Shorthand syntax (explicit numbers required): [+N:ID] for increment, [-N:ID] for decrement, [reset:ID], [delete:ID], [set:N:ID]. Examples: [+5:files], [-3:errors], [reset:temp], [set:100:progress]. Processes all tags sequentially and returns final counter states.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text containing counter tags to parse and execute. Tags will be extracted and executed in order. | |
| debug | No | Enable debug mode to see detailed results for each processed tag. Default: false (streamlined mode showing only final counter states). |