I think you want:
local frame_len = frame_len_f().value
Ref: Section 11.2.2.10. of the Wireshark Developers Guide.