Textflow Command Reference

Command Title Description
absolutize Absolutize URLs Convert relative URLs to absolute based on a provided base URL.
add-css Add CSS Add a block of CSS to the embedded content.
append Append Text Add specified text to the end of the working text.
capitalize Capitalize Capitalize the first letter of each word. Optionally exclude specific words from capitalization.
csv-to-json CSV to JSON Convert CSV data to a JSON array of objects with camelCased property names.
extract Extract Element Extract a specific element from HTML using CSS selectors. The outer HTML will be captured. If your selector matches multiple elements, they will be joined together.
http HTTP Request Fetch content from a URL using an HTTP request.
jsonata JSONata Query Apply a JSONata expression to transform JSON data.
lower-case Lower Case Convert the working text to lowercase.
make-table Make Table Convert JSON or CSV data into an HTML table with optional column customization.
new-lines New Lines Convert line breaks to HTML line-break tags.
no-op No Operation A command that does nothing and returns the working data unchanged.
prepend Prepend Text Add specified text to the beginning of the working text.
raise-event Raise Event Raise a JavaScript CustomEvent on the document object with pipeline context data for debugging or triggering external behavior.
read-from Read From Variable Read the value of a variable.
remove Remove Element Remove specified element from the working text.
remove-before Remove Before Remove all text before the specified character occurrence, returning the text from that character onwards, optionally including or excluding the character itself.
remove-lines Remove Lines Remove lines from the text.
set Set Text Set the working text to the specified value.
set-attribute Set Attribute Set an attribute on a specified element.
set-debug Set Debug Enable debug logging for the pipeline. Does not affect the working text.
table-to-json HTML Table to JSON Parse an HTML table and convert it to a JSON array of objects. Uses TH tags as property names, or column1, column2, etc. if no headers are provided.
take-before Take Before Return all text before the specified character occurrence, optionally including the character itself.
template-json Template JSON Apply a Liquid template to JSON data to generate HTML. The entire working data is injected as an object in a variable called 'data'.
trim Trim Remove whitespace or a specific character from the start, end, or both sides of the text.
upper-case Upper Case Convert the working text to uppercase.
wrap Wrap Content Wrap content in an HTML element with optional class and id attributes.
wrap-lines Wrap Lines Wrap lines in a tag.
write-to Write To Variable Write the current text to a variable.