ACTION_TEXT_OPERATION
Process text by replacing, slicing, splitting, changing case, trimming whitespace, or joining strings, then return the result as text_output for workflow use.
Instructions
文本处理:替换、截取、拆分、大小写、去空白、拼接。输出:text_output。split 的结果是用换行连接的一个字符串,不是数组;要真正的数组用 ACTION_ARRAY(action=set)。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | substring:结束下标(不含),默认到末尾 | |
| new | No | replace:替换成的文字,支持 ${var}(也认:replace_with) | |
| old | No | replace:要被替换的文字,支持 ${var}(也认:search) | |
| text | No | append/prepend:要拼接的文字,支持 ${var} | |
| input | No | 输入:变量名(取其值)或字面文本(支持 ${var})(也认:source_var) | |
| start | No | substring:起始下标(含)(默认 0) | |
| action | Yes | 操作类型(也认:operation) | |
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| delimiter | No | split:分隔符(默认 ,) | |
| output_var | No | 结果变量名(默认 text_output) | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |