Skip to main content

Module skill_tool

Module skill_tool 

Source
Expand description

Shell-based tool derived from a skill’s [[tools]] section.

Each SkillTool with kind = "shell" or kind = "script" is converted into a SkillShellTool that implements the Tool trait. The tool name is prefixed with the skill name (e.g. my_skill__run_lint) to avoid collisions with built-in tools. The __ separator matches the MCP server prefix convention and keeps names valid under OpenAI-compatible function-name rules (^[a-zA-Z0-9_-]+$), which reject ..

Structs§

SkillBuiltinTool
A skill tool that delegates execution to another tool resolved from the resolution registry — either a built-in (kind = "builtin") or an MCP tool (kind = "mcp"). This is the skill-scoped tool elevation mechanism: a policy blocking shell by name (or deferred MCP tools hidden from the model) does not block my_skill__use_shell, because the wrapper is registered under the prefixed name {skill}__{tool} and delegates to the resolved target.
SkillShellTool
A tool derived from a skill’s [[tools]] section that executes shell commands.