Functions redesigned for agents

June 25, 2026

We have redesigned Netlify functions for an improved agent experience. With these updates, functions are more discoverable, easier to autocomplete, update, and manage for people and agents alike.

Note that Netlifly functions are stored at netlify/functions/ and are distinct from Edge Functions.

These improvements will not break your existing functions setup so you can update your functions code on your own timeline. Once updated, coding agents will be able to better create, update, and manage functions for you, including for configuring background functions, region selection, and more.

To learn more about these updates in-depth, check out our blog on redesigning Netlify functions for agent experience. For a quick summary, you can check out the table below.

FeatureWhat changedWhat it means for agentsWhat you need to do
Event handlersExport typed event handlers from the default export objectNo magic filenames to guess. Handlers are discoverable like any typed API.Nothing required. Adopt the new syntax for new event handlers for better agent discoverability and updates.
Background functionsDeclare with background: true in config instead of the -background filename suffixConfig-driven, not name-driven. Agents can set it without knowing platform naming rules.Nothing required. The -background suffix still works.
Region selectionSet per-function via the region config property, replacing the global UI settingAgents can set and validate region in code. Use deploy previews to test before going live.Nothing required. Optionally move region out of the UI into config for per-function control.
Memory and vCPUSet via memory or vcpu config properties; both values scale together automaticallyAgents provisioning compute-heavy workloads (inference, large payloads) can do so in code.Nothing. Defaults unchanged. Set only if your workload needs more than 1 GB / 0.5 vCPU. Requires a credit-based Pro plan.
getContext()Named import from @netlify/functions, replacing the Netlify.context globalSurfaces in autocomplete and agent code-reading. Globals are invisible; imports are discoverable.Nothing required. Netlify.context still works. Switch to getContext() for better discoverability.

Learn more in the Netlify Functions documentation, which has also been recently revamped.