Skip to main content

is_readonly_tool

Function is_readonly_tool 

Source
pub fn is_readonly_tool(tool_id: &str) -> bool
Expand description

Returns true if tool_id is a native read-only tool.

Reuses the same READONLY_TOOLS allowlist that gates ReadOnly autonomy mode, so Supervised mode’s unconfigured-tool bypass (TrustGateExecutor::check_trust) cannot silently diverge from it — see #5575.