MCPcopy Create free account
hub / github.com/AI45Lab/Code / uses_legacy_allowed_tools_syntax

Method uses_legacy_allowed_tools_syntax

core/src/skills/mod.rs:228–235  ·  view source on GitHub ↗

True when a skill still uses the legacy whitespace-only tool list.

(&self)

Source from the content-addressed store, hash-verified

226
227 /// True when a skill still uses the legacy whitespace-only tool list.
228 pub fn uses_legacy_allowed_tools_syntax(&self) -> bool {
229 let Some(allowed) = &self.allowed_tools else {
230 return false;
231 };
232 !allowed.contains(',')
233 && ToolPermission::parse(allowed).is_none()
234 && allowed.split_whitespace().count() > 1
235 }
236
237 /// Check if a tool is allowed by this skill
238 pub fn is_tool_allowed(&self, tool_name: &str) -> bool {

Callers 1

load_from_dirMethod · 0.80

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected