Skip to main content

Interface: PermissionCheckContext

Defined in: packages/agentos/src/core/tools/permissions/IToolPermissionManager.ts:48

Represents the context required for making a permission decision for tool usage. This object aggregates all necessary information that the IToolPermissionManager needs to evaluate whether a tool call should be allowed.

PermissionCheckContext

Properties

gmiId?

optional gmiId: string

Defined in: packages/agentos/src/core/tools/permissions/IToolPermissionManager.ts:53

Optional. The unique identifier of the GMI instance making the request. Useful for logging or more granular GMI-specific rules.


personaCapabilities

personaCapabilities: string[]

Defined in: packages/agentos/src/core/tools/permissions/IToolPermissionManager.ts:51

An array of capability strings (e.g., "filesystem:read", "api:weather") currently possessed by the active Persona.


personaId

personaId: string

Defined in: packages/agentos/src/core/tools/permissions/IToolPermissionManager.ts:50

The unique identifier of the active Persona within the GMI that is attempting to use the tool.


tool

tool: ITool

Defined in: packages/agentos/src/core/tools/permissions/IToolPermissionManager.ts:49

The actual ITool instance for which permission is being checked. This provides access to tool metadata like id, name, and requiredCapabilities.


userContext

userContext: UserContext

Defined in: packages/agentos/src/core/tools/permissions/IToolPermissionManager.ts:52

The context of the end-user associated with the current request, which may include userId, preferences, skill level, etc.