[api] require the helper for scripts