Files
agent-zero/plugins/_tool_access/AGENTS.md
Alessandro 0e3d267f79 feat: add per-action permissions for bundled tools
Let profiles allow individual operations across all 12 bundled multi-action
tools, such as reading files without allowing writes or listing scheduled
tasks without allowing deletion.

Share action contracts across runtime policy, Agent Editor, text prompts,
and native schemas. Preserve existing whole-tool policies and legacy memory
IDs; only explicit permission edits persist the editor's projection.

Check aliases, defaults, browser batches, reset flags, and parallel
operations at execution. Apply action permissions to automatic browser
context and skill hints.

Validation: 742 focused tests passed. Live Docker checks verified allowed
reads, denied writes through native/legacy/parallel dispatch, blocked
scheduler deletion, and editor save/reload.
2026-10-27 19:06:13 +01:00

1.1 KiB

Tool Access Plugin DOX

Purpose

  • Own the always-enabled project/profile tool-policy configuration and execution gate.

Ownership

  • helpers/tool_policy.py owns shared resolution and catalog behavior.
  • hooks.py normalizes scoped configuration.
  • extensions/python/tool_execute_before/ rejects blocked execution.

Local Contracts

  • This plugin has no independent settings form; the generic plugin settings shell exposes its scoped configuration index, while Agent Editor writes sparse profile config.json files and the runtime remains authoritative.
  • Custom configuration stores independent default and mcp_default fallbacks; explicit canonical IDs remain shared in allowed and blocked.
  • Required final-response capability is never disabled.
  • Forward the complete execution arguments to shared policy resolution so action defaults, aliases, browser batches, reset flags, and parallel operations cannot bypass permissions. Unified memory retains the permissions of its former individual tools.

Verification

  • Run tests/test_tool_policy.py and tests/test_tool_action_policy.py.

Child DOX Index

No child DOX files.