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

Method tool_permission_decision

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

Source from the content-addressed store, hash-verified

442 }
443
444 pub fn tool_permission_decision(&self, tool_name: &str) -> PermissionDecision {
445 PermissionNext::evaluate(self, tool_name)
446 }
447
448 pub fn is_tool_allowed(&self, tool_name: &str) -> bool {
449 matches!(

Callers 1

ensure_tool_allowedMethod · 0.80

Calls 1

evaluateFunction · 0.85

Tested by

no test coverage detected