MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / is_tool_allowed

Method is_tool_allowed

crates/opencode-agent/src/agent.rs:448–453  ·  view source on GitHub ↗
(&self, tool_name: &str)

Source from the content-addressed store, hash-verified

446 }
447
448 pub fn is_tool_allowed(&self, tool_name: &str) -> bool {
449 matches!(
450 self.tool_permission_decision(tool_name),
451 PermissionDecision::Allow
452 )
453 }
454}
455
456pub struct AgentRegistry {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected