Skip to content

skillRestrictionPolicy

function skillRestrictionPolicy(getActive): Policy;

Policy that denies any tool call outside the union of active skills’ allowed-tools.

allowed-tools is a guard-rail for an honest model that makes mistakes, not a boundary against an adversarial one. For an unconditional restriction, set an agent policy: it composes deny-wins with this one, so a denial it imposes cannot be widened by the model loading another skill.

Parameter Type

getActive

() => readonly SkillActivation[]

Policy