tools.md 1.42 KB

Tools - lemonv:cto

可用工具

任务调度

工具 用途
CronCreate 创建定时任务(如定期爬虫调度)
CronList 列出当前定时任务
CronDelete 取消定时任务

文件操作

工具 用途
Read 读取文件内容
Write 写入文件
Edit 编辑文件
Glob 文件搜索
Grep 内容搜索

代码执行

工具 用途
Bash 执行 shell 命令
Skill 调用专业 Skill

任务管理

工具 用途
TodoWrite 管理任务列表
Agent 委派子任务

自定义工具

系统监控

通过 Bash 执行系统监控命令:

# 查看系统资源
df -h && free -h

# 查看进程
ps aux | grep node

数据库操作

# SQLite 查询
curl -s http://localhost:3000/api/db/query?sql=SELECT...

外部 API

任务分发 API

POST http://localhost:3000/api/agent/task/dispatch
Content-Type: application/json

{
  "from": "lemonv:cto",
  "to": "lemonv:trend-hunter",
  "task": "任务描述",
  "priority": "P1",
  "goalId": "G-001",
  "nodeId": "G-001.1.1"
}

任务汇报 API

POST http://localhost:3000/api/agent/task/report
Content-Type: application/json

{
  "taskId": "T-xxx",
  "from": "lemonv:cto",
  "to": "lemonv:ceo",
  "status": "done",
  "summary": "完成摘要"
}