If you want to use one of the many devices for removing a stuck jar lid, that’s fine.
What about holding the jar itself, though?
Today’s invention is a block with a v shape removed (red). This is set in a drawer as shown so that it holds the body of a jar and is then squeezed between it and the worktop edge.
Leaning on the front of the drawer allows your lid grip device of choice to be effectively employed.