Unable to use tail in cel ymp.hbs for integration package data stream agent

Elastic search integration development
Data stream - agent - cel yml.hbs

I am trying to use tail([1,2,3,4]) inside cel.yml.hbs file Which is supposed to return [2,3,4]
But I'm getting error -
failed to check program: failed compilation: ERROR: :50:22: undeclared reference to 'tail' (in container '')\n | "mykey": tail([1, 2, 3, 4]),\n | .....................^ accessing config",

Does tail works in CEL ?