Add fallback to global tools=[] when skill scripts/ is empty #7100
rafaelsilvadeandrade-dot
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem:
Currently, when an agent uses Skills, the get_skill_script function only searches for scripts inside the skill's scripts/ directory. If the directory is empty or the referenced tool doesn't exist there, the agent simply fails to find anything — there is no fallback to the global tools=[] scope.
This means that if a SKILL.md documents a process that relies on an MCP tool (or any tool registered globally via tools=[]), the agent cannot execute it, because Skills and Tools operate in completely separate scopes.
Expected Behavior:
When get_skill_script finds an empty scripts/ directory (or doesn't find the referenced script), the agent should fallback to searching the global tools=[] registered on the agent.
Flow:
Why This Matters:
Possible Implementation:
Override the get_skill_script method in the Skill/Toolkit class to add fallback logic
Or add a configuration flag like fallback_to_global_tools=True on the Skill class
Beta Was this translation helpful? Give feedback.
All reactions