Check agent permission
check_permissionDetermine if a registered agent is allowed to perform a specified action on a resource, based on its scopes and status. Denies recalled or unknown agents and records the decision in the audit log.
Instructions
Decide whether a registered agent may perform an action on a resource, based on its scopes and status. Recalled or unknown agents are always denied. The decision is written to the audit log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The action being attempted, e.g. 'read' | |
| agent_id | Yes | ||
| resource | Yes | The resource being acted on, e.g. 'labs' |