You can install the agent into the jail. There is no more package actually in pkg due to lack of maintainer but it is possible to install it by hand.
The agent also support detection of jail. So if you install the agent on the host system, you will get all active jail in your inventory.