Skip to main content

CLEAR_TAGS

Removes all occurrences of the specified tags from the document or report while preserving their text content. This is useful for cleaning up temporary markup or removing specific tag types.

At a glance

  • Category Editor
  • Version: 1.2.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
tagsArray of tag names to clear (e.g., ["mark", "highlight"]). Can be a hardcoded array, a flowContext variable, or read from the default list input.NonefalsetrueNoneNone

Inputs

TypeDescriptionDefaultRequiredResolved
listDefault list input for tag names when tags config is not specified.Nonefalsefalse

Examples

Clear specific tag types (hardcoded)

- step: CLEAR_TAGS
tags: ["mark", "highlight"]

Clear tags from flowContext

- step: CLEAR_TAGS
tags: "{{ flowContext.tagsToRemove }}"

Clean up after analysis

# First, tag content for analysis
- step: TAG_PURE_TEXT
tags: "{{ flowContext.analyzedSections }}"
virtual: true

# Process the tagged content
- step: OPENAI_COMPLETION
prompt: "Analyze the marked sections..."

# Clean up the temporary tags
- step: CLEAR_TAGS
tags: ["mark"]

See Also

General Resources: