Skip to main content

parse_allowed_tools

Function parse_allowed_tools 

Source
pub fn parse_allowed_tools(content: &str) -> Vec<String>
Expand description

Parse an allow-list marker’s body (a JSON array of registry patterns: *, an exact name, prefix*). An unreadable body narrows to NOTHING rather than to everything — a grant that cannot be read is not a grant (fail closed).