agent-zero/plugins/_tool_access/hooks.py
Alessandro eec18ad839 Enforce scoped tool access policies
Add one project/profile-aware resolver for canonical local, plugin, and MCP tool identities.

Apply it to text prompts, Responses schemas, connector stubs, local execution, MCP invocation, and delegated agents while preserving the response and vision invariants owned by the runtime.
2026-08-12 14:34:15 +02:00

9 lines
224 B
Python

from helpers.tool_policy import normalize_policy
def get_plugin_config(default=None, **kwargs):
return normalize_policy(default)
def save_plugin_config(settings=None, **kwargs):
return normalize_policy(settings)