Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/security / / evaluateToolArgumentPolicy
Function: evaluateToolArgumentPolicy()
ts
function evaluateToolArgumentPolicy(policy, facts): ToolPolicyDecision;Defined in: packages/security/src/policy/tool-argument-policy.ts:200
Stable
Evaluate a policy against one tool call, projected onto the binary legacy vocabulary. Delegates to evaluatePermissionDecision and maps every non-allow effect to 'forbid': a consumer that cannot ask or defer must not run the call (fail-closed). Legacy policies contain only allow/forbid rules, for which this is byte-identical to the original forbid-before-allow semantics.
Parameters
| Parameter | Type |
|---|---|
policy | ToolArgumentPolicy |
facts | ToolCallFacts |