Skip to content

通知工具

taskflow_notification 提供消息推送能力


📋 可用工具

工具名功能安全性
taskflow_notification_send发送通知✅ Medium

🔧 工具详解

send

发送通知。

参数:

json
{
  "channel": "string",     // 渠道(必填)
  "message": "string",     // 消息内容(必填)
  "title": "string",       // 标题(可选)
  "priority": "normal"     // 优先级(可选)
}

支持的渠道:

渠道说明
console控制台输出
log日志文件
webhookWebhook

示例:

Claude: 发送通知告知任务完成

调用:

json
{
  "name": "taskflow_notification_send",
  "arguments": {
    "channel": "console",
    "message": "任务已完成!",
    "title": "任务通知"
  }
}

🔒 安全机制

1. 模板验证

消息模板经过验证:

typescript
// 验证消息长度
if (message.length > 1000) {
  throw new Error('消息过长');
}

// 验证敏感内容
if (containsSensitiveContent(message)) {
  throw new Error('包含敏感内容');
}

2. 频率限制

限制项默认值
每秒请求数10
每分钟请求数100

💡 使用技巧

技巧一:任务通知

Claude: 任务完成后通知我

Claude 会在任务完成后发送通知。

技巧二:错误告警

Claude: 出错时发送告警

Claude 会在检测到错误时发送告警。


🔗 相关链接


通知工具有问题随时问我

Released under the MIT License.