# Function validateAgentAction

- validateAgentAction(input: unknown): ActionValidationResult

  Validate an unknown value against the AgentActionSchema. Returns a Result: `{ ok: true; value }` on success or `{ ok: false; error }` on failure.

  #### Parameters

  - input: unknown

    The value to validate (typically parsed JSON from an agent).

  #### Returns ActionValidationResult

  Validation result following the project Result pattern.

  - Defined in packages/nexus-agents/src/security/action-schema.ts:249