Implement built-in function feature (port to action_function)