dootask/resources/ai-kb/_meta/tool-binding.yaml

192 lines
5.8 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# MCP 工具 ↔ chunk 关联
#
# 用途:
# 1. chunk frontmatter 的 related_tools 字段取值受控lint 校验)
# 2. ingest 期把 related_tools 写入 chunk metadataretriever 可联动工具
# 3. 让 AI 在调 search_help_docs 时同时知道"还能调哪个工具直接操作"
#
# 工具清单来自 dootask-plugins/mcp/server/src/dootaskMcpServer.ts29 个 MCP 工具)
# 加 helper/tools.py 中的内置工具GetSessionImageTool 等)
#
# 注:页面操作(打开任务/页面跳转/操作元素)已从 MCP 迁出,改由主程序常驻
# WebSocket/ws派发、doo CLIdoo page触发不再是 MCP 工具;图片文字提取
# OCR已下线改由多模态模型直接理解图片。
version: 1
last_updated: 2026-07-19
tools:
# ===== 用户 =====
get_users_basic:
description: 批量获取用户基本信息(昵称/邮箱/头像)
related_features: [user-account, org-department]
typical_chunk_types: [concept]
search_users:
description: 按关键词搜索用户,支持按项目/对话范围筛选
related_features: [user-account]
typical_chunk_types: [howto]
# ===== 任务 =====
list_tasks:
description: 列表获取用户相关任务,支持状态/项目/时间范围筛选
related_features: [task, dashboard]
typical_chunk_types: [howto]
get_task:
description: 获取任务完整详情
related_features: [task]
typical_chunk_types: [concept, howto]
create_task:
description: 在指定项目创建新任务
related_features: [task]
typical_chunk_types: [howto]
update_task:
description: 更新任务属性
related_features: [task, dashboard]
typical_chunk_types: [howto]
complete_task:
description: 标记任务完成
related_features: [task, dashboard]
typical_chunk_types: [howto]
delete_task:
description: 删除或恢复任务
related_features: [task]
typical_chunk_types: [howto]
create_sub_task:
description: 为父任务添加子任务
related_features: [task]
typical_chunk_types: [howto]
get_task_files:
description: 获取任务附件列表
related_features: [task, file]
typical_chunk_types: [howto]
# ===== 项目 =====
list_projects:
description: 列表获取用户可访问项目
related_features: [project]
typical_chunk_types: [howto]
get_project:
description: 获取项目完整详情
related_features: [project]
typical_chunk_types: [concept, howto]
create_project:
description: 创建新项目
related_features: [project]
typical_chunk_types: [howto]
update_project:
description: 更新项目信息
related_features: [project]
typical_chunk_types: [howto]
# ===== 消息 / 对话 =====
search_dialogs:
description: 搜索群聊或个人对话
related_features: [messenger]
typical_chunk_types: [howto]
send_message:
description: 向对话发送消息
related_features: [messenger]
typical_chunk_types: [howto]
send_task_ai_message:
description: 作为 AI 助手向任务对话发送消息
related_features: [messenger, task]
typical_chunk_types: [howto]
get_message_list:
description: 获取对话消息历史
related_features: [messenger]
typical_chunk_types: [howto]
# ===== 文件 =====
list_files:
description: 列表获取用户文件
related_features: [file]
typical_chunk_types: [howto]
search_files:
description: 搜索文件
related_features: [file]
typical_chunk_types: [howto]
get_file_detail:
description: 获取文件详情
related_features: [file]
typical_chunk_types: [howto]
fetch_file_content:
description: 按文件路径获取文本内容
related_features: [file]
typical_chunk_types: [howto]
# ===== 工作报告 =====
list_received_reports:
description: 列表获取收到的工作报告
related_features: [report]
typical_chunk_types: [howto]
get_report_detail:
description: 获取报告详情
related_features: [report]
typical_chunk_types: [howto]
generate_report_template:
description: 基于任务完成情况自动生成报告模板
related_features: [report]
typical_chunk_types: [howto]
create_report:
description: 创建并提交工作报告
related_features: [report]
typical_chunk_types: [howto]
list_my_reports:
description: 列表获取发送的报告
related_features: [report]
typical_chunk_types: [howto]
mark_reports_read:
description: 批量标记报告为已读/未读
related_features: [report]
typical_chunk_types: [howto]
# ===== 搜索 =====
intelligent_search:
description: 统一搜索(任务/项目/文件/联系人/消息),支持语义搜索
related_features: []
typical_chunk_types: [howto, concept]
# 注图片文字提取OCR / 原 extract_image_text已下线改由多模态模型直接理解图片
# 不再是 MCP 工具。
# 注:页面操作(原 get_page_context / execute_action / execute_element_action已从 MCP
# 迁出,改由主程序常驻 WebSocket/ws派发、doo CLIdoo page context|action|element触发
# 不再是 MCP 工具。
# 注:原 show_guidedriver.js 分步引导)已下线,改为 AI 回复内联深链
# [显示文字](dootask://link/<id>),目录见 _meta/page-links.yaml前端渲染非 MCP 工具)
# ===== 内置工具AI 插件 helper/tools.py=====
get_session_image:
description: 获取用户上传的会话图片(多模态用)
related_features: [file]
typical_chunk_types: [howto]
search_help_docs:
description: 本知识库自身的检索工具;当用户询问 DooTask 功能用法/概念/操作步骤时调用
related_features: []
typical_chunk_types: [howto]