Obtaining value of /tool snmp-get into variable

Hi,

Does anyone have a clever way to get the value of an SNMP OID into a variable?
The only thing I’ve been able to come up with is an :execute call with a file output and then reading it back and parsing, which isn’t great.

Thanks