Skip to content

Commit 877c553

Browse files
authored
Merge pull request #2916 from jrobertboos/lcore-4804
LCORE-4804: Exclude `run_skill_script` tool from skills capability: main
2 parents 97365da + 4f7aaae commit 877c553

4 files changed

Lines changed: 1 addition & 33 deletions

File tree

‎src/utils/pydantic_ai_helpers.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def _skills_capability(
5454
return SkillsCapability(
5555
directories=[str(path) for path in skills_config.paths],
5656
validate=False,
57+
exclude_tools=["run_skill_script"],
5758
)
5859

5960

‎tests/e2e/features/skills.feature‎

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -101,37 +101,6 @@ Feature: Agent skills tests
101101
"toolgroup_id": "builtin::agent-skills",
102102
"server_source": "builtin",
103103
"type": "tool"
104-
},
105-
{
106-
"identifier": "run_skill_script",
107-
"description": "Execute a skill script that performs actions or computations.\n\nScripts are executable programs provided by skills that can perform actions\n(API calls, file operations), process data (transformations, analysis), or\ngenerate outputs (reports, visualizations).\n\nWhen to use this:\n- When a skill's instructions tell you to run a specific script\n- To perform automated tasks that the skill provides\n- For data processing, API interactions, or file operations",
108-
"parameters": [
109-
{
110-
"name": "skill_name",
111-
"description": "Name of the skill containing the script.",
112-
"parameter_type": "string",
113-
"required": true,
114-
"default": null
115-
},
116-
{
117-
"name": "script_name",
118-
"description": "Exact name of the script as listed in the skill.\nExamples: \"analyze.py\", \"scripts/analyze.py\", \"scripts/deploy.sh\", \"scripts/runner\"\nMust match exactly - do not infer or guess.",
119-
"parameter_type": "string",
120-
"required": true,
121-
"default": null
122-
},
123-
{
124-
"name": "args",
125-
"description": "Arguments required by the script.\nKeys must match the parameter names in the script's schema.",
126-
"parameter_type": "object",
127-
"required": false,
128-
"default": null
129-
}
130-
],
131-
"provider_id": "agent-skills",
132-
"toolgroup_id": "builtin::agent-skills",
133-
"server_source": "builtin",
134-
"type": "tool"
135104
}
136105
]
137106
}

‎tests/unit/app/endpoints/test_tools.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ async def test_tools_endpoint_includes_agent_capability_tools(
353353
assert "list_skills" in tool_ids
354354
assert "load_skill" in tool_ids
355355
assert "read_skill_resource" in tool_ids
356-
assert "run_skill_script" in tool_ids
357356

358357
list_skills = next(
359358
tool for tool in response.tools if tool.identifier == "list_skills"

‎tests/unit/utils/test_pydantic_ai.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ def test_returns_skills_tools_when_configured(
458458
"list_skills",
459459
"load_skill",
460460
"read_skill_resource",
461-
"run_skill_script",
462461
]
463462
assert all(
464463
tool.provider_id == "agent-skills"

0 commit comments

Comments
 (0)