Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/security / / evaluateToolArgumentPolicy
Function: evaluateToolArgumentPolicy()
ts
function evaluateToolArgumentPolicy(policy, facts): ToolPolicyDecision;Defined in: packages/security/src/policy/tool-argument-policy.ts:95
Evaluate a policy against one tool call. Forbid-before-allow: any matching forbid rule wins immediately; otherwise a matching allow permits the call; otherwise the defaultDenySensitive posture (for sensitive tools) or a plain allow applies. Pure + deterministic.
Parameters
| Parameter | Type |
|---|---|
policy | ToolArgumentPolicy |
facts | ToolCallFacts |