Load hooks from the workspace .openhands/hooks.json file.
This endpoint reads the hooks configuration from the project’s .openhands/hooks.json file if it exists.
Args: request: HooksRequest containing the project directory path.
Returns: HooksResponse containing the hook configuration or None.
Request body for loading hooks.
Workspace directory path for project hooks
Successful Response
Response containing hooks configuration.
Hook configuration loaded from the workspace, or None if not found