ACTION_PARSE_JSON
Parses a JSON string and extracts a value at an optional path, returning formatted JSON and parse success or error details for workflow automation.
Instructions
解析 JSON 字符串并按路径取值。输出:parsed_json, parsed_value, parse_success, parse_error。结果都是字符串(对象/数组为格式化 JSON);路径不存在时结果是字符串 null,但 parse_success 仍为 true。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON 文本(支持 ${var})或存着 JSON 的变量名 | |
| path | No | 取值路径,如 data.items[0].name;不填返回整个 JSON | |
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| output_var | No | 结果变量名(默认 parsed_json) | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |