Skip to content

fix(backend): expose skill_load tool#2991

Draft
LittleChenLiya wants to merge 1 commit into
bytedance:mainfrom
LittleChenLiya:fix/issue-2978-skill-load
Draft

fix(backend): expose skill_load tool#2991
LittleChenLiya wants to merge 1 commit into
bytedance:mainfrom
LittleChenLiya:fix/issue-2978-skill-load

Conversation

@LittleChenLiya
Copy link
Copy Markdown
Contributor

问题原因

lead agent 的技能加载提示和用户请求会引导模型调用 skill_load,但后端实际绑定的工具列表没有注册该工具,导致运行时返回 skill_load is not a valid tool。同时 read_file 仍可直接读取 /mnt/skills,没有按技能加载流程引导模型使用专用工具。

修改内容

新增 skill_load 内置工具,用于按技能名加载 SKILL.md 或技能目录内的相对资源文件;将技能加载提示改为使用 skill_load;限制 read_file 直接读取 /mnt/skills 并提示改用 skill_load;确保技能 allowed-tools 过滤不会移除 skill_load

关联 issue

Fixes #2978

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] skill_load tool is not exposed to lead agent

1 participant