Class SkillScopedToolCallFilter

java.lang.Object
com.tnsai.skills.SkillScopedToolCallFilter
All Implemented Interfaces:
ToolCallFilter

public final class SkillScopedToolCallFilter extends Object implements ToolCallFilter
ToolCallFilter that enforces the allowed-tools field of each active skill (TNS-289).

Semantics

  • No skills active — filter is permissive: every tool call is allowed. The agent's full tool catalog applies.
  • One or more skills active, none declare allowed-tools — still permissive. allowed-tools is opt-in scoping; an active skill that doesn't declare it doesn't constrain anything.
  • One or more skills declare allowed-tools — the union of those lists is the whitelist. Any tool not in the union is blocked with a guide message naming the active skills.

Composes with other filters: callers wrap this filter together with their own (e.g. via a chain) when they have additional permission rules. The class doesn't try to be the only filter on the agent.

Since:
0.10.0 (TNS-289)
  • Constructor Details

    • SkillScopedToolCallFilter

      public SkillScopedToolCallFilter(SkillManager manager)
  • Method Details