ACTION_GET_TIME
Retrieve current date, time, timestamp, and weekday values for scheduling, logging, or conditional workflow logic, with optional formatting and saved output variables.
Instructions
获取当前时间及年月日时分秒。输出:current_time, current_timestamp, current_year, current_month, current_day, current_hour, current_minute, current_second, current_weekday, time_success。current_weekday 0=周日…6=周六(与 ACTION_PARSE_DATETIME 的 1=周一不同)。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ACTION_GET_TIME"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 时间格式(SimpleDateFormat 模式)(默认 yyyy-MM-dd HH:mm:ss) | |
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| timestamp | No | 目前不影响输出;毫秒时间戳总写在 current_timestamp(默认 false) | |
| output_var | No | 格式化时间另存到的变量名(current_time 总会写)(默认 current_time) | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |