What is the definition of function application in material set theories like ZF?
I know how functions are represented using functional relations (optionally paired with the codomain).
I'm aware of the definition of function application in other formal theories such as Martin-löf theory, but there it is a a primitive notion, defined as one of the natural deduction rules. In ZF-like set theories the sets representing functions are a derived notion.
Say I had an arbitrary functional relation $f$ representing some function and a a value $x$ in the domain of $f$. How is the operation that takes $f$ and $x$ and gives me the set $f(x)$ defined using the axioms and rules of ZF+FOL?